LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 02: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 02:42 AM. Reason: type error 3
 
Old 11-03-2009, 02:56 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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



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 02:43 AM
adding entries in ldap aravind1024004 Linux - Server 10 04-17-2008 09:38 AM
Can't create LDAP entries with phpldapadmin dlublink Linux - Networking 6 12-12-2007 03:41 AM
LDAP How to add entries durgap Linux - Networking 4 11-10-2006 04:55 AM
Delete all entries in the calendar in Evolution TheSpork Linux - Software 0 04-16-2004 08:51 AM

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

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

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