Hi all, I'd like to login in Admin site and authenticate with LDAP. Is there a "most used LDAP authentication backend"? I found the backend ldapauth.py [1], that seems to be the one. Is this the best solution?
I see that in [2] that are many patches. Is the file in [1] updated, or do I have to apply the patches? [1] http://code.djangoproject.com/attachment/ticket/2507/ldapauth.py [2] http://code.djangoproject.com/ticket/2507 I tried to use this lib, but just after login into Admin, a blank page appears. How can I know what went wrong? Any clue? Also, I don't know if I filled appropriatly the required variables in settings.py. There's an app at my company that authenticates using Apache+LDAP. File /etc/httpd/conf.d/lic.conf has the following content: """ <Location /lic> AuthType Basic AuthName "Authentication at Active Directory" AuthLDAPBindDN u...@company.com <usua...@dominio.com> AuthLDAPBindPassword PASSWORD AuthLDAPURL "ldap://LDAP_SERVER.<http://SERVIDOR_LDAP.DOMINIO.COM:389/OU=ORGAO_INTERNO,DC=DOMINIO,DC=COM?sAMAccountName?sub?%28objectClass=*%29> COMPANY <usua...@dominio.com>.COM:389/OU=XXX,DC=<http://SERVIDOR_LDAP.DOMINIO.COM:389/OU=ORGAO_INTERNO,DC=DOMINIO,DC=COM?sAMAccountName?sub?%28objectClass=*%29> COMPANY <usua...@dominio.com>,DC=COM?sAMAccountName?sub?(objectClass=*)<http://SERVIDOR_LDAP.DOMINIO.COM:389/OU=ORGAO_INTERNO,DC=DOMINIO,DC=COM?sAMAccountName?sub?%28objectClass=*%29> " AuthLDAPAuthoritative On Require ldap-group CN=NAME,OU=Locals,OU=TI,OU=Groups,OU=XXX,DC=COMPANY<usua...@dominio.com> ,DC=COM Require valid-user </Location> """ How would I translate this configs to the ldapauth.py variables (LDAP_SERVER_URI, LDAP_SEARCHDN, LDAP_SCOPE, LDAP_PREBINDDN, LDAP_PREBINDPW etc)? Thanks!! -- João Olavo Baião de Vasconcelos Bacharel em Ciência da Computação Analista de Sistemas - Infraestrutura joaoolavo.wordpress.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---