Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 166459 Details for
Bug 238719
net-nds/smbldap-tools: smbldap-passwd password change as user fails when using sub-ous
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Unified patch for smbldap-tools-0.9.4-r1
smbldapoupatch0.9.4-r1 (text/plain), 919 bytes, created by
Huemi
on 2008-09-26 07:56:09 UTC
(
hide
)
Description:
Unified patch for smbldap-tools-0.9.4-r1
Filename:
MIME Type:
Creator:
Huemi
Created:
2008-09-26 07:56:09 UTC
Size:
919 bytes
patch
obsolete
>--- /usr/sbin/smbldap-passwd 2008-09-26 10:36:21.000000000 +0200 >+++ smbldap-passwd.patched 2008-09-26 10:38:25.000000000 +0200 >@@ -88,6 +88,7 @@ > > > my ($dn,$ldap_master); >+my $dn_line; > # First, connecting to the directory > if ($< != 0) { > # non-root user >@@ -102,7 +103,8 @@ > $config{masterDN}="uid=$user,$config{usersdn}"; > $config{masterPw}="$oldpass"; > $ldap_master=connect_ldap_master(); >- $dn=$config{masterDN}; >+ $dn_line=get_user_dn($user); >+ $dn=get_dn_from_line($dn_line); > if (!is_user_valid($user, $dn, $oldpass)) { > print "Authentication failure\n"; > exit (10); >@@ -198,7 +200,7 @@ > if ($< != 0) { > # if we are not root, we close the connection to re-open it as a >normal user > $ldap_master->unbind; >- $config{masterDN}="uid=$user,$config{usersdn}"; >+ $config{masterDN}="$dn"; > $config{masterPw}="$oldpass"; > $ldap_master=connect_ldap_master(); > } >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238719
:
166454
| 166459