Page MenuHomeFreeBSD

ctld: normalize iSCSI TargetName on login
Needs ReviewPublic

Authored by js on Fri, Apr 17, 2:04 PM.
Tags
None
Referenced Files
F153364637: D56469.diff
Mon, Apr 20, 5:49 PM
Unknown Object (File)
Sat, Apr 18, 7:50 AM
Unknown Object (File)
Sat, Apr 18, 6:12 AM
Unknown Object (File)
Sat, Apr 18, 6:12 AM
Unknown Object (File)
Fri, Apr 17, 2:25 PM
Subscribers

Details

Reviewers
jhb
asomers
Summary

Case-insensitive TargetName matching on logins was accidentally removed, let's fix that by normalizing TargetName again according to RFC 3722.

PR: 294522
Fixes: 4b1aac931465f39c5c26bfa1d5539a428d340f20
Sponsored by: ConnectWise
MFC after: 1 week

Test Plan

Tested by using the following ctl.conf:

portal-group pg0 {
  listen 127.0.0.1
  discovery-auth-group no-authentication
}
auth-group ag0 {
  auth-type none
}
target iqn.2018-10.myhost-test {
  auth-group ag0
  portal-group pg0
}

and connecting to the share using iscsictl -A -t iqn.2018-10.MyHoSt-TeSt -p localhost -e on (and other variations).

Also ran ctladm test suite, all tests passed.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

js requested review of this revision.Fri, Apr 17, 2:04 PM

This looks good to me. But one question: do we need to do the same for NVMEoF?

I don't know if there is a normalization requirement for nqn. I'll see if I can find something while I wait on review from jhb.