thelordoftherings
Programmer
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?
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?