LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-22-2010, 10:16 PM   #1
dongocchung
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
Unhappy Help on using the ldapmodify command


Hello!

I'm learning about LDAP system.

My domain is chungdn uid =, ou = HR, dc = lab, dc = com
First I created some user account information for chungdn
now I want to add other information such as email, phone for that user

I tried using the ldapmodify command but I do not understand it.
please help me.

Thank you very much.

chungdn
 
Old 10-22-2010, 10:20 PM   #2
dongocchung
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Unhappy Help on using the ldapmodify command

Hello!

I'm learning about LDAP system.

My domain is chungdn uid =, ou = HR, dc = lab, dc = com
First I created some user account information for chungdn
now I want to add other information such as email, phone for that user

I tried using the ldapmodify command but I do not understand it.
please help me.

Thank you very much.

chungdn
 
Old 10-23-2010, 03:04 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Hi,

You have to create a ldif file with the following characteristics:
In its 1st line the dn of the user you want to add attributes
The 2nd line should have "changetype: modify"
Then "add: attribute-name"
Then "attribute-name: value"

For example in your case, you can use the following in a ldif file:
Code:
dn: uid=some-user, ou=HR, dc=lab, dc=com
changetype: modify
add: email
email: some-user@lab.com
add: phone
phone: 1111
If you want to do the same for another user you can create a new ldif in the same way, or you can leave a blank line in the above example and add the new user dn with the additions you want add and so on.

Regards
 
Old 10-23-2010, 06:20 AM   #4
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Without more information (which ldap are you using, what exactly does and does not work, what have you tried) I can only point you to a site that shows some examples on how to use ldapmodify: 5.4. The ldapsearch, ldapdelete and ldapmodify utilities

Hope this helps.
 
Old 10-23-2010, 06:39 AM   #5
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Here is some more information

http://linux.die.net/man/1/ldapmodify

There are some GUI tools available which make it easier to maintain LDAP databases. My favorite is LDAP Administrator. It is available at http://ldapadmin.sourceforge.net/index.html

Take a look at the templates. There is a useful one for maintaining an address book.

http://ldapadmin.sourceforge.net/download/index.html
 
Old 10-25-2010, 05:15 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
The OP's two duplicate threads have been merged, since they both were getting some replies to them.

In the future, please post your question only once, in the most appropriate location. This makes it easier for members to help you.

Thanks!
 
Old 10-25-2010, 11:23 PM   #7
dongocchung
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Original Poster
Rep: Reputation: 0
thanks for all.

I'm trying again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ldapsearch | ldapmodify eantoranz Linux - Software 1 01-28-2013 09:33 PM
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 11:21 AM
ldapmodify/add problem Dig Linux - Server 2 11-25-2009 08:27 PM
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 02:14 AM
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:50 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