Hi i am running OpenLDAP server and i wish to add CN to DC=webselfcare,DC=com. And this i wish to do it from a JNDI Java Program. I am able to read entries from the LDAP server using simple authentication. Now i wish to add and update entries to it, how do i do this?? regards suneel
I don't know if you have figured this out already but I was having the same problem and I found this poast on Google. I figured out what was wrong and felt i should share =D
The problem is occuring because your LDAP server does not know where to put the new entity. Your string String name="uid=defaultuser" is specifying the DN of the new entry. This DN must be suffixed by the full path to where the entry resides, including and DC entries used in your LDAP server's suffix.
For example, if your suffix is "dc=something,dc=com", and you have created one organization unit with the DN of "ou=users,dc=something,dc=com", you must specify the full DN of your new entry as "uid=defaultuser,ou=users,dc=something,dc=com".
I ran across this problem because I had mistyped the suffix in my DN string =$. I looked up what the error meant from an LDAP perspective and it is related to when you are adding an entry to a slave LDAP server and have not specified an LDAP server to refer to for the rest of the information regarding the suffix you specified.
I hope that this helps you. Good Luck!
Repent, Refactor, Redeem.
Joined: Jan 05, 2005
Oh, that post was December 2003. Well, I hope this helps someone then =D
Joined: Dec 10, 2003
Hey thanks for ur message although its a few years later! but i am no longer working...am doing my masters! thanks again [ March 23, 2005: Message edited by: suneel suresh ]