The Samba-Bugzilla – Attachment 1599 Details for
Bug 3288
%-Macros expanded in explicitly set passdb entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add passdb:expand_explicit
expand.diff (text/plain), 2.70 KB, created by
Volker Lendecke
on 2005-11-28 13:51:55 UTC
(
hide
)
Description:
Add passdb:expand_explicit
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2005-11-28 13:51:55 UTC
Size:
2.70 KB
patch
obsolete
>Index: passdb/pdb_ldap.c >=================================================================== >--- passdb/pdb_ldap.c (Revision 11913) >+++ passdb/pdb_ldap.c (Revision 11914) >@@ -604,6 +604,8 @@ > LOGIN_CACHE *cache_entry = NULL; > uint32 pwHistLen; > pstring tmpstring; >+ BOOL expand_explicit = lp_parm_bool(-1, "passdb", "expand_explicit", >+ False); > > /* > * do a little initialization >@@ -776,7 +778,10 @@ > PDB_DEFAULT ); > } else { > pstrcpy( tmpstring, homedir ); >- standard_sub_basic( username, tmpstring, sizeof(tmpstring) ); >+ if (expand_explicit) { >+ standard_sub_basic( username, tmpstring, >+ sizeof(tmpstring) ); >+ } > pdb_set_homedir(sampass, tmpstring, PDB_SET); > } > >@@ -788,7 +793,10 @@ > PDB_DEFAULT ); > } else { > pstrcpy( tmpstring, logon_script ); >- standard_sub_basic( username, tmpstring, sizeof(tmpstring) ); >+ if (expand_explicit) { >+ standard_sub_basic( username, tmpstring, >+ sizeof(tmpstring) ); >+ } > pdb_set_logon_script(sampass, tmpstring, PDB_SET); > } > >@@ -800,7 +808,10 @@ > PDB_DEFAULT ); > } else { > pstrcpy( tmpstring, profile_path ); >- standard_sub_basic( username, tmpstring, sizeof(tmpstring) ); >+ if (expand_explicit) { >+ standard_sub_basic( username, tmpstring, >+ sizeof(tmpstring) ); >+ } > pdb_set_profile_path(sampass, tmpstring, PDB_SET); > } > >Index: passdb/passdb.c >=================================================================== >--- passdb/passdb.c (Revision 11913) >+++ passdb/passdb.c (Revision 11914) >@@ -1756,6 +1756,8 @@ > uint32 pwHistLen = 0; > BOOL ret = True; > fstring tmpstring; >+ BOOL expand_explicit = lp_parm_bool(-1, "passdb", "expand_explicit", >+ False); > > if(sampass == NULL || buf == NULL) { > DEBUG(0, ("init_sam_from_buffer_v2: NULL parameters found!\n")); >@@ -1820,7 +1822,10 @@ > > if (homedir) { > fstrcpy( tmpstring, homedir ); >- standard_sub_basic( username, tmpstring, sizeof(tmpstring) ); >+ if (expand_explicit) { >+ standard_sub_basic( username, tmpstring, >+ sizeof(tmpstring) ); >+ } > pdb_set_homedir(sampass, tmpstring, PDB_SET); > } > else { >@@ -1836,7 +1841,10 @@ > > if (logon_script) { > fstrcpy( tmpstring, logon_script ); >- standard_sub_basic( username, tmpstring, sizeof(tmpstring) ); >+ if (expand_explicit) { >+ standard_sub_basic( username, tmpstring, >+ sizeof(tmpstring) ); >+ } > pdb_set_logon_script(sampass, tmpstring, PDB_SET); > } > else { >@@ -1847,7 +1855,10 @@ > > if (profile_path) { > fstrcpy( tmpstring, profile_path ); >- standard_sub_basic( username, tmpstring, sizeof(tmpstring) ); >+ if (expand_explicit) { >+ standard_sub_basic( username, tmpstring, >+ sizeof(tmpstring) ); >+ } > pdb_set_profile_path(sampass, tmpstring, PDB_SET); > } > else {
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 3288
: 1599