The Samba-Bugzilla – Attachment 1727 Details for
Bug 3514
Change ldap userPassword attribute without LDAP_EXOP_MODIFY_PASSWD feature
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch allow chage userPassword via sample smbldap_modify
patch-chpasswd (text/plain), 907 bytes, created by
Alex Deiter
on 2006-02-14 07:31:44 UTC
(
hide
)
Description:
Proposed patch allow chage userPassword via sample smbldap_modify
Filename:
MIME Type:
Creator:
Alex Deiter
Created:
2006-02-14 07:31:44 UTC
Size:
907 bytes
patch
obsolete
>--- source/passdb/pdb_ldap.c.orig Tue Feb 14 15:38:07 2006 >+++ source/passdb/pdb_ldap.c Tue Feb 14 16:03:47 2006 >@@ -1664,8 +1664,18 @@ > > if (!ldap_state->is_nds_ldap) { > if (!ldapsam_can_pwchange_exop(ldap_state->smbldap_state)) { >- DEBUG(2, ("ldap password change requested, but LDAP " >- "server does not support it -- ignoring\n")); >+ LDAPMod **mods = NULL; >+ smbldap_set_mod(&mods, LDAP_MOD_REPLACE, "userPassword", >+ pdb_get_plaintext_passwd(newpwd)); >+ rc = smbldap_modify(ldap_state->smbldap_state, dn, mods); >+ ldap_mods_free(mods, True); >+ if (rc != LDAP_SUCCESS) { >+ DEBUG(2,("Failed modify userPassword for user %s: %s\n", >+ pdb_get_username(newpwd), ldap_err2string(rc))); >+ return NT_STATUS_UNSUCCESSFUL; >+ } >+ DEBUG(2,("Successfully modify userPassword for user %s\n", >+ pdb_get_username(newpwd))); > return NT_STATUS_OK; > } > }
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 3514
:
1727
|
1842
|
2183