[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Using ldapdelete to delete a user from a group




On Wednesday, April 9, 2003, at 02:55 PM, Karl Kopper wrote:

The man page doesn't have an example of modifying a particular entry based
upon a match (ie, just one member of the group based on their memberUid).
How do you do that?


My best, wild guess looks like this:

----
dn: cn=sales,ou=Group,dc=unfiw,dc=com
changetype: modify
replace: memberUID: johnd
memberUid:
----



dn: cn=sales,ou=Group,dc=unfiw,dc=com changetype: modify replace: memberUID memberUID: personA memberUID: personB memberUID: personC

or, for example

dn: cn=sales,ou=Group,dc=unfiw,dc=com
changetype: modify
delete: memberUID
memberUID: johnd

A complete specification for LDIF can be found in RFC 2849.

Matthew Backes
lucca@csun.edu