need to configure multiple LDAP GROUP SEARCH

Posted on

Hi everyone,

Several groups need access to our AWX.
I tried to define several groups by LDAP_GROUP_SEARCH as defined in django-auth-ldap but apparently AWX doesn't accept it.

from django_auth_ldap.config import LDAPGroupQuery

AUTH_LDAP_REQUIRE_GROUP = (
    LDAPGroupQuery("cn=enabled,ou=groups,dc=example,dc=com")
    | LDAPGroupQuery("cn=also_enabled,ou=groups,dc=example,dc=com")
) & ~LDAPGroupQuery("cn=disabled,ou=groups,dc=example,dc=com")

Appears LDAP Require Group field is limited to a single group.

Did someone knows if this options is accepted?
Is it really possible to configure only a single group?

Thanks in advance for your help,

Beste regards,
J.

Responses