summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/login.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug in r278331: unlike some other options MaxRecvDataSegmentLengthmav2015-06-021-1/+1
| | | | | | is not negotiated as minimum, but only reported by sides to each other. MFC after: 1 week
* Make setproctitle(3) work in Capsicum capability mode. This makestrasz2015-04-271-3/+0
| | | | | | | | | | | ctld(8) child processes to indicate initiator address and name in their titles, similar to what iscsid(8) child processes do. PR: 181352 Differential Revision: https://reviews.freebsd.org/D2363 Reviewed by: rwatson@, mjg@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Eliminate unused headers.delphij2015-04-141-2/+0
|
* Move the "offload" clause from the target section to portal-grouptrasz2015-02-281-1/+1
| | | | | | | section; it makes more sense there. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Make it possible to set (via ctl.conf(5)) and query (via ctladm islist -v)trasz2015-02-061-10/+23
| | | | | | | | | target iSCSI offload. Add mechanism to query maximum receive data segment size supported by chosen hardware offload module, and use it in ctld(8) to determine the value to advertise to the other side. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add support for multiple portal groups per target.mav2015-02-061-3/+6
| | | | | | | | | | | This change allows multiple "portal-group" options to be specified per target. Each of them may include new optional auth-group name parameter to override per-target auth parameters for specific portal group. Kernel side support was added earlier at r278161. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* Slightly polish iSCSI parameters negotiation.mav2014-12-191-1/+1
| | | | MFC after: 1 week
* Make sequence numbers checks more strict.mav2014-12-171-3/+3
| | | | | | | | | | While we don't support MCS, hole in received sequence numbers may mean only PDU loss. While we don't support lost PDU recovery, terminate the connection to avoid stuck commands. While there, improve handling of sequence numbers wrap after 2^32 PDUs. MFC after: 2 weeks
* Fix several nits in redirection handling - don't use wrong CSG,trasz2014-11-091-27/+14
| | | | | | | and avoid use-after-free. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add support for sending redirections to iSCSI target.trasz2014-11-091-0/+91
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add discovery-filter. This makes it possible to restrict which targetstrasz2014-10-291-1/+6
| | | | | | | | | are returned during discovery based on initiator portal, name, and CHAP credentials. Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Make the initiator-name and initiator-portal checks a little nicer.trasz2014-10-241-20/+7
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Tidy up the login code; no functional changes.trasz2014-10-241-11/+11
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Whitespace fixes.trasz2014-10-221-3/+3
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Untangle iSCSI authentication code by splitting off the CHAPtrasz2014-10-221-199/+27
| | | | | | | | implementation. Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Use keys_add_int() where appropriate. No functional changes.trasz2014-09-091-22/+4
| | | | Sponsored by: The FreeBSD Foundation
* Fix ctld(8) to not forget to send TargetPortalGroupTag and TargetAliastrasz2014-09-091-4/+20
| | | | | | | | | when the initiator skips security negotiation. This fixes interoperability with Xtend SAN initiator. PR: 193021 MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Fix typo.trasz2014-09-051-2/+2
| | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Make the iSCSI stack use __FBSDID() properly.trasz2014-08-211-1/+3
| | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Add netmasks support to initiator-portal option.mav2014-07-281-1/+1
| | | | MFC after: 2 weeks
* Pass through iSCSI session ISID from LOGIN request to the CTL frontend.mav2014-07-051-0/+3
| | | | | ISID is an important part of initiator transport ID for iSCSI. It is not used now, but should be to properly implement persistent reservation.
* Use proper terminology in debug messages.trasz2014-04-161-3/+3
| | | | Sponsored by: The FreeBSD Foundation
* Make the error message more clear.trasz2014-03-191-2/+2
| | | | Sponsored by: The FreeBSD Foundation
* Use new auth-type "deny" instead of using "chap" with no chap entries;trasz2014-02-111-0/+5
| | | | | | it's cleaner this way, and gives better feedback to the user. Sponsored by: The FreeBSD Foundation
* Rename a variable, no functional changes.trasz2014-02-111-2/+2
| | | | Sponsored by: The FreeBSD Foundation
* Implement initiator-name and initiator-portal restrictions.trasz2014-02-111-0/+27
| | | | Sponsored by: The FreeBSD Foundation
* Empty data segment during Login Phase is rather unlikely, but it'strasz2014-02-111-4/+0
| | | | | | | not, by itself, a protocol error. This fixes interoperability with OpenBSD initiator. Sponsored by: The FreeBSD Foundation
* Fix handling for empty auth-groups. Without it, ctld child processtrasz2013-12-101-0/+8
| | | | | | | | would either exit on assertion, or, if assertions are not enabled, fail to authenticate the target. MFC after: 2 days Sponsored by: The FreeBSD Foundation
* Plug memory leaks.trasz2013-10-091-1/+3
| | | | | | Coverity CID: 1087993, 1087992 Approved by: re (marius) Sponsored by: FreeBSD Foundation
* Bring in the new iSCSI target and initiator.trasz2013-09-141-0/+1051
Reviewed by: ken (parts) Approved by: re (delphij) Sponsored by: FreeBSD Foundation
OpenPOWER on IntegriCloud