Re: ldapauth and TLS

2008-10-17 Thread Daniele Procida
On Thu, Oct 16, 2008, Daniele Procida <[EMAIL PROTECTED]> wrote: >I'm trying to get django.contrib.auth.ldapauth.LDAPBackend - from: > > > >working with our LDAP server. > >However, if we set any value in LDAP_OPTIONS (other than

Re: ldapauth and TLS

2008-10-16 Thread Daniele Procida
On Thu, Oct 16, 2008, Dj Gilcrease <[EMAIL PROTECTED]> wrote: > >Where are you changing this setting? It should be in the ldapauth.py >settings section which should look something like the following, but >with your data in it > >import ldap >from django.conf import settings >from

Re: ldapauth and TLS

2008-10-16 Thread Dj Gilcrease
Where are you changing this setting? It should be in the ldapauth.py settings section which should look something like the following, but with your data in it import ldap from django.conf import settings from django.contrib.auth.models import User settings = { 'LDAP_SERVER_URI':

Re: ldapauth and TLS

2008-10-16 Thread Daniele Procida
On Thu, Oct 16, 2008, Steven Armstrong <[EMAIL PROTECTED]> wrote: >import ldap >LDAP_OPTIONS = {ldap.OPT_X_TLS_DEMAND: True} It's doesn't crash the server, but it's the same error as before: Exception Type: AttributeError Exception Value: 'dict' object has no attribute

Re: ldapauth and TLS

2008-10-16 Thread Steven Armstrong
Daniele Procida wrote on 10/16/08 20:43: > On Thu, Oct 16, 2008, Dj Gilcrease <[EMAIL PROTECTED]> wrote: > >> LDAP_OPTIONS = 'ldap.OPT_X_TLS_DEMAND: True' >> should be >> LDAP_OPTIONS = {ldap.OPT_X_TLS_DEMAND: True} > > Sdly, that immediately crashes the server: > > Traceback (most recent call

Re: ldapauth and TLS

2008-10-16 Thread Daniele Procida
On Thu, Oct 16, 2008, Dj Gilcrease <[EMAIL PROTECTED]> wrote: >LDAP_OPTIONS = {'OPT_X_TLS_DEMAND': True} I'm afraid that's not it either; nor is: LDAP_OPTIONS = {'ldap.OPT_X_TLS_DEMAND': True} Daniele --~--~-~--~~~---~--~~ You received this message because

Re: ldapauth and TLS

2008-10-16 Thread Dj Gilcrease
Ahh yes, been a while since I messed with my settings for that file but I think this is what you need LDAP_OPTIONS = {'OPT_X_TLS_DEMAND': True} Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Oct 16, 2008 at 12:43 PM, Daniele Procida <[EMAIL PROTECTED]> wrote: > > On Thu, Oct

Re: ldapauth and TLS

2008-10-16 Thread Daniele Procida
On Thu, Oct 16, 2008, Dj Gilcrease <[EMAIL PROTECTED]> wrote: > > LDAP_OPTIONS = 'ldap.OPT_X_TLS_DEMAND: True' >should be > LDAP_OPTIONS = {ldap.OPT_X_TLS_DEMAND: True} Sdly, that immediately crashes the server: Traceback (most recent call last): File "manage.py", line 4, in import

Re: ldapauth and TLS

2008-10-16 Thread Dj Gilcrease
LDAP_OPTIONS = 'ldap.OPT_X_TLS_DEMAND: True' should be LDAP_OPTIONS = {ldap.OPT_X_TLS_DEMAND: True} I would think Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Oct 16, 2008 at 12:04 PM, Daniele Procida <[EMAIL PROTECTED]> wrote: > > On Thu, Oct 16, 2008, Jeff Anderson

Re: ldapauth and TLS

2008-10-16 Thread Daniele Procida
On Thu, Oct 16, 2008, Jeff Anderson <[EMAIL PROTECTED]> wrote: >> According to the documentation, we should be able to set LDAP_OPTIONS >> along with the other settings: >> >> ``LDAP_OPTIONS`` -- hash, python-ldap global options and their values >>

Re: ldapauth and TLS

2008-10-16 Thread Jeff Anderson
Daniele Procida wrote: > I'm trying to get django.contrib.auth.ldapauth.LDAPBackend - from: > > > > working with our LDAP server. > > IWe need TLS before the server will permit us to exchange a password with it. > > According to

ldapauth and TLS

2008-10-16 Thread Daniele Procida
I'm trying to get django.contrib.auth.ldapauth.LDAPBackend - from: working with our LDAP server. IWe need TLS before the server will permit us to exchange a password with it. According to the documentation, we should be able