[Samba] Windows 7 client not mounting 'HOME' share.

Miguel Medalha miguelmedalha at sapo.pt
Tue Jul 26 12:40:51 MDT 2011



On 2011-07-26 19:31, Miguel Medalha wrote:
>
>>
>> Workstations successfully registered with the PDC, users can login, 
>> profiles are found and updated, network shares are all mounted during 
>> login (logon script = %G.bat) except for the home directory of the user.
>>
>
> I met the same problem more than once and I found that I have to 
> remove the corresponding entries from the LDAP database 
> ("sambaHomePath" and "sambaHomeDrive" attributes). If these attributes 
> are set, the user does not connect to his home service. The homedir 
> needs to be only in smb.conf.
>
>


I must add that, according to documentation, the home directory LDAP 
attributes need only to be set for a particular user if they differ from 
the general setting. Quoting from "The Official Samba 3.5 HOWTO":

«
11.4.4.8 LDAP Special Attributes for sambaSamAccounts
The sambaSamAccount ObjectClass is composed of the attributes shown in 
next tables: Part A, and Part B.
The majority of these parameters are only used when Samba is acting as a 
PDC of a domain (refer to Domain Control, for details
on how to configure Samba as a PDC). The following four attributes are 
only stored with the sambaSamAccount entry if the values are non-default 
values:

• sambaHomePath
• sambaLogonScript
• sambaProfilePath
• sambaHomeDrive

These attributes are only stored with the sambaSamAccount entry if the 
values are non-default values. For example, assume
MORIA has now been configured as a PDC and that logon home = \\%L\%u was 
defined in its smb.conf file. When a user
named ‘becky’ logs on to the domain, the logon home string is expanded 
to \\MORIA\becky. If the smbHome attribute exists in
the entry ‘uid=becky,ou=People,dc=samba,dc=org’, this value is used. 
However, if this attribute does not exist, then the value
of the logon home parameter is used in its place. Samba will only write 
the attribute value to the directory entry if the value is
something other than the default (e.g., \\MOBY\becky).
»


More information about the samba mailing list