This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Security and the fly likes Open Ldap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Open Ldap" Watch "Open Ldap" New topic

Open Ldap

Shashank Hiwarkar
Ranch Hand

Joined: Feb 17, 2002
Posts: 32
Did anyonw know about OpenLdap.
I am not getting how the values / attributes are added in OpenLdap.
My Server is working and all commands are also working, but for "ldapadd" it is giving problems
ldapadd: update failed: cn=Jennifer J Jensen,dc=example,dc=com
ldap_add: No such object (32)
Can anyone help me in this context:

Shashank Hiwarkar<br />SCJP, SCWCD
norman richards
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
What is the naming context for your LDAP server? Is it really dc=example,dc=com? If so, did you load that context before loading the person entry? Did that add succeed?
Laxmi Narayan

Joined: Sep 22, 2003
Posts: 7
Check your ldapManager ip is properly given and your are getting ldapManager object from naming context.
//ldap server
InitialContext ic = new InitialContext();
String ip = (String)ic.lookup(JNDINames.LDAPSERVER_IP);
ldapManager = new LDAPManager(ip);
I agree. Here's the link:
subject: Open Ldap
jQuery in Action, 3rd edition