Visit Our UNIX and Linux User Community


LDAP delete - seems not working


 
Thread Tools Search this Thread
Top Forums Programming LDAP delete - seems not working
# 1  
Old 06-08-2009
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..

Previous Thread | Next Thread
Test Your Knowledge in Computers #590
Difficulty: Easy
In a linear search algorithm, the input size is the number of elements in the collection (n) divided by 2.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies

2. 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

3. Solaris

Sudo not working on LDAP client machine

Hi, I have configured ldap manually on solaris 10/11 machine with below entries: # ldapclient list |grep sudo NS_LDAP_SERVICE_SEARCH_DESC= sudoers:ou=SUDOers,dc=exm,dc=ple,dc=com # cat /etc/nsswitch.conf |grep -i sudo sudoers: files ldap # But groups available in LDAP server... (8 Replies)
Discussion started by: Sridaran
8 Replies

4. 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

5. Red Hat

RHEL 7: Backup Space and Delete is not working in console

Hi All, During my virtual machine power on i have rc3.d script to accept user inputs like IP address. This script gets executed during first time boot up. It was working fine till my VM is using RHEL6.5. Now we migrated to RHEL 7 environment. While accepting the user inputs in console, I... (4 Replies)
Discussion started by: kalpeer
4 Replies

6. UNIX for Advanced & Expert Users

something like LDAP Administrator 2011.1 "LDAP-SQL" but for the CLI

Hi I am searching a tool like "LDAP Administrator 2011.1"/ "LDAP-SQL" but for the CLI. Wish to use LDAP-SQL in scripts (non Windows GUI environment) http://ldapadministrator.com/resources/english/2011.1/images/sqlquery_large.png Softerra LDAP Administrator 2011.1 - What's New OS is... (2 Replies)
Discussion started by: slashdotweenie
2 Replies

7. UNIX for Advanced & Expert Users

Find and delete not working

Hi, I have a .ksh script which finds all the directories older than 84 days and tries to housekeep. Below is the command used find * -depth -type d -ctime +84 -exec rm -rf {} \; The above command lists all the directories ie child and parent directory in descending order which are more... (0 Replies)
Discussion started by: annamalai77
0 Replies

8. IP Networking

Postfix working with Ldap

Hi everybody, I am working on mail server(postfix+dovecot+amavisd-new) working with ldap directory. I have an error while attempting to send a mail on my own mail address in the domain: Jul 28 12:04:14 HA1UB postfix/smtpd: warning: dict_ldap_lookup: /etc/postfix/ldap-aliases.cf: Search base... (0 Replies)
Discussion started by: beloge2002
0 Replies

9. Linux

Secondary groups not working with NFS (+LDAP)

Im using LDAP for groups and NFS for home dirs. My problem is as follows: I only have a few groups, so it's not the problem everyone else had. When I've mounted a disk over NFS, I need to have my primary group in order to read in the groups I'm a member of. Secondary groups is not working. ... (0 Replies)
Discussion started by: velmont
0 Replies

10. HP-UX

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

Featured Tech Videos