connecting Kerberos with LDAP backend to django app?

i have a linux ubuntu server and i have kerberos 5 with LDAP backend all set up. I have tested this system with kinit and everything works. Now i want to develop a django app that lets the user enter a username and a password. then this username and password gets passed to kerberos and the user goes thru all the authentication process then display a “DONE” or something at the end. how can i do this?

how do i create the custom authentication backend?

See the project django-auth-ldap · PyPI. Even if you don’t want to use that specific project yourself, reading the code and the docs for it will give you some ideas for your own implementation.

1 Like

helped a lot! THANK U