The Samba-Bugzilla – Attachment 3080 Details for
Bug 5163
Failure to change password in ldap is mapped to NT_STATUS_UNSUCCESSFUL unconditionally
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Return NT_STATUS_PASSWORD_RESTRICTION when ldap password policy check failed
ldap-passwd-change-5163.patch (text/plain), 610 bytes, created by
Laurent Pinchart
on 2007-12-28 05:38:48 UTC
(
hide
)
Description:
Return NT_STATUS_PASSWORD_RESTRICTION when ldap password policy check failed
Filename:
MIME Type:
Creator:
Laurent Pinchart
Created:
2007-12-28 05:38:48 UTC
Size:
610 bytes
patch
obsolete
>--- samba-3.0.26a/source/passdb/pdb_ldap.c 2007-08-20 15:04:50.000000000 +0200 >+++ samba-3.0.26a/source/passdb/pdb_ldap.c 2007-12-28 11:27:12.000000000 +0100 >@@ -1651,7 +1651,10 @@ > pdb_get_username(newpwd), ldap_err2string(rc), ld_error?ld_error:"unknown")); > SAFE_FREE(ld_error); > ber_bvfree(bv); >- return NT_STATUS_UNSUCCESSFUL; >+ if (rc == LDAP_CONSTRAINT_VIOLATION) >+ return NT_STATUS_PASSWORD_RESTRICTION; >+ else >+ return NT_STATUS_UNSUCCESSFUL; > } else { > DEBUG(3,("ldapsam_modify_entry: LDAP Password changed for user %s\n",pdb_get_username(newpwd))); > #ifdef DEBUG_PASSWORD
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5163
: 3080