1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 07:09:43 +02:00

Process mulitple groups in LDAP/AD group filter

This commit is contained in:
sauls8t 2018-08-30 11:37:05 +01:00
parent e490407260
commit 7df0fbcb2b
4 changed files with 121 additions and 108 deletions

View file

@ -11,9 +11,6 @@
package auth
// LDAPConfig that specifies LDAP server connection details and query filters.
//
//
// Example for Active Directory -- filter users that belong to SomeGroupName:
// (&(objectCategory=Person)(sAMAccountName=*)(memberOf=cn=SomeGroupName,ou=users,dc=example,dc=com))
//
@ -26,6 +23,11 @@ package auth
// Example of group filter that returns users belonging to either Developers or Administrators group:
// (&(objectCategory=Group)(|(cn=developers)(cn=administrators)))
//
// Sources of filter names:
// https://docs.oracle.com/cd/E26217_01/E26214/html/ldap-filters-attrs-users.html
// https://social.technet.microsoft.com/wiki/contents/articles/5392.active-directory-ldap-syntax-filters.aspx
// LDAPConfig that specifies LDAP server connection details and query filters.
type LDAPConfig struct {
ServerHost string `json:"serverHost"`
ServerPort int `json:"serverPort"`