The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
LDAP - is there an API phykell High Level Programming 3 09-06-2008 06:03 AM
help with LDAP n00b SUN Solaris 5 06-24-2008 04:12 AM
LDAP help Katkota UNIX for Dummies Questions & Answers 0 12-06-2007 11:30 PM
Ldap dipanrc Linux 2 12-28-2005 08:09 PM
Ssl Ldap truma1 UNIX for Advanced & Expert Users 0 11-23-2004 08:51 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 3.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-08-2009
almond almond is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 6
LDAP delete - seems not working

Hi all,

I am very new to ldap and am facing the below difficulty.

When I try to add something to ldap, I get this:

server# /opt/iexpress/openldap/bin/ldapmodify -f almondabc.ldif -h 127.0.0.1 -xv -D cn=Manager,dc=almondabc,dc=com -w secret
ldap_initialize( ldap://127.0.0.1 )
add o:
almondabc Software
add dc:
almondabc
add objectclass:
dcObject
top
organization
adding new entry "dc=almondabc,dc=com"
ldap_add: Already exists (68)

server#

Then I try to delete the entry, by the following:

/opt/iexpress/openldap/bin/ldapdelete -r -v -x -D "cn=Manager,dc=almondabc,dc=com" -h 127.0.0.1 -w secret "dc=almondabc,dc=com"

But then also I get the same result on executing the same ldapmodify command

My LDIF file is:

LDIF File:
----------

dn: dc=almondabc,dc=com
changetype: add
o: almondabc Software
dc: almondabc
objectclass: dcObject
objectclass: top
objectclass: organization

dn: cn=Manager,dc=almondabc,dc=com
objectClass: top
objectclass: organizationalRole
cn: Manager

dn: ou=Development,dc=almondabc,dc=com
ou: Development
objectClass: top
objectclass: organizationalUnit

dn: cn=johny+uid=s001,dc=almondabc,dc=com
cn: johny
uid: s001
ou: Development
objectClass: top
objectClass: persona
objectClass: organizationalPersona
objectClass: intertOrgPersona
facsimileTelephoneNumber: +1 222 589 7894
mail: johny@mail.com
sn: johny
userPassword: johny

Any help will be appreciated.
Thanks

Last edited by almond; 06-08-2009 at 09:51 AM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0