Hi, I just created this mailing list for targetd development. Github is
great but a lack of lists and tarball storage means it's just not
cutting it, so I've created a project at:
https://fedorahosted.org/targetd/
I still like github for the social coding aspect so it stays the
authoritative git repo. Bugs may be reported in either place.
Anyways, I'm working on adding an API to API.md to set chap creds for a
given initiator. Seems like it's per initiator not per-export, so we
need a new API call. Here's what I have so far:
Initiator operations
--------------------
### initiator_set_auth(initiator_wwn, username, password, mutual)
Sets the login credentials that the initiator will use to login and
access luns exported by 'export_create'. 'initiator_wwn', 'username',
and 'password' are all strings. 'username' and 'password' may be 'null'.
If either (or both) are 'null', initiator-to-target authentication is
disabled.
The 'mutual' parameter is a boolean indicating if the target should
attempt to authenticate to the initiator, a.k.a. "mutual
authentication". This may be set even if initiator-to-target
authentication is not enabled. The target's authentication credentials
are not configured via this API.
...seems pretty straightforward? The only issue I have is around how it
interacts with export_create(). Should I require callers use this method
before creating exports for an initiator? If not, what should be the
default settings if this method is not called to set the credentials?
Thoughts?
Thanks -- Regards -- Andy