Hello,
I have 100 users which I have to add into my ldap database, how can I do that? With a ldif file? Like that?
dn: cn=John Doe, ou=Rochester, o=IBM, c=US objectclass: person objectclass: inetOrgPerson objectclass: top objectclass: organizationalPerson objectclass: ePerson cn: John Doe sn: Doe uid: jdoe userpassword: secretpass
I think its realy horrible if I want to add 100 users in this way?
thanks
Where does all the user data come from? Just create a bash script or what else....
On 06.12.2011 20:59, Andreas Rudat wrote:
Hello,
I have 100 users which I have to add into my ldap database, how can I do that? With a ldif file? Like that?
dn: cn=John Doe, ou=Rochester, o=IBM, c=US objectclass: person objectclass: inetOrgPerson objectclass: top objectclass: organizationalPerson objectclass: ePerson cn: John Doe sn: Doe uid: jdoe userpassword: secretpass
I think its realy horrible if I want to add 100 users in this way?
thanks
On 06/12/11 20:59 +0100, Andreas Rudat wrote:
Hello,
I have 100 users which I have to add into my ldap database, how can I do that? With a ldif file? Like that?
dn: cn=John Doe, ou=Rochester, o=IBM, c=US objectclass: person objectclass: inetOrgPerson objectclass: top objectclass: organizationalPerson objectclass: ePerson cn: John Doe sn: Doe uid: jdoe userpassword: secretpass
I think its realy horrible if I want to add 100 users in this way?
There are a few ldap enabled 'useradd' or 'adduser' scripts floating around as well as conversion scripts that you could retrofit for your needs, or just take some time to learn how to do the above with a shell script that accept a csv list of users. It shouldn't really be all more time consuming that adding those users with traditional methods.
Think of an ldap server as an easily scriptable database interface.
On Tue, Dec 6, 2011 at 3:30 PM, Raffael Sahli public@raffaelsahli.com wrote:
Where does all the user data come from? Just create a bash script or what else....
I would agree. Main question would be whether you would do a ldapadd per user or run a big one. Just force them all change their password on first login and you should be set.
On 06.12.2011 20:59, Andreas Rudat wrote:
Hello,
I have 100 users which I have to add into my ldap database, how can I do that? With a ldif file? Like that?
dn: cn=John Doe, ou=Rochester, o=IBM, c=US objectclass: person objectclass: inetOrgPerson objectclass: top objectclass: organizationalPerson objectclass: ePerson cn: John Doe sn: Doe uid: jdoe userpassword: secretpass
I think its realy horrible if I want to add 100 users in this way?
thanks
-- Raffael Sahli public@raffaelsahli.com Switzerland
Hi all,
thanks for you replay, I think I found a solution, I build some php script around the famous smbldap tools and it look likes that it works for me .
The data comes from a csv file, this part isnt finished but I think I will run.
Andreas
Am 06.12.2011 21:54, schrieb Mauricio Tavares:
On Tue, Dec 6, 2011 at 3:30 PM, Raffael Sahli public@raffaelsahli.com wrote:
Where does all the user data come from? Just create a bash script or what else....
I would agree. Main question would be whether you would do a
ldapadd per user or run a big one. Just force them all change their password on first login and you should be set.
On 06.12.2011 20:59, Andreas Rudat wrote:
Hello,
I have 100 users which I have to add into my ldap database, how can I do that? With a ldif file? Like that?
dn: cn=John Doe, ou=Rochester, o=IBM, c=US objectclass: person objectclass: inetOrgPerson objectclass: top objectclass: organizationalPerson objectclass: ePerson cn: John Doe sn: Doe uid: jdoe userpassword: secretpass
I think its realy horrible if I want to add 100 users in this way?
thanks
-- Raffael Sahli public@raffaelsahli.com Switzerland
openldap-technical@openldap.org