1) how to do with ldiff file to put a user member of a group ?
You have the gid specified so that will get your primary group, adding secondary groups is not as easy though. The secondary groups you are a member of is stored in the group, via the multi-value property memberUID. You'll have to ldapmodify the groups you want to be a member of with the appropriate member's uid.
2) Is there a solution to avoid this problem so that i also can generate mass user password ?
You could pipe your script, depending on the language, into the smbpasswd command. I believe Jerry has posted something like this for a shell language:
echo $pass $pass > smbpasswd -a $username
smbpasswd also used to have an optional last parameter for user's password. which was never documented and recently has been removed :-(
Also, you may want to leave off your samba parameters in the ldif, they will get added by the smbpasswd command.
-- -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Systems Architect Fax: 701-281-1322 URL: www.ae-solutions.com mailto: [EMAIL PROTECTED]
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba