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

Re: How to add Users to a posixGroup ?

On Thu, Apr 25, 2002 at 03:34:51PM +0200, Holger Banko wrote:
> Hi,
> Here is the PHP Code, tried to leave posixGroup or add gidNumber, ... Whats 
> wrong ?
> $data["objectClass"]="posixGroup";
> $data["memberuid"]=$uid;
> $data["cn"]="sales";
> $r=ldap_add($ds, "cn=sales,ou=Groups,dc=pgam,dc=com", $data);
I am not an PHP expert, but isn't ldap_add only suitable to add comletely new 
entries to the server?
I guess You have to use ldap_mod_add if the group to which You want add
members alreay exists. 

Ralf Haferkamp

SuSE Linux AG                                    - The Linux Experts -
Deutschherrnstrasse 15-19                         http://www.suse.com
D-90429 Nuernberg, Germany                        Tel: +49-911-74053-0