From 1273a2669eb64488441779e3aba93fc76d7c1487 Mon Sep 17 00:00:00 2001 From: leitner Date: Sat, 16 Sep 2023 19:49:33 +0000 Subject: [PATCH] return invalidCredentials on auth fail, not inappropriateAuthentication --- tinyldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyldap.c b/tinyldap.c index daec7eb..01aded0 100644 --- a/tinyldap.c +++ b/tinyldap.c @@ -1774,7 +1774,7 @@ authfailure: { char outbuf[1024]; size_t s=100; - size_t len=fmt_ldapbindresponse(outbuf+s,inappropriateAuthentication,"","authentication failure",""); + size_t len=fmt_ldapbindresponse(outbuf+s,invalidCredentials,"","authentication failure",""); size_t hlen=fmt_ldapmessage(0,messageid,BindResponse,len); fmt_ldapmessage(outbuf+s-hlen,messageid,BindResponse,len); write(out,outbuf+s-hlen,len+hlen);