Skip to content

LDAP - raised SIZELIMIT_EXCEEDED #308

@selva316

Description

@selva316

Hi,

Django application can connect to the LDAP server flawlessly.

While login I'm getting the below error,

search_s('DC=xx,DC=yyy,DC=com', 2, " (objectClass=organizationalPerson)") raised SIZELIMIT_EXCEEDED(('msgtype': 100,
'msgid': 2, 'result': 4, 'desc': 'Size limit exceeded', 'ctrls': []})

How to set the SIZELIMIT in LDAP configuration
please help me with this issue.

My settings.py,

# Baseline Configuration
AUTH_LDAP_SERVER_URI='Ldap://xyz.server.com'
AUTH LDAP CONNECTION OPTIONS = {
	ldap.OPT_REFERRALS: 0
}
LDAP_IGNORE_CERT_ERRORS = True
AUTH_LDAP_BIND_DN = 'CN=dev,OU=Accounts,DC=xy,DC=qwerty, DC=com'
AUTH_LDAP_BIND_PASSWORD = 'qwerty123'
AUTH_LDAP_USER_SEARCH = LDAPSearch(
'DC=xy,DC=qwerty, DC=com',
ldap.SCOPE_SUBTREE,
"(objectClass=organizationalPerson)",
['cn']
)
LDAP_USER_ATTRIBUTES="cn,sn,givenName,displayName,employeeID,mail"
LDAP_BASE_DN = "DC=xy,DC=qwerty, DC=com"
LDAP USE SSL= True
LDAP_SEARCH_DOMAINS = "au.pbs,branch1,branch?"
AUTH_LDAP_GROUP BASE = "OU=Accounts,DC=xy,DC=qwerty, DC=com"
AUTH_LDAP_GROUP_FILTER = '(objectClass=posixGroup)'
AUTH LDAP GROUP SEARCH = LDAPSearch(
	AUTHLDAP_GROUP_BASE,
	ldap.SCOPE_SUBTREE,
	AUTH LDAP GROUP FILTER
	)

AUTH_LDAP_GROUP_TYPE = GroupOfNamesType (name_attr="cn")
AUTH_LDAP _USER_ATTR_MAP = {
'first name': 'givenName',
"last name': 'sn',
'email':'email'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions