Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete one attribute in LDAP with LDIF?

Tags:

How do I delete one attribute in LDAP with LDIF? I an trying to delete uniqueMember: cn=jsmith,ou=users,dc=s2rsolutions,dc=com can someone please show me the LDIF to do it?

dn: cn=USER,ou=groups,dc=s2rsolutions,dc=com objectClass: groupOfUniqueNames cn: USER uniqueMember: cn=jsmith,ou=users,dc=s2rsolutions,dc=com uniqueMember: cn=guest,ou=users,dc=s2rsolutions,dc=com uniqueMember: cn=admin,ou=users,dc=s2rsolutions,dc=com uniqueMember: cn=ford,ou=users,dc=s2rsolutions,dc=com 
like image 942
SJS Avatar asked Apr 17 '11 13:04

SJS


People also ask

How do I delete an attribute in LDAP?

You can use ldapmodify and ldapdelete to remove entries from the directory. The ldapmodify command removes entries and attributes by using the LDIF update statements changetype:delete and changetype:modify with the delete attribute, respectively. The ldapdelete tool removes only entries.

How do I change LDAP attributes?

Steps. Use the ldapsearch tool to locate a specific entry. Use the ldapmodify command to change attributes from the command line. Specify the modification using the changetype:modify directive, and then specify which attributes are to be changes using the add and replace directive.

How do I delete a LDIF file?

2.2 LDIF Format for Deleting Entries. When deleting an entry, the LDIF file entry only needs the DN of the entry to be deleted and the changetype: delete directive. Use an empty line at the end of the entry as a separator.

How do you remove someone from a group in LDAP?

Removing Users To delete a user entry, perform the following steps: Access the Administration Server and choose the Users and Groups tab. Display the user entry as described in Finding User Information. Click Remove User (key file and digest file) or Delete User (LDAP).


1 Answers

dn: cn=USER,ou=groups,dc=s2rsolutions,dc=com changetype: modify delete: uniqueMember uniqueMember: cn=jsmith,ou=users,dc=s2rsolutions,dc=com 
like image 74
kayyagari Avatar answered Oct 10 '22 01:10

kayyagari