adldap类,需要在两组中搜索用户

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.

查看全部
duanjianshen4871
duanjianshen4871
2010/04/02 15:21
  • ldap
  • php
  • authentication
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复