The Samba-Bugzilla – Attachment 1689 Details for
Bug 3413
[PATCH]: do not allow LDAP password set on null ldap admin dn.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for lp_ldap_admin_dn() check.
smbpasswd-null dn patch.txt (text/plain), 871 bytes, created by
William Jojo
on 2006-01-16 05:50:30 UTC
(
hide
)
Description:
patch for lp_ldap_admin_dn() check.
Filename:
MIME Type:
Creator:
William Jojo
Created:
2006-01-16 05:50:30 UTC
Size:
871 bytes
patch
obsolete
>--- utils/smbpasswd.c.060115 2006-01-16 07:43:26.000000000 -0500 >+++ utils/smbpasswd.c 2006-01-16 07:30:26.000000000 -0500 >@@ -327,8 +327,15 @@ > char *old_passwd = NULL; > > if (local_flags & LOCAL_SET_LDAP_ADMIN_PW) { >+ char *ldap_admin_dn; >+ >+ ldap_admin_dn = lp_ldap_admin_dn(); >+ if ( ! *ldap_admin_dn ) { >+ DEBUG(0,("ERROR: 'ldap admin dn' not set in smb.conf!\n")); >+ goto done; >+ } > printf("Setting stored password for \"%s\" in secrets.tdb\n", >- lp_ldap_admin_dn()); >+ ldap_admin_dn); > if ( ! *ldap_secret ) { > new_passwd = prompt_for_new_password(stdin_passwd_get); > fstrcpy(ldap_secret, new_passwd);
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 3413
: 1689