• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Open Ldap

 
Shashank Hiwarkar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
norman richards
Author
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic