cancel
Showing results for 
Search instead for 
Did you mean: 

Need example for LDAP Update

Former Member
0 Kudos

Hello,

I know how to preform an LDAP search using the package javax.naming.directory.DirContext.

Can someone show me how do I do an update to a certain record at the LDAP ?

Can this update be with the search already (such as in SQL) or should I search the relevant item first and than update it? In any case, a code example will be very helpful here...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Anyone...?

Former Member
Former Member
0 Kudos

Dear Valery,

I am familiar with this link.

It contains search examples but I couldn't find there an example of how to update the LDAP

Former Member
0 Kudos

10X Valery, I will check it and let you know...

Former Member
0 Kudos

Hey Valery,

I've read the material but I don't understand how to create the Name parameter which is required for the update. Can you please show me a code example?

Former Member
0 Kudos

Valery,

I think that my question is how do I "tell" the LDAP which object to update, I can transfer String name or Name name but what this object should include...?

Former Member
0 Kudos

There is a version of method that uses DN (Distinguish Name) as sting, DN looks like:

/O=YOUR COMPANY/OU=YOUR UNIT/CN=ROY_COHEN

VS