[Patch] util_pwdb.c for joining domain....

Bill Nugent whn at topelo.lopi.com
Fri Feb 12 02:55:07 GMT 1999


On Friday, Feb 12 1999 at 10:36:28, Luke Kenneth Casson Leighton wrote:


>can't remember :)  i _appear_ to have fixed some unicode issues, try cvs
>again.
> 
>> Also... another problem I have. If an NT Workstation is logged into the
>> Samba domain crashes, I can't get back on the Domain. The Samba server 
seems
>
>yes, that'd be right - it loses sync with the NT workstation on the trust
>account stuff.  sorry!
>

Broken on RedHat 5.2 i386:

Compiling rpcclient/display.c
rpcclient/display.c: In function `display_sam_user_info_21':
rpcclient/display.c:1159: `user' undeclared (first use this function)
rpcclient/display.c:1159: (Each undeclared identifier is reported only 
once
rpcclient/display.c:1159: for each function it appears in.)
make: *** [rpcclient/display.o] Error 1

This patch allows it to compile (don't know about proper operation):

--- rpcclient/display.c.orig    Thu Feb 11 21:52:36 1999
+++ rpcclient/display.c Thu Feb 11 21:52:38 1999
@@ -1156,31 +1156,31 @@
                        unistr2_to_ascii(temp, &usr->uni_user_name, sizeof(temp));
                        fprintf(out_hnd, "\t\tUser Name   :\t%s\n", temp);
 
-                       unistr2_to_ascii(temp, &user->uni_full_name, sizeof(temp));
+                       unistr2_to_ascii(temp, &usr->uni_full_name, sizeof(temp));
                        fprintf(out_hnd, "\t\tFull Name   :\t%s\n", temp);
 
-                       unistr2_to_ascii(temp, &user->uni_home_dir, sizeof(temp));
+                       unistr2_to_ascii(temp, &usr->uni_home_dir, sizeof(temp));
                        fprintf(out_hnd, "\t\tHome Drive  :\t%s\n", temp);
 
-                       unistr2_to_ascii(temp, &user->uni_dir_drive, sizeof(temp));
+                       unistr2_to_ascii(temp, &usr->uni_dir_drive, sizeof(temp));
                        fprintf(out_hnd, "\t\tDir Drive   :\t%s\n", temp);
 
-                       unistr2_to_ascii(temp, &user->uni_profile_path, sizeof(temp));
+                       unistr2_to_ascii(temp, &usr->uni_profile_path, sizeof(temp));
                        fprintf(out_hnd, "\t\tProfile Path:\t%s\n", temp);
 
-                       unistr2_to_ascii(temp, &user->uni_logon_script, sizeof(temp));
+                       unistr2_to_ascii(temp, &usr->uni_logon_script, sizeof(temp));
                        fprintf(out_hnd, "\t\tLogon Script:\t%s\n", temp);
 
-                       unistr2_to_ascii(temp, &user->uni_acct_desc, sizeof(temp));
+                       unistr2_to_ascii(temp, &usr->uni_acct_desc, sizeof(temp));
                        fprintf(out_hnd, "\t\tDescription :\t%s\n", temp);
 
-                       unistr2_to_ascii(temp, &user->uni_workstations, sizeof(temp));
+                       unistr2_to_ascii(temp, &usr->uni_workstations, sizeof(temp));
                        fprintf(out_hnd, "\t\tWorkstations:\t%s\n", temp);
 
-                       unistr2_to_ascii(temp, &user->uni_unknown_str, sizeof(temp));
+                       unistr2_to_ascii(temp, &usr->uni_unknown_str, sizeof(temp));
                        fprintf(out_hnd, "\t\tUnknown Str :\t%s\n", temp);
 
-                       unistr2_to_ascii(temp, &user->uni_munged_dial, sizeof(temp));
+                       unistr2_to_ascii(temp, &usr->uni_munged_dial, sizeof(temp));
                        fprintf(out_hnd, "\t\tRemote Dial :\t%s\n", temp);
 
                        fprintf(out_hnd, "\t\tLogon Time               :\t%s\n", http_timestring(nt_time_to_unix(&(usr->logon_time           ))));

	Bill



More information about the samba-ntdom mailing list