Adding users to samba/ldap setup
I've inherited a system which is using samba and ldap to authenticate users (both on the local machine, and Windows machines on the LAN)
Any advice on the best way to add users? The best I could think of was do get an existing user's ldap entry (with ldapsearch), modify it (ie change the username, uid etc) by hand, then insert it with ldapmodify.
Trouble is, there are various fields that I don't know how to create manually, eg:
Someone recommended mkntpwd. Would I just paste the output of that into the sambaPasswordHistory field? Is there a cleaner solution for generating this sort of thing?