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 <[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
>>> {ldap.OPT_X_TLS_CACERTDIR: '/etc/ldap/ca/'}
>>>
>>> However, if we set any value in LDAP_OPTIONS (other than 'None' - and
>>> even the one in the example above) we get an error
>
>>> The full error is at: <http://dpaste.com/84838/>
>>>
>>> How can we set LDAP_OPTIONS to turn on TLS?
>>>
>
>>LDAP_OPTIONS should be defined in your settings.py. Paste what you have
>>in your settings.py for the ldap configuration, and I can help diagnose.
>
> Well, what we have in there now is:
>
> LDAP_OPTIONS = 'ldap.OPT_X_TLS_DEMAND: True'
>
> Feel free to see what happens when you try to log in at:
>
> <http://w128.medcn.uwcm.ac.uk:8000/admin/>
>
> You'll need to use the username "sagdp6" (and use any old password).
>
> Thanks,
>
> Daniele
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---