LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2009, 03:38 AM   #1
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Rep: Reputation: 15
How to delete LDAP entries


Hello Linux Guru's and Able Ones,

Can anybody help me on my problem on our LDAP Server?

1st we entry mail users on phonebook address with the LDAP server
with this command:


[root@ldaperver root]# vi /usr/local/etc/openldap/entry.ldif


Then this screen will appear:
(sample entry on the name Juan A. Dela Cruz)

dn: cn=Juan A. Dela Cruz,o=abook
mail: jadelacruz@erbil.com.ph
objectclass: top
objectclass: person
objectclass: inetOrgPerson
givenname: Juan
sn: Dela Cruz
cn: Juan A. Dela Cuz
~
~

When we finished on the entry of this with the command:

:wq!

The screen will be back again on the console / terminal and we input
this command:

[root@ldapserver root]# ldapadd -H ldap://ldapserver -x -D "cn=root,o=abook" -f entry.ldif -W

After this long command it will ask for the LDAP password


Enter LDAP Password:

Then this line will appear


adding new entry "cn=Juan A. Dela Cruz,o=abook"

After this we can browse the auto-generate name on netscape and mozilla
mail.

THE QUESTION IS: Then how can I delete this entry
SAMPLE: If I want to delete Juan A. Dela Cruz entry


Please help me

thanks

Last edited by struggled_newbie; 11-03-2009 at 03:42 AM. Reason: type error 3
 
Old 11-03-2009, 03:56 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I can highly recommend the man pages; they have good examples
in them. "man ldap" to start with, then follow the programs
respectively.

Code:
ldapdelete -H ldap://ldapserver -x -D "cn=root,o=abook"   "cn=Juan A. Dela Cruz,o=abook"


Cheers,
Tink
 
  


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
How can I delete one of my Blog entries? catkin LQ Suggestions & Feedback 12 05-18-2011 03:43 AM
adding entries in ldap aravind1024004 Linux - Server 10 04-17-2008 10:38 AM
Can't create LDAP entries with phpldapadmin dlublink Linux - Networking 6 12-12-2007 04:41 AM
LDAP How to add entries durgap Linux - Networking 4 11-10-2006 05:55 AM
Delete all entries in the calendar in Evolution TheSpork Linux - Software 0 04-16-2004 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration