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"));
if (homedir) {
fstrcpy( tmpstring, homedir );
- if (expand_explicit) {
- standard_sub_basic( username, tmpstring,
- sizeof(tmpstring) );
- }
+ standard_sub_basic( username, tmpstring, sizeof(tmpstring) );
pdb_set_homedir(sampass, tmpstring, PDB_SET);
}
else {
if (logon_script) {
fstrcpy( tmpstring, logon_script );
- if (expand_explicit) {
- standard_sub_basic( username, tmpstring,
- sizeof(tmpstring) );
- }
+ standard_sub_basic( username, tmpstring, sizeof(tmpstring) );
pdb_set_logon_script(sampass, tmpstring, PDB_SET);
}
else {
if (profile_path) {
fstrcpy( tmpstring, profile_path );
- if (expand_explicit) {
- standard_sub_basic( username, tmpstring,
- sizeof(tmpstring) );
- }
+ standard_sub_basic( username, tmpstring, sizeof(tmpstring) );
pdb_set_profile_path(sampass, tmpstring, PDB_SET);
}
else {
LOGIN_CACHE *cache_entry = NULL;
uint32 pwHistLen;
pstring tmpstring;
- BOOL expand_explicit = lp_parm_bool(-1, "passdb", "expand_explicit",
- False);
/*
* do a little initialization
PDB_DEFAULT );
} else {
pstrcpy( tmpstring, homedir );
- if (expand_explicit) {
- standard_sub_basic( username, tmpstring,
- sizeof(tmpstring) );
- }
+ standard_sub_basic( username, tmpstring, sizeof(tmpstring) );
pdb_set_homedir(sampass, tmpstring, PDB_SET);
}
PDB_DEFAULT );
} else {
pstrcpy( tmpstring, logon_script );
- if (expand_explicit) {
- standard_sub_basic( username, tmpstring,
- sizeof(tmpstring) );
- }
+ standard_sub_basic( username, tmpstring, sizeof(tmpstring) );
pdb_set_logon_script(sampass, tmpstring, PDB_SET);
}
PDB_DEFAULT );
} else {
pstrcpy( tmpstring, profile_path );
- if (expand_explicit) {
- standard_sub_basic( username, tmpstring,
- sizeof(tmpstring) );
- }
+ standard_sub_basic( username, tmpstring, sizeof(tmpstring) );
pdb_set_profile_path(sampass, tmpstring, PDB_SET);
}