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

How to add Users to a posixGroup ?



Hi,

after understanding how it works with the posixGroup and what i have to add to 
make a user a member, i added one user manually with GQ.

Now I am trying to add more members to an existing group but LDAP don't let me 
;-).

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);

--Holger