LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2011, 04:26 AM   #1
chinho
Member
 
Registered: Dec 2010
Distribution: fedora, openSUSE
Posts: 49

Rep: Reputation: 1
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

Last edited by chinho; 01-26-2011 at 04:37 AM.
 
Old 01-31-2011, 03:37 AM   #2
chinho
Member
 
Registered: Dec 2010
Distribution: fedora, openSUSE
Posts: 49

Original Poster
Rep: Reputation: 1
Any helps guyss??
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
update problem "Attribute error object has no attribute 'rsplit' ruse Linux - Newbie 0 08-28-2009 01:46 AM
ldap_add: Undefined attribute type (17) additional info: ojectclass: attribute type vinaytp Linux - Newbie 2 05-28-2009 04:57 AM
RHEL5 - Modify /usr/bin/script to include flushtime attribute malar Linux - Enterprise 2 04-28-2009 11:12 AM
LDAP attribute aravind1024004 Linux - Server 1 04-12-2008 01:29 PM
How to modify a file's attribute in shell? Xiangbuilder Linux - Newbie 1 09-06-2003 06:18 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration