[Samba] mass user creation
patrick.dubau at alsace.iufm.fr
Mon Jan 31 15:26:35 GMT 2005
i plan to mass creat user in ldap to use with samba
I tried with ldiff like the structure below, the user is created but no
home directory is created, user in not member on any groups.
1) how to do with ldiff file to put a user member of a group ?
So i plan to use smbldap-useradd => home drectorie is created with the
appropriated rights, user is member of "Domain Users" : Great !
My goal is to creat a script that will, for each user in a text file,
call smbldap-useradd. I think that this won't be too difficult (any hint
will be apreciated)
My problem is that i also want to generate a password with
smbldap-passwd. But this script doesn't accept any parameters. It
prompts for a password ...
2) Is there a solution to avoid this problem so that i also can generate
mass user password ?
Here's my ldiff :
cn: Pat Dub
gecos: Pat DUB
description: Pat DUB
displayName: Pat DUB
More information about the samba