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

Re: Adding or deleting items?

In a message dated: Thu, 05 Jun 2003 11:13:58 EDT
kend@xanoptix.com said:

>Hiya.  I'm a little confused as to how to add and delete... well, I'm not
>even sure of the correct nomenclature, so let me give an example: groups. 
>I have, say, a group "IT", thusly:
># gIT, US
>dn: cn=gIT, c=US
>objectClass: posixGroup
>objectClass: top
>cn: gIT
>gidNumber: 567
>memberUid: kend
>memberUid: ullmanl
>memberUid: tom
>Is there any way to add or delete members singly?  Or must I take the
>entry, either add or subtract the user, and then re-import it with

You should be able to use ldapadd or ldapdelete to do this, but it's 
far easier with something like 'gq' or ldapbrowser where you can see 
what's going on.  Especially if it's just one or two small changes 
like that.  

ldapmodify is, IMO, more suited for large, batch operations where you 
need to make a large number of changes at once.


Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE

	It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.

	 If you're not having fun, you're not doing it right!