Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem updating the LDAP using DirContext

Status
Not open for further replies.

thelordoftherings

Programmer
May 16, 2004
616
IL
Hello,

I am trying to update an attribute in my LDAP using the DirContext Object.
I am able to retreive the requested user and get it's distinguishedName attribute which looks like this:

CN=Roy Cohen,OU=Information Services,OU=Technical Services,OU=JR-Main,OU=OUs,DC=justice,DC=gov,DC=il

The problem is when I transfer this String to the method modifyAttributes along with the Attributes I want to change I receive NameNotFoundException, here it is:

#1.5#000BCDFB6968004600000052000009E40003F6C15B94BD36#1115735255814#System.err#sap.com/tc~wd~dispwda#System.err#RoyC#712####a7591f70c15f11d9c074000bcdfb6968#ID\#2.WID1115734577793##0#0#Error##Plain###javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001C6, problem 2001 (NO_OBJECT), data 0, best match of:
'DC=justice,DC=gov,DC=il'

How can it be that when I search the LDAP I receive this distinguishedName and when I transfer it again to the LDAP for modification I receive NameNotFoundException?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top