Hello,

Firstly, please excuse me for my English.

I would like to dynamically create Samba shares with LAMP application.

The users being able to have access to shares are listed in a Active Directory server. To create a share I theoretically need only the name of the user. I think that by using Kerberos and ldap it is suitabe. I will not like to be obliged to create linux accounts or storing the password of the user in my MySQL database.

However, I don't know how to solve this problem. In theory I should pass by the following stages:

mkdir /home/john_doe
chown samba /home/john_doe
echo "[john_doe] \
path=/home/john_doe \
browsable=yes \
valid users=\"DOE john\" >> /etc/samba/smb.conf

Where "DOE John" is the name of user defined in AD.

Can you help me a little bit to configure Samba ?

Thank you in advance,

Yves