The Samba-Bugzilla – Attachment 1842 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.22
patch-chpasswd (text/plain), 1.22 KB, created by
Alex Deiter
on 2006-04-04 07:59:21 UTC
(
hide
)
Description:
Patch fro Samba-3.0.22
Filename:
MIME Type:
Creator:
Alex Deiter
Created:
2006-04-04 07:59:21 UTC
Size:
1.22 KB
patch
obsolete
>--- source/passdb/pdb_ldap.c.orig Wed Jan 25 02:46:37 2006 >+++ source/passdb/pdb_ldap.c Tue Apr 4 16:57:51 2006 >@@ -6,6 +6,7 @@ > Copyright (C) Shahms King 2001 > Copyright (C) Andrew Bartlett 2002-2003 > Copyright (C) Stefan (metze) Metzmacher 2002-2003 >+ 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 >@@ -1664,8 +1665,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