Thanks for the prompt reply. Yes, unique=True was the problem. Now I
passed the "run syncdb" and new tables were created. However, I still
could not "contact LDAP". Could somebody help me with this? There
could be many reasons so I want to start with loggings for Django-LDAP-
Groups.

Thanks!

My settings:

LDAP_SERVER = 'directory.XXXXX'

# If using SSL use these:
LDAP_PORT = 636
LDAP_URL = 'ldaps://XXXXXXXX:636'
SEARCH_DN = 'XXXXXXXX'
SEARCH_FIELDS = ['sn','cn','uid']
BIND_USER = 'XXXXXXXXXX'
BIND_PASSWORD = 'XXXXXXXXX'
CERT_FILE = 'XXXXXXXXXX'

AUTHENTICATION_BACKENDS = (
 'ldap_groups.accounts.backends.eDirectoryGroupMembershipSSLBackend',
 'django.contrib.auth.backends.ModelBackend',
)

The traceback:
Environment:

Request Method: POST
Request URL: http://localhost:8080/admin/
Django Version: 1.1
Python Version: 2.6.2
Installed Applications:
['ldap_groups',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'DjangoTests.TestAdmin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')


Traceback:
File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in
get_response
  92.                 response = callback(request, *callback_args,
**callback_kwargs)
File "C:\Python26\lib\site-packages\django\contrib\admin\sites.py" in
wrapper
  196.                 return self.admin_view(view, cacheable)(*args,
**kwargs)
File "C:\Python26\lib\site-packages\django\views\decorators\cache.py"
in _wrapped_view_func
  44.         response = view_func(request, *args, **kwargs)
File "C:\Python26\lib\site-packages\django\contrib\admin\sites.py" in
inner
  185.                 return self.login(request)
File "C:\Python26\lib\site-packages\django\views\decorators\cache.py"
in _wrapped_view_func
  44.         response = view_func(request, *args, **kwargs)
File "C:\Python26\lib\site-packages\django\contrib\admin\sites.py" in
login
  300.         user = authenticate(username=username,
password=password)
File "C:\Python26\lib\site-packages\django\contrib\auth\__init__.py"
in authenticate
  37.             user = backend.authenticate(**credentials)
File "C:\Python26\lib\site-packages\ldap_groups\accounts\backends.py"
in authenticate
  161.             l = self.bind_ldap(settings.BIND_USER,
settings.BIND_PASSWORD)
File "C:\Python26\lib\site-packages\ldap_groups\accounts\backends.py"
in bind_ldap
  154.         l.simple_bind_s(username, password)
File "C:\Python26\lib\site-packages\ldap\ldapobject.py" in
simple_bind_s
  206.     msgid = self.simple_bind(who,cred,serverctrls,clientctrls)
File "C:\Python26\lib\site-packages\ldap\ldapobject.py" in simple_bind
  200.     return self._ldap_call
(self._l.simple_bind,who,cred,EncodeControlTuples
(serverctrls),EncodeControlTuples(clientctrls))
File "C:\Python26\lib\site-packages\ldap\ldapobject.py" in _ldap_call
  96.         result = func(*args,**kwargs)

Exception Type: SERVER_DOWN at /admin/
Exception Value: {'desc': "Can't contact LDAP server"}

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.


Reply via email to