Ldap bind: checking group membership
| From: | Jason End | Date: | Wed, 25 Jun 2003 09:54:23 +0000 |
| Subject: | Ldap bind: checking group membership | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152732@lists.php.net to get a copy of this message | ||
I need my ldap bind to check whether a user is member
of a group, but the user isn't exclusively from that
group.
So for example, I have the user "jbrown" and the ldap
connection string:
$r=ldap_bind($ds, "uid=$uid,
ou=people,dc=mycompany,dc=mydomain,dc=dom", $passw);
That works fine. But I need to check whether jbrown is
part of the group "admins" (Cn=admins).
In apache the authldap connects has the feature to
check groups:
AuthLDAPURL
ldap://myserver/ou=people,dc=mycompany,dc=mydomain,dc=dom
require group
cn=admins,ou=people,dc=mycompany,dc=mydomain,dc=dom
How can I do the same with a php script?
thanks,
Jay
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com