]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10254 Fix password_scheme to return full hash specification
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 15 Apr 2025 16:44:40 +0000 (17:44 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 23 Jun 2025 16:47:48 +0000 (16:47 +0000)
servers/slapd/overlays/ppolicy.c

index 6a75acd14c1efe8f8386411d1deb783532b815f2..76bddd007df187bdf3c0db637f11e8227378d246 100644 (file)
@@ -2529,7 +2529,7 @@ password_scheme( struct berval *cred, struct berval *sch )
                if (rc) {
                        if (sch) {
                                sch->bv_val = cred->bv_val;
-                               sch->bv_len = e;
+                               sch->bv_len = e + 1;
                        }
                        return LDAP_SUCCESS;
                }