mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r17226: add some comments about ldap binds and pending requests
metze
This commit is contained in:
parent
4827a6b171
commit
e8db1fb558
@ -125,6 +125,12 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
|
||||
|
||||
conn = call->conn;
|
||||
|
||||
/*
|
||||
* TODO: a SASL bind with a different mechanism
|
||||
* should cancel an inprogress SASL bind.
|
||||
* (see RFC 4513)
|
||||
*/
|
||||
|
||||
if (!conn->gensec) {
|
||||
conn->session_info = NULL;
|
||||
|
||||
@ -268,6 +274,14 @@ NTSTATUS ldapsrv_BindRequest(struct ldapsrv_call *call)
|
||||
struct ldapsrv_reply *reply;
|
||||
struct ldap_BindResponse *resp;
|
||||
|
||||
/*
|
||||
* TODO: we should fail the bind request
|
||||
* if there're any pending requests.
|
||||
*
|
||||
* also a simple bind should cancel an
|
||||
* inprogress SASL bind.
|
||||
* (see RFC 4513)
|
||||
*/
|
||||
switch (req->mechanism) {
|
||||
case LDAP_AUTH_MECH_SIMPLE:
|
||||
return ldapsrv_BindSimple(call);
|
||||
|
Loading…
Reference in New Issue
Block a user