mirror of
https://github.com/samba-team/samba.git
synced 2025-10-23 11:33:16 +03:00
r21511: this seems to be the nicer fix for the problem with
the windows 2000 LDAP client metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
8e604107da
commit
d40465470f
@@ -185,14 +185,10 @@ static NTSTATUS ldapsrv_BindSASL(struct ldapsrv_call *call)
|
||||
status = gensec_update(conn->gensec, reply,
|
||||
input, &output);
|
||||
|
||||
/* TODO: gensec should really handle the difference between NULL and length=0 better! */
|
||||
if (output.data) {
|
||||
resp->SASL.secblob = talloc(reply, DATA_BLOB);
|
||||
NT_STATUS_HAVE_NO_MEMORY(resp->SASL.secblob);
|
||||
*resp->SASL.secblob = output;
|
||||
} else {
|
||||
resp->SASL.secblob = NULL;
|
||||
}
|
||||
/* Windows 2000 mmc doesn't like secblob == NULL and reports a decoding error */
|
||||
resp->SASL.secblob = talloc(reply, DATA_BLOB);
|
||||
NT_STATUS_HAVE_NO_MEMORY(resp->SASL.secblob);
|
||||
*resp->SASL.secblob = output;
|
||||
} else {
|
||||
resp->SASL.secblob = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user