]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:ldap_server: use LDAP_AUTH_METHOD_NOT_SUPPORTED define
authorStefan Metzmacher <metze@samba.org>
Thu, 23 Jul 2015 10:17:02 +0000 (12:17 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 1 Feb 2016 08:53:10 +0000 (09:53 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/ldap_server/ldap_bind.c

index 69a6b6153b034d32c39c1865075c21262e73d291..fcbdadf52ee7836d188af771021f89bdf52234b8 100644 (file)
@@ -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;