0

I am trying to setup a LDAP connection in Django. Does anyone have any sample code? I need to know what information I need to place inside of the settings.py.

I keep getting the following error message:

AUTH_LDAP_USER_SEARCH must be an LDAPSearch instance.
RAM
  • 2,413
  • 1
  • 21
  • 33
James
  • 9,694
  • 5
  • 32
  • 38

1 Answers1

0

Are you using a specific backend? Assuming you are using django-auth-ldap the docs are quite detailed.

arie
  • 18,737
  • 5
  • 70
  • 76
  • Yes. I am using backend. However, I can not import ldap from within my project on eclipse. But when I run python from cmd I can import ldap. – James May 16 '11 at 17:52