| By Deepak Vohra, Ajay Vohra | Article Rating: |
|
| July 15, 2007 04:00 PM EDT | Reads: |
25,791 |
A new directory entry gets added. A directory entry can also be modified. For example, modify the title in the previously added entry. The directory modifications are specified in an LDIF file as shown in Listing 3.
Listing 3. modifyEntry.ldif
dn: cn=Deepak Vohra,ou=jdeveloper,dc=example,dc=com
changetype: modify
replace: title
title: Oracle DBA
Run the ldapmodify command as shown below.
ldapmodify -D "cn=Manager,dc=example,dc=com" -w openldap -a -f modifyEntry.ldif
The directory entry gets modified.
Next, delete a directory entry. As an example, delete the entry that was added with ldapmodify. Specify the DN of the entry to delete an LDIF file as shown in Listing 4. The delete operation is specified with changetype:delete.
Listing 4 deleteEntry.ldif
dn: cn=Deepak Vohra,ou=jdeveloper,dc=example,dc=com
changetype: delete
Run the ldapmodify command as shown below:
ldapmodify -D "cn=Manager,dc=example,dc=com" -w openldap -f deleteEntry.ldif
The directory entry gets deleted.
Deleting a Directory
The ldapdelete tool is used
to delete directory entries. The DNs for the entries to delete can be
specified on the command line or in an LDIF file. As an example delete
the directory entry for DN "ou=jdevloper,dc=example,dc=com." To delete
recursively specify the -r option. The ldapdelete command to delete a
directory entry by authenticating to the directory is shown below:
>ldapdelete -D "cn=Manager,dc=example,dc=com" -r -v -w openldap "ou=jdeveloper,dc=example,dc=com"
Non-leaf entries don't get deleted with the ldapdelete tool.
Conclusion
The OpenLDAP LDAP server provides a
directory service to store and modify information about network
resources in a directory that's stored in the Berkeley DB.
Published July 15, 2007 Reads 25,791
Copyright © 2007 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Deepak Vohra
Deepak Vohra is a Sun Certified Java 1.4 Programmer and a Web developer.
More Stories By Ajay Vohra
Ajay Vohra is a senior solutions architect with DataSynapse Inc.
![]() |
karan 02/20/08 12:18:02 AM EST | |||
hi acn i know hoe to create directory structure for and our suffix is dc=mail,dc=xyz,dc=de. Do reply me at karan.sngl@gmail.com |
||||
![]() |
Tom Britton 07/12/07 04:57:45 PM EDT | |||
LDAP is an overly complex, arcane system for storing and retrieving informtion, some of which can be used for authentication. This article may be useful for extending the authors' list of publications but does little to help explain or demystify LDAP, OpenLdap, or anything else. It uses jargon with abandon, and where some of the jargon is defined, it provides no explanation, providing no understanding. As a cookbook, its recipes are too terse to be useful. Of course in a magazine article, space is at a premium, but the authors have used their allocation very poorly. A waste of time and print space. |
||||
- 4th International Cloud Computing Conference & Expo Starts Today
- Publishing Synergy: Blog, Twitter and Ulitzer
- Performance Tuning Essentials for Java
- Cloud Expo New York Call for Papers Deadline December 15
- Google Wave
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- Cloud Computing Can Revitalize Your Career as Software Developer
- SOA World Magazine "Readers' Choice Awards" Voting Is Now Open
- Oracle+MySQL Opponents Take to the Barricades
- Virtualization Expo Call for Papers Deadline December 15
- Oracle Faces Growing Price for MySQL
- SpringSource Moving to Spring 3.0
- 4th International Cloud Computing Conference & Expo Starts Today
- Deputy CIO of the CIA to Keynote 1st Annual GovIT Expo
- Publishing Synergy: Blog, Twitter and Ulitzer
- Performance Tuning Essentials for Java
- Cloud Expo New York Call for Papers Deadline December 15
- Cloud Computing Expo: Exclusive Q&A with Yahoo! SVP Cloud Computing
- Google Wave
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- Cloud Computing Can Revitalize Your Career as Software Developer
- Oracle-Sun: IBM Reportedly Behind Delay
- Citrix Aims To Cripple VMware’s Cloud Designs
- Oracle Trashes HP Relationship for Sun
- After Ubuntu, Windows Looks Increasingly Bad, Increasingly Archaic, Increasingly Unfriendly
- SCO CEO Posts Open Letter to the Open Source Community
- Simula Labs Launches Hosted Delivery Platform To Enable Enterprise Open Source Adoption
- Where Are RIA Technologies Headed in 2008?
- Source Claims SCO Will Sue Google
- How Open Is "Open"? – Industry Luminaries Join the Debate
- Latest SCO News is Plain Weird
- IBM Tells SCO Court It Can't Find AIX-on-Power Code
- SCO Claims Linux Lifted ELF
- Flashback: Investing in 'Professional Open Source' - Exclusive 2004 Interview with David Skok, Matrix Partners
- HP Starts Pushing Desktop Linux
- Linux Business Week Exclusive: Linux Kernel To Be Re-Written To Counter Microsoft FUD






























