The Samba-Bugzilla – Attachment 1663 Details for
Bug 3356
No way to set LDAP bind passwd without having it visible on the command line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add -W option to smbpasswd for interacive or -s enhanced entry of LDAP rootdn passwd
smbpasswd-W-newopt.txt (text/plain), 1.39 KB, created by
William Jojo
on 2006-01-11 04:48:52 UTC
(
hide
)
Description:
add -W option to smbpasswd for interacive or -s enhanced entry of LDAP rootdn passwd
Filename:
MIME Type:
Creator:
William Jojo
Created:
2006-01-11 04:48:52 UTC
Size:
1.39 KB
patch
obsolete
>--- utils/smbpasswd.c.orig 2006-01-10 18:44:40.000000000 -0500 >+++ utils/smbpasswd.c 2006-01-11 06:41:22.000000000 -0500 >@@ -92,7 +92,7 @@ > > user_name[0] = '\0'; > >- while ((ch = getopt(argc, argv, "c:axdehminjr:sw:R:D:U:L")) != EOF) { >+ while ((ch = getopt(argc, argv, "c:axdehminjr:sw::R:D:U:LW")) != EOF) { > switch(ch) { > case 'L': > local_flags |= LOCAL_AM_ROOT; >@@ -153,6 +153,10 @@ > got_username = True; > fstrcpy(user_name, optarg); > break; >+ case 'W': >+ local_flags |= LOCAL_SET_LDAP_ADMIN_PW; >+ *ldap_secret = '\0'; >+ break; > } > case 'h': > default: >@@ -325,6 +329,10 @@ > if (local_flags & LOCAL_SET_LDAP_ADMIN_PW) { > printf("Setting stored password for \"%s\" in secrets.tdb\n", > lp_ldap_admin_dn()); >+ if ( ! *ldap_secret ) { >+ new_passwd = prompt_for_new_password(stdin_passwd_get); >+ fstrcpy(ldap_secret, new_passwd); >+ } > if (!store_ldap_admin_pw(ldap_secret)) > DEBUG(0,("ERROR: Failed to store the ldap admin password!\n")); > goto done;
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 3356
: 1663