I'm trying to setup the university ldap for my bachelor thesis but cannot figure out, what i do wrong. Get this message:
Caught LDAPError while authenticating my_actual_id: SERVER_DOWN({'desc': "Can't contact LDAP server"})
My settings are:
LDAP_AUTH_FORMAT_USERNAME = "django_python3_ldap.utils.format_username_active_directory"
# LDAP_AUTH_CONNECTION_USERNAME = "dc=my-university,dc=de"
# The URL of the LDAP server.
AUTH_LDAP_SERVER_URI = "ldaps://ldap.my-university.de:636"
AUTH_LDAP_START_TLS = True
# AUTH_LDAP_BIND_DN = "dc=my-university,dc=de"
AUTH_LDAP_BIND_DN = ""
AUTH_LDAP_BIND_PASSWORD = ""
AUTH_LDAP_USER_SEARCH = LDAPSearch("ou=people,dc=2017,dc=INF,dc=Studenten,dc=my-university,dc=de",ldap.SCOPE_SUBTREE,"(uid=%(user)s)")
# AUTH_LDAP_USER_SEARCH = LDAPSearch("ou=people, dc=my-university,dc=de",ldap.SCOPE_SUBTREE,"(uid=%(user)s)")
# AUTH_LDAP_GLOBAL_OPTIONS = {ldap.OPT_REFERRALS: False}
I need to search anonymous and need to do a search/bind. That told me my universtiy. But they won't provide any help. The configured user search is selected because I study computer science and my uid is under this path. I wanted it to work at least for me.
The structure of my university ldap is this:
my-university
├── dc=BW
│ ├── dc=Insitute1
│ │ ├── ou=people
│ ├── dc=Insitute2
│ │ ├── ou=people
├── dc=Students
│ ├── dc=INF
│ │ ├── dc=2018
│ │ │ └──ou=people
│ │ ├── dc=2019
│ ├── dc=PSY
│ │ ├── dc=2018
│ │ │ └──ou=people
│ │ ├── dc=2019
and so on
That means that the ou=people are on several levels. Somtimes on level 3, sometimes on level 4. If you know what I mean by saying "level".