Java LDAP - Determine if user in a given group?

后端 未结 10 823
时光取名叫无心
时光取名叫无心 2020-12-12 20:18

We logon users to Active Directory via LDAP using the Java LDAP API. We want to enhance our logon functionality to further check if the user is in a given AD group. Does a

10条回答
  •  忘掉有多难
    2020-12-12 21:07

    Unfortunately the answer varies with installations of AD as well as other types of LDAP server.

    We had to solve the same problem. In the end we allowed the system administrator to provide us with an LDAP query-pattern where we substitute the user name (and group name if that needs to be variable too) into the pattern.

提交回复
热议问题