Hi this is the official blog of www.yenodawebsite.com which is going to be live very shortly. We will be posting loads of articles on this blog. Do visit our blog and our website frequently.
In this post I am not going to talk about setting up your LDAP using OpenLDAP. There are lots of websites explaining that. However when I tried to upload users in bulk into the directory I was not able to do the same. The reason there was not even a single article which could give me some information on the same. So here is how to do it. Environment: Ubuntu 10.04 Server OS, OpenLDAP with phpldapadmin. I had the user list with the first name and the last name and the email address. I converted this spreadsheet into a .CSV file. # sudo su - (only for convenience) # cat user-file.csv Krishnan, Sethuraman, krishnan@mydomain.com Anidha, Krishnan, anidha@mydomain.com Tanya, Krishnan, tanya@mydomain.com My requirement was to populate the following attributes in the LDAP. dn: uid=krishnan,ou=people,o=mycompany changetype: add objectClass: inetOrgPerson objectclass: top cn: Krishnan Sethuraman sn: Sethuraman uid: krishnan mail: krishnan@mydomain.com userPassword:...
I first heard the word blog in 2007. It did not make any sense to me then. the curiosity drove me to Google.com and I learnt what a blog is followed by the temporary adrenaline rush to post lots of articles. Stuff slowed down and my blog almost went dead. The recent bucketlist bootcamp that I attended rekindled my desire to write for my blog. Hence I have made up my mind to stick to the guns this time. Let's wait and see. :)
Comments
Post a Comment