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 django.contrib.auth.models import User > >settings = { > 'LDAP_SERVER_URI': 'ldap://localhost', > 'LDAP_SEARCHDN': 'dc=localhost', > 'LDAP_SCOPE': ldap.SCOPE_SUBTREE, > 'LDAP_SEARCH_FILTER': 'cn=%s', > 'LDAP_UPDATE_FIELDS': True, > 'LDAP_PREBINDDN': None, > 'LDAP_PREBINDPW': None, > 'LDAP_BINDDN': None, > 'LDAP_BIND_ATTRIBUTE': None, > 'LDAP_FIRST_NAME': None, > 'LDAP_LAST_NAME': None, > 'LDAP_FULL_NAME': None, > 'LDAP_GID': None, > 'LDAP_SU_GIDS': None, > 'LDAP_STAFF_GIDS': None, > 'LDAP_ACTIVE_FIELD': None, > 'LDAP_ACTIVE': None, > 'LDAP_EMAIL': None, > 'LDAP_DEFAULT_EMAIL_SUFFIX': None, > 'LDAP_OPTIONS': {'OPT_X_TLS_DEMAND': True}, > 'LDAP_DEBUG': True, >}
I'm doing the settings in settings.py, and they all seem to work quite happily there, apart from LDAP_OPTIONS. I've tried setting LDAP_OPTIONS in ldapauth.py as well, in exactly the same same way as you describe here. The error remains the same. I've been trying to work out how to set the option manually (using something like: ldap.set_option(ldap.OPT_X_TLS_DEMAND, True) to test it at a lower level. However, I don't know quite what that should be, nor where to put it. Daniele --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---