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

Julien Celle julien.celle at sivalex.com
Wed Jul 27 00:49:01 MDT 2011


Le 26/07/2011 20:40, Miguel Medalha a écrit :
>
>
> 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).
> »

I agree and this is my case. None of these parameters is present in my 
user's LDAP entry. Yet, my user has to mount his homedir himself.
I finally found the solution : it appears that the logon home parameter
should be set to the following value :

logon home = \\%L\%U

instead of the one I was using :

logon home = \\%L\homes\%U

I don't really understand why. Anybody could explain ?

Thanks for your help.

JC



More information about the samba mailing list