[Samba] ADUC tool cannot creates users home directory

2013-03-27 Thread ?icro MEGAS
Hello everybody,

if I use Microsoft's Active Directory  Users tool to add a home drive mapping 
to a users profile, I encounter the problem that ADUC tool cannot create 
automatically the home directory for the desired user. ADUC tool fails with the 
message, that the share cannot be accessed.

My smb.conf contains:

[global]
   template homedir = /data1/homes/%ACCOUNTNAME

[homes]
 browseable = no
   read only = no

When user johndoe browse the share \\s4srv he will see a share with the name 
johndoe. If he doubleclicks this share, he see's the content of his home 
directory. Until here everything work's fine and is reasonable. As man 
smb.conf explains the [homes] share is a special share and the behavior is 
explained in details.

My problem is, that I am logged-in with MYDOMNAME\Administrator at a Windows 
client, and running the ADUC tool. In users profile I enter for home drive 
mapping following information:

U: --map---to---\\s4srv\%username%

The syntax is correct, but ADUC cannot access this share, because it would 
resolve to \\s4srv\administrator at this step. I think that's why ADUC cannot 
create this share, because of the special mapping of the [home] share. The 
[home] share is cloned and the username of the accessing user is used. (see 
'man smb.con' under section [homes] special share).

How can I achieve to have ADUC tool create also the home dir when I create a 
new user? Any help appreciated.

Thanks in advance,
Lucas.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] ADUC tool cannot creates users home directory

2013-03-27 Thread Nishant Sharma
On Mar 27, 2013 8:08 PM, ?icro MEGAS microme...@mail333.com wrote:



 My smb.conf contains:

 [global]
template homedir = /data1/homes/%ACCOUNTNAME

 [homes]
  browseable = no
read only = no

Remove template homedir from global and add following to your homes section:

path = /data1/homes

And while defining home directory for users in dsa.msc give following path:

\\SRV4\homes\%USERAME%

And it should work fine.

Regards,
Nishant
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba