amazing tng-0.6

Patrick J. LoPresti patl at cag.lcs.mit.edu
Sat Feb 26 22:02:51 GMT 2000


Vladimir Stavrinov <vs at lasp.npi.msu.su> writes:

> Luck, my congratulations! - tng got new "feature" (once more new):
> while login NT say me: "system unable to create profile
> \\samba-pdc\\profile.pds". Logon path always setting up to
> \\%L\%U\profile, but I first see this for a 2 years. It seems, like
> %U substitution not recognized when login start, but when login
> complete (with new local profile) share \\%L\%U exist.

We have the same problem.  See passdb/sampass.c, line 115.  Although
user->unix_name is filled in, user->nt_name is the empty string.  I do
not know why.

The attached patch is a workaround; it uses the unix_name as if it
were the requested name (%U).  This is not a correct fix (I am looking
into that now), but it does make my logon scripts and roving profiles
work again.

 - Pat

-------------- next part --------------
Index: source/passdb/sampass.c
===================================================================
RCS file: /cvsroot/samba/source/passdb/Attic/sampass.c,v
retrieving revision 1.5.2.8
diff -u -1 -0 -r1.5.2.8 sampass.c
--- sampass.c	2000/02/22 03:28:13	1.5.2.8
+++ sampass.c	2000/02/26 21:53:02
@@ -105,21 +105,21 @@
 
 	/*
 	 * get all the other gubbins we need.  substitute unix name for %U
 	 */
 
 #if 0
 	vuser = get_valid_user_struct(get_sec_ctx());
 #endif
 
 	/* HACK to make %U work in substitutions below */
-	fstrcpy(bogus_user_struct.requested_name, user->nt_name);
+	fstrcpy(bogus_user_struct.requested_name, user->unix_name);
 	fstrcpy(bogus_user_struct.name          , user->unix_name);
  
   	pstrcpy(full_name    , "");
  	pstrcpy(logon_script , lp_logon_script (&bogus_user_struct));
  	pstrcpy(profile_path , lp_logon_path (&bogus_user_struct));
  	pstrcpy(home_drive   , lp_logon_drive (&bogus_user_struct));
  	pstrcpy(home_dir     , lp_logon_home (&bogus_user_struct));
   	pstrcpy(acct_desc    , "");
   	pstrcpy(workstations , "");
 


More information about the samba-ntdom mailing list