We use a package called django-auth-ldap. https://pythonhosted.org/django-auth-ldap/
It saves some of the LDAP data into the User model everytime the user logs in. We also have our own Employee model that has a foreign key to the User model, and if the user logs in without an employee record they are not allowed to proceed. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Owen Cai Sent: Wednesday, November 2, 2016 9:08 AM To: Django users Subject: How to fetch data from LDAP to html textbox I am pretty new to Python and Django. Recently my team ask me to develop a web app based on Django 1.9 for the company. The authentication part involved using LDAP but not a common way I can search in google. On the top of the interface will have 2 button "use for self" and "use for others" Under these 2 buttons, will have couple rows of import text boxes for employee information such as id, name, email address etc. If the user choose "use for self", all the employee info need be automatically filled up through data from LDAP. If the user choose "use for others", then the user need input the employee id, if the id is valid, all the rest information will filled up. I will be appreciate if anyone can give me some advises such as: What is the easiest way to approach these functions under django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>. To post to this group, send email to django-users@googlegroups.com<mailto:django-users@googlegroups.com>. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2301c5da-5d24-48d7-bf7e-1fd949deaa76%40googlegroups.com<https://groups.google.com/d/msgid/django-users/2301c5da-5d24-48d7-bf7e-1fd949deaa76%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b046131b24764b73b556577e2ec32dd5%40ISS1.ISS.LOCAL. For more options, visit https://groups.google.com/d/optout.