diff options
author | Jean-François Micouleau <jfm@samba.org> | 2001-12-06 13:09:15 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2001-12-06 13:09:15 +0000 |
commit | fef52c4b96c987115fb1818c00c2352c67790e50 (patch) | |
tree | d40e06ffd39d9b7731d35aa4fbb3842628f59af3 /source/auth | |
parent | 9866c18193226ec4dc69ccc459f4f9b36610b945 (diff) | |
download | samba-fef52c4b96c987115fb1818c00c2352c67790e50.tar.gz samba-fef52c4b96c987115fb1818c00c2352c67790e50.tar.xz samba-fef52c4b96c987115fb1818c00c2352c67790e50.zip |
again an intrusive patch:
- removed the ugly as hell sam_logon_in_ssb variable, I changed a bit the
definition of standard_sub_basic() to cope with that.
- removed the smb.conf: 'domain admin group' and 'domain guest group'
parameters ! We're not playing anymore with the user's group RIDs !
- in get_domain_user_groups(), if the user's gid is a group, put it first
in the group RID list.
I just have to write an HOWTO now ;-)
J.F.
Diffstat (limited to 'source/auth')
-rw-r--r-- | source/auth/auth_domain.c | 3 | ||||
-rw-r--r-- | source/auth/auth_server.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/auth/auth_domain.c b/source/auth/auth_domain.c index 125b3aa0297..6b048e5021c 100644 --- a/source/auth/auth_domain.c +++ b/source/auth/auth_domain.c @@ -25,6 +25,7 @@ BOOL global_machine_password_needs_changing = False; extern pstring global_myname; +extern userdom_struct current_user_info; /*********************************************************************** Connect to a remote machine for domain security authentication @@ -62,7 +63,7 @@ static BOOL connect_to_domain_password_server(struct cli_state *pcli, fstrcpy(remote_machine, server); } - standard_sub_basic(remote_machine); + standard_sub_basic(current_user_info.smb_name, remote_machine); strupper(remote_machine); if(!resolve_name( remote_machine, &dest_ip, 0x20)) { diff --git a/source/auth/auth_server.c b/source/auth/auth_server.c index 4608c639ebc..8d9b9f98198 100644 --- a/source/auth/auth_server.c +++ b/source/auth/auth_server.c @@ -23,6 +23,7 @@ #include "includes.h" extern pstring global_myname; +extern userdom_struct current_user_info; /**************************************************************************** Support for server level security. @@ -46,7 +47,7 @@ static struct cli_state *server_cryptkey(void) p = pserver; while(next_token( &p, desthost, LIST_SEP, sizeof(desthost))) { - standard_sub_basic(desthost); + standard_sub_basic(current_user_info.smb_name, desthost); strupper(desthost); if(!resolve_name( desthost, &dest_ip, 0x20)) { |