Fix for NT BSOD problem. There's no reason to have two "NT usernames" running
authorMatthew Chapman <matty@samba.org>
Tue, 9 Feb 1999 03:57:10 +0000 (03:57 +0000)
committerMatthew Chapman <matty@samba.org>
Tue, 9 Feb 1999 03:57:10 +0000 (03:57 +0000)
around anyway.

The real problem is, once again, the brokenness of pwdb_sam_map_names et al.
This time it is deciding to return blank NT usernames, which NT's redirector
objects to.

I'm currently working on improving the pwdb/mapping code, should be ready in a
couple of weeks.
(This used to be commit 30a085bf80982c619cd78aee9ad410ece5f88679)

source3/rpc_server/srv_netlog.c

index bb8bc59bc5436c2175e264fc97f79d48ef2dd215..c3810a09e589f57a36ad7d9e63a9f732399028eb 100644 (file)
@@ -609,7 +609,6 @@ static void api_net_sam_logon( uint16 vuid,
        NTTIME pass_can_change_time ;
        NTTIME pass_must_change_time;
 
-       fstring nt_name     ;
        fstring full_name   ;
        fstring logon_script;
        fstring profile_path;
@@ -706,7 +705,6 @@ static void api_net_sam_logon( uint16 vuid,
                pass_can_change_time  = sam_pass->pass_can_change_time;
                pass_must_change_time = sam_pass->pass_must_change_time;
 
-               fstrcpy(nt_name     , sam_pass->nt_name);
                fstrcpy(full_name   , sam_pass->full_name);
                fstrcpy(logon_script, sam_pass->logon_script);
                fstrcpy(profile_path, sam_pass->profile_path);
@@ -771,7 +769,7 @@ static void api_net_sam_logon( uint16 vuid,
                                &pass_can_change_time,
                                &pass_must_change_time,
 
-                               nt_name         , /* user_name */
+                               nt_username     , /* user_name */
                                full_name       , /* full_name */
                                logon_script    , /* logon_script */
                                profile_path    , /* profile_path */