adldap class, need to search for user in two groups

Posted by Brad on Stack Overflow See other posts from Stack Overflow or by Brad
Published on 2010-04-02T15:21:02Z Indexed on 2010/04/02 15:23 UTC
Read the original article Hit count: 321

http://adldap.sourceforge.net/wiki/doku.php?id=api_user_functions#user_ingroup_username_group_recursive_null

I am using the adLDAP class above to authenticate users against our ldap server.

I was wondering how I could check multiple groups to see if the user belongs to either, if they belong to either.

I don't know if

user_ingroup($username,$group,$recursive=NULL);

can handle search two different groups for the user, need help coding it to search for the user in two different groups, and as soon as it finds it in one of those, break the operation and set a variable to true.

Any help is appreciated.

© Stack Overflow or respective owner

Related posts about php

Related posts about ldap