Hi, I’ve to connect django web application with ucs.
I’ve problems about these settings;
# This search ought to return all groups to which the user belongs. django_auth_ldap uses this $
# hierarchy.
AUTH_LDAP_GROUP_SEARCH = LDAPSearch("cn=groups,dc=domain,dc=intranet", ldap.SCOPE_SUBTREE,
"(objectClass=posixGroup)")
#AUTH_LDAP_GROUP_TYPE = GroupOfNamesType()
AUTH_LDAP_GROUP_TYPE = PosixGroupType(name_attr="uniqueMember")
with there settings I’ve this output:
name 'PosixGroupType' is not defined
What’s wrong?