Kolab2 and create new users

Andreas Gungl Andreas.Gungl at osp-dd.de
Thu Feb 10 12:03:03 CET 2005


Am Thursday, 10. February 2005 11:20 schrieb Axel Schmidat:
> I´ve installed the last Kolab2-Server successfully at the first time.
> Now I must create over 150 new users. It´s a hard and long work, if I
> generate the new accounts over the kolab-web-admin. ;-)
> Are there some migrations-tools or scripts, that I can do this
> automatically?

man ldapsearch
man ldapadd

Use ldapsearch to extract the data for one user in LDIF format to get an 
idea how the data is composed.
Prepare a new LDIF file containing the other accounts to be added and feed 
this via ldapadd into your server.

Regards,
Andreas

PS.
ldapsearch -u -H ldap://<host>:389 -b dc=<xxx>,dc=<yy> -LLL -x \
uid=<existing-uid>

ldapadd -H ldap://<host>:389 -x -D cn=manager,cn=internal,dc=<xxx>,dc=<yy> \
-w <passwd>  -f <file>

dn: cn=<cn>,dc=<dc>,dc=<dc>
mail: <primary mail>
uid: <uid>
objectClass: top
objectClass: inetOrgPerson
objectClass: kolabInetOrgPerson
sn: <sn>
cn: <cn>
givenName: <givenName>
userPassword: <passwd>
kolabHomeServer: <hostname>
o: <o>
street: <street>
postalCode: <postalCode>
l: <l>
c: <c>
telephoneNumber: <999-9999>
facsimileTelephoneNumber: <999-9999>
kolabInvitationPolicy: ACT_MANUAL
cyrus-userquota: <MB>
alias: <another email addresss>




More information about the users mailing list