diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-19 15:33:25 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-19 15:33:25 +0000 |
commit | 54ffd7f5c9251382874d9c47611d5c666f782f6b (patch) | |
tree | 7cfd86da716891798bddbfdce4667f156ba562c2 /source3/pipenetlog.c | |
parent | b0c148793b8ac4b62e9a66ce7e269ab50b90bf8d (diff) | |
download | samba-54ffd7f5c9251382874d9c47611d5c666f782f6b.tar.gz samba-54ffd7f5c9251382874d9c47611d5c666f782f6b.tar.bz2 samba-54ffd7f5c9251382874d9c47611d5c666f782f6b.zip |
Makefile :
added srvparse.o and pipesrvsvc.o
smb.h :
mods to the Net Share Enum stuff
srvparse.c :
Net Share Enum parsing support. more srvsvc pipe parsing to go here...
pipenetlog.c util.c:
modified standard_sub_basic() so that you can set a global boolean
and use a different string for the %U username substitution.
proto.h:
the usual.
(This used to be commit 22b86b6499b2680d16cb4180a736b4e750147409)
Diffstat (limited to 'source3/pipenetlog.c')
-rw-r--r-- | source3/pipenetlog.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/source3/pipenetlog.c b/source3/pipenetlog.c index f291620796..0dac804834 100644 --- a/source3/pipenetlog.c +++ b/source3/pipenetlog.c @@ -32,6 +32,8 @@ extern int DEBUGLEVEL; +extern BOOL sam_logon_in_ssb; +extern pstring samlogon_user; #ifdef NTDOMAIN @@ -505,7 +507,6 @@ static void api_lsa_sam_logon( user_struct *vuser, pstring my_name; pstring my_workgroup; pstring dom_sid; - pstring username; extern pstring myname; dummy_time.low = 0xffffffff; @@ -513,12 +514,16 @@ static void api_lsa_sam_logon( user_struct *vuser, get_myname(myname, NULL); + pstrcpy(samlogon_user, unistr2(q_l.sam_id.auth.id1.uni_user_name.buffer)); + + /* hack to get standard_sub_basic() to use the sam logon username */ + sam_logon_in_ssb = True; + pstrcpy(logon_script, lp_logon_script()); pstrcpy(profile_path, lp_logon_path ()); pstrcpy(dom_sid , lp_domainsid ()); pstrcpy(my_workgroup, lp_workgroup ()); - pstrcpy(username, unistr2(q_l.sam_id.auth.id1.uni_user_name.buffer)); pstrcpy(my_name , myname ); strupper(my_name); @@ -528,8 +533,10 @@ static void api_lsa_sam_logon( user_struct *vuser, pstrcpy(home_dir , vuser->home_share); #else pstrcpy(home_dir , "\\\\%L\\%U"); - standard_sub_basic(home_dir); #endif + standard_sub_basic(home_dir); + + sam_logon_in_ssb = False; make_lsa_user_info(&usr_info, @@ -540,7 +547,7 @@ static void api_lsa_sam_logon( user_struct *vuser, &dummy_time, /* pass_can_change_time */ &dummy_time, /* pass_must_change_time */ - username, /* user_name */ + samlogon_user, /* user_name */ vuser->real_name, /* full_name */ logon_script, /* logon_script */ profile_path, /* profile_path */ |