summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-07-23 12:17:02 +0200
committerVolker Lendecke <vl@samba.org>2016-02-01 09:53:10 +0100
commit5a0c439eb5cc071fa3a74702eaf619ab45b7c942 (patch)
tree1642cdc6b9303e92bc91b3eeaa644d9e8b10bbc7 /source4/ldap_server
parent90cb84c9052bbe7c23fa6e58a3041f0c05249821 (diff)
downloadsamba-5a0c439eb5cc071fa3a74702eaf619ab45b7c942.tar.gz
s4:ldap_server: use LDAP_AUTH_METHOD_NOT_SUPPORTED define
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c
index 69a6b6153b0..fcbdadf52ee 100644
--- a/source4/ldap_server/ldap_bind.c
+++ b/source4/ldap_server/ldap_bind.c
@@ -354,7 +354,7 @@ NTSTATUS ldapsrv_BindRequest(struct ldapsrv_call *call)
}
resp = &reply->msg->r.BindResponse;
- resp->response.resultcode = 7;
+ resp->response.resultcode = LDAP_AUTH_METHOD_NOT_SUPPORTED;
resp->response.dn = NULL;
resp->response.errormessage = talloc_asprintf(reply, "Bad AuthenticationChoice [%d]", req->mechanism);
resp->response.referral = NULL;