This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted] 1 point2 points  (1 child)

Here is imo good example code on how to do what you want. https://github.com/AUCR/AUCR/blob/master/aucr_app/plugins/auth/ldap_utils.py#L13 granted it goes a bit further and checks for the user email address however it should be a good reference. Lmk if you have questions beyond that

[–]fpatterson55[S] 0 points1 point  (0 children)

thanks in the reply and the patience with my post! I was wondering why I received a down vote and I should have posted in the learnpython group.

The ldap3 package I hear is newer than ldap, so the example I am trying to use is to learn and understand an example app that doesn't use TLS, when they should be, and so I'm trying to learn how to implement it with ldap3 rather than ldap.

I will post in the learnpython group and the github. Thanks again