mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r11523: Working towards having Samba3 join Samba4, this allows the SASL
credentials to be NULL, where the client is requesting a CIFS style
server-first negTokenInit.
Andrew Bartlett
(This used to be commit eba652ecc8
)
This commit is contained in:
parent
df9af34876
commit
75ec65597c
@ -933,10 +933,14 @@ BOOL ldap_decode(struct asn1_data *data, struct ldap_message *msg)
|
||||
asn1_start_tag(data, ASN1_CONTEXT(3));
|
||||
r->mechanism = LDAP_AUTH_MECH_SASL;
|
||||
asn1_read_OctetString_talloc(msg, data, &r->creds.SASL.mechanism);
|
||||
if (asn1_peek_tag(data, ASN1_OCTET_STRING)) { /* optional */
|
||||
asn1_read_OctetString(data, &r->creds.SASL.secblob);
|
||||
if (r->creds.SASL.secblob.data) {
|
||||
talloc_steal(msg, r->creds.SASL.secblob.data);
|
||||
}
|
||||
} else {
|
||||
r->creds.SASL.secblob = data_blob(NULL, 0);
|
||||
}
|
||||
asn1_end_tag(data);
|
||||
}
|
||||
asn1_end_tag(data);
|
||||
|
Loading…
Reference in New Issue
Block a user