The Samba-Bugzilla – Attachment 2183 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]
Patch fro Samba-3.0.23c
patch-chpasswd (text/plain), 1.23 KB, created by
Alex Deiter
on 2006-10-12 23:38:44 UTC
(
hide
)
Description:
Patch fro Samba-3.0.23c
Filename:
MIME Type:
Creator:
Alex Deiter
Created:
2006-10-12 23:38:44 UTC
Size:
1.23 KB
patch
obsolete
>--- source/passdb/pdb_ldap.c.orig Mon Jun 26 10:58:12 2006 >+++ source/passdb/pdb_ldap.c Mon Jun 26 11:01:51 2006 >@@ -7,6 +7,7 @@ > Copyright (C) Andrew Bartlett 2002-2003 > Copyright (C) Stefan (metze) Metzmacher 2002-2003 > Copyright (C) Simo Sorce 2006 >+ Copyright (C) Alex Deiter 2006 > > This program is free software; you can redistribute it and/or modify > it under the terms of the GNU General Public License as published by >@@ -1581,8 +1582,18 @@ > > if (!smbldap_has_extension(ldap_state->smbldap_state->ldap_struct, > LDAP_EXOP_MODIFY_PASSWD)) { >- 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