Changeset 759 for trunk/guitools/shared
- Timestamp:
- Feb 17, 2013, 4:34:32 PM (13 years ago)
- Location:
- trunk/guitools/shared
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/shared/masterpasswd.vrs
r719 r759 72 72 newmasterpasswd = TempDir'master.passwd' 73 73 ok = SysFileDelete(newmasterpasswd) 74 call lineout newmasterpasswd, '# Created by smbusers Version 'word(VRGet("Main", "Hinttext"),2)74 call lineout newmasterpasswd, '# Created by Samba GUI Tools 'date('E')' 'time('')) 75 75 call lineout newmasterpasswd, '# syntax:' 76 76 call lineout newmasterpasswd, '# username:passwd:UID:GID:login-class:chg pw x sec:deact x sec:GECOS:home:shell' … … 121 121 IF options.!debug == 1 then say time()" _PasswordDBRewrite() done ("pwd_mkdbrc")" 122 122 return 123 124 _MasterPasswdFindUser: procedure expose username. 125 IF options.!debug == 1 THEN say '_MasterpasswdFindUser("'arg(1)'") started' 126 FindUser = arg(1) 127 Idx = 0 128 do I = 1 to username.0 129 if translate(username.I) = translate(FindUser) then do 130 Idx = I 131 leave 132 end 133 end 134 IF options.!debug == 1 THEN say '_MasterpasswdFindUser("'FindUser'") done, returning 'Idx 135 return idx -
trunk/guitools/shared/smbtree.vrs
r707 r759 19 19 address cmd 'detach 'samba.!smbtreeexe' 'BroadCast' -S 'UserCred' 'debuglevel' >'samba.!serverlist 20 20 21 if UserCred = '-N' then ok = VRSet("CN_SMBTREE","Caption","User context: Guest") 21 /* strip username from caption */ 22 UserContext = VRGet("CN_SMBTREE","Caption") 23 UserContext = DelWord(UserContext,words(UserContext)) 24 25 if UserCred = '-N' then ok = VRSet("CN_SMBTREE","Caption",UserContext': Guest') 22 26 else do 23 27 parse var UserCred '--user='username'%'. 24 ok = VRSet("CN_SMBTREE","Caption", "User context: "username)28 ok = VRSet("CN_SMBTREE","Caption",UserContext": "username) 25 29 end 26 30 … … 165 169 166 170 say ' detach 'samba.!smbclientexe' -L "'machine'" 'UserCred' 'debuglevel' 2>'smbmachine' 1>&2' 171 call lineout "y:\debugger", ' detach 'samba.!smbclientexe' -L "'machine'" 'UserCred' 'debuglevel' 2>'smbmachine' 1>&2' 167 172 address cmd 'detach 'samba.!smbclientexe' -L "'machine'" 'UserCred' 'debuglevel' 2>'smbmachine' 1>&2' 168 173
Note:
See TracChangeset
for help on using the changeset viewer.