mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
fix scheme recognition (ITS#4575)
This commit is contained in:
parent
41ceb4af9d
commit
103392b9a3
@ -525,9 +525,11 @@ password_scheme( struct berval *cred, struct berval *sch )
|
|||||||
if (cred->bv_val[e]) {
|
if (cred->bv_val[e]) {
|
||||||
int rc;
|
int rc;
|
||||||
rc = lutil_passwd_scheme( cred->bv_val );
|
rc = lutil_passwd_scheme( cred->bv_val );
|
||||||
if (rc && sch) {
|
if (rc) {
|
||||||
sch->bv_val = cred->bv_val;
|
if (sch) {
|
||||||
sch->bv_len = e;
|
sch->bv_val = cred->bv_val;
|
||||||
|
sch->bv_len = e;
|
||||||
|
}
|
||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user