LDAP delete - question


 
Thread Tools Search this Thread
Operating Systems HP-UX LDAP delete - question
# 1  
Old 06-09-2009
LDAP delete - question

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

What should I do to remove the ldap entries??

Any help will be appreciated.
Thanks
Almond
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

LDAP Client not connecting to LDAP server

I have very limited knowledge on LDAP configuration and have been trying fix one issue, but unsuccessful. The server, I am working on, is Solaris-10 zone. sudoers is configured on LDAP (its not on local server). I have access to login directly on server with root, but somehow sudo is not working... (9 Replies)
Discussion started by: solaris_1977
9 Replies

2. How to Post in the The UNIX and Linux Forums

Help me, write a bash script to delete parent entry with all their child entry in LDAP UNIX server

Hi All, Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries. example: Parent is : ---------- dn: email=yogesh.kumar@wipro.com, o=wipro, o=in child is: ---------- dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies

3. Shell Programming and Scripting

rsync question (regarding --delete)

Hi there Does anybody know of a way that i can, instead of issuing a --delete when syncing one directory to another, I can instead somehow receive a list of what would be deleted, but not actually delete it ? basically, people are occasionally putting files into one of synced folders, but... (2 Replies)
Discussion started by: rethink
2 Replies

4. Programming

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: ... (0 Replies)
Discussion started by: almond
0 Replies

5. Cybersecurity

LDAP authentication question

Hello, I have a Linux box with RHEL4 running on it. The box is meant to be on the DMZ. There is a directory on the box that will be remotely from time to time and I want a form of authentication on it. Presently, I have configured Basic authentication with apache but the security is not tight. I... (1 Reply)
Discussion started by: bptronics
1 Replies

6. Linux

LDAP authentication question

Hello, I have a Linux box with RHEL4 running on it. The box is meant to be on the DMZ. There is a directory on the box that will be remotely from time to time and I want a form of authentication on it. Presently, I have configured Basic authentication with apache but the security is not tight. I... (1 Reply)
Discussion started by: bptronics
1 Replies

7. UNIX and Linux Applications

LDAP authentication question

Hello, I have a Linux box with RHEL4 running on it. The box is meant to be on the DMZ. There is a directory on the box that will be remotely from time to time and I want a form of authentication on it. Presently, I have configured Basic authentication with apache but the security is not tight. I... (1 Reply)
Discussion started by: bptronics
1 Replies

8. UNIX for Dummies Questions & Answers

LDAP question

Hi; I'm working on using LDAP to authenticate users when login to Solaris 10 box. our LDAP has about 2000 users, I do not want to allow every one of these 2000 users to login in, i want one group only from LDAP groups (has about 100 users) to be able to login to that Solaris box. Any idea... (0 Replies)
Discussion started by: Katkota
0 Replies

9. UNIX for Dummies Questions & Answers

LDAP in Solaris question

Folks; I've read a lot of material on using LDAP for authentication in Solaris & non of them was clear or have any examples. Could any one give me a hand on how to setup/configure LDAP to authenticate users when they try to login to Solaris 10 server i have? Help will be greatly appreciated (0 Replies)
Discussion started by: Katkota
0 Replies

10. UNIX for Dummies Questions & Answers

LDAP Question

Folks; I'm trying to write a shell script on Sun Solaris to connect to LDAP browser so i can extract data from LDAP like the "cn for users, etc...". Any help :D (1 Reply)
Discussion started by: moe2266
1 Replies
Login or Register to Ask a Question