LDAP与LDAPS进行Django身份验证

时间:2020-03-23 13:09:12

标签: python django authentication ldap

因此,我们使用LDAP进行身份验证的服务器之一已关闭,并且被告知如果我们的项目支持LDAPS,则使用其他网站/服务器。因此,我们将新链接放入settings.py中的服务器行中,如下所示(更改了一些单词,以免泄露信息!):

LDAP_SETTINGS = {
    'base_dn': 'dc=central,dc=server,dc=local',
    'account_suffix': 'central.server.local',
    'servers': ['new.server.edu'],
    'staff_groups': ['aux-jr-admins', 'aux-rsrc-reports-centraldesk-checkins'],
    'superuser_groups': ['aux-admins','aux-jradmins', 'aux-to-webadmin', 'aux-dept-to-developers']
}

...那没有用,只是失败了。我在Google上找不到与LDAPS和Django有关的任何内容,但是当我查找LDAP与LDAPS时,我发现它们是不同的。更具体地说,LDAPS具有加密功能吗?

所以我的问题是,LDAPS与Django兼容吗?如果是这样,我将如何在settings.py文件中实现它以及如何进行身份验证?我需要解密信息吗?

即使只是向我指出资源也会很棒。

0 个答案:

没有答案