LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   How do I modify 1 of my ldap attribute if I have 2 same attribute under 1 entry? (http://www.linuxquestions.org/questions/programming-9/how-do-i-modify-1-of-my-ldap-attribute-if-i-have-2-same-attribute-under-1-entry-858722/)

chinho 01-26-2011 04:26 AM

How do I modify 1 of my ldap attribute if I have 2 same attribute under 1 entry?
 
Hi guys,

Assume, I have the below LDAP entry

Code:

dn: cn=123,dc=plainjoe, dc=org
objectclass: inetOrgPerson
cn: 123
sn: surname
userPassword: secret
userPassword: hangten
userPassword: anotherpassword

Which command should I use programmatically (in ldap.h) to change only ONE of the attributes above? say i only want to change the userPassword from value secret -> notasecret

Do we use??
Code:

ldap_modify_ext_s
and how??

Thanks and Cheers,
Chinho

chinho 01-31-2011 03:37 AM

Any helps guyss??


All times are GMT -5. The time now is 12:48 PM.