LDAP:如何将人员添加到现有组?

通过使用命令行(Linux)或LDIF,我可以find许多创build新组和定义其成员的例子,但没有例子:

如何将用户添加到现有组?

假设这个人也已经存在。

例如,将用户uid=fred,ou=people,dc=example,dc=com到group cn=vipb,ou=groups,dc=example,dc=com

您将一个memberUid属性添加到组中。 例如:

 $ ldapmodify -D <admin DN> -h <ldaphost> password: [enter password] dn: cn=vipb,ou=groups,dc=example,dc=com changetype: modify add: memberUid memberUid: fred ^D 

为了logging,在RFC 2307中描述了LDAP模式。