Hi all,
I'm trying to configure LDAP in my tg 1.1, in this way:
dev.cfg:
identity.provider = 'ldap'
identity.saldapprovider.host = 'myhost'
identity.saldapprovider.port = 389
identity.saldapprovider.basedn = 'ou=pippoauth,dc=host,dc=com'
identity.saldapprovider.filter_id = 'uid'
identity.saldapprovider.autocreate = True
when I try to login... I get this error:
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/Paste-1.7.2-py2.6.egg/paste/evalexception/middleware.py',
line 306 in respond
app_iter = self.application(environ, detect_start_response)
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/cherrypy/_cpwsgi.py',
line 125 in wsgiApp
environ['wsgi.input'])
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/cherrypy/_cphttptools.py',
line 82 in run
self._run()
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/cherrypy/_cphttptools.py',
line 119 in _run
applyFilters('before_main')
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/cherrypy/filters/__init__.py',
line 151 in applyFilters
method()
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/TurboGears-1.1.1-py2.6.egg/turbogears/visit/api.py',
line 201 in before_main
plugin.record_request(visit)
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/TurboGears-1.1.1-py2.6.egg/turbogears/identity/visitor.py',
line 211 in record_request
identity = self.identity_from_request(visit.key)
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/TurboGears-1.1.1-py2.6.egg/turbogears/identity/visitor.py',
line 109 in identity_from_request
identity = source(visit_key)
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/TurboGears-1.1.1-py2.6.egg/turbogears/identity/visitor.py',
line 195 in identity_from_form
user_name, password, visit_key)
File '/home/jose/trunk/sicer/lib/identity.py', line 137 in
validate_identity
if not self.validate_password(user, user_name, password):
File '/home/jose/trunk/sicer/lib/identity.py', line 175 in
validate_password
objects = ldapcon.result(rc)[1]
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/python_ldap-2.3.13-py2.6-linux-x86_64.egg/ldap/ldapobject.py',
line 422 in result
res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/python_ldap-2.3.13-py2.6-linux-x86_64.egg/ldap/ldapobject.py',
line 426 in result2
res_type, res_data, res_msgid, srv_ctrls =
self.result3(msgid,all,timeout)
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/python_ldap-2.3.13-py2.6-linux-x86_64.egg/ldap/ldapobject.py',
line 432 in result3
ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)
File
'/home/jose/.virtualenv/lib/python2.6/site-packages/python_ldap-2.3.13-py2.6-linux-x86_64.egg/ldap/ldapobject.py',
line 96 in _ldap_call
result = func(*args,**kwargs)
NO_SUCH_OBJECT: {'desc': 'No such object'}
----------------------------------------------------
here what I see, using ldapsearch:
$ldapsearch -b 'ou=pippoauth,dc=host,dc=com' -H ldap://myhost -D
"cn=pippo,dc=host,dc=com" -w mypassword
# extended LDIF
#
# LDAPv3
# base <ou=pippoauth,dc=host,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# pippoauth, host.com
dn: ou=pippoauth,dc=host,dc=com
ou: pippoauth
objectClass: organizationalUnit
objectClass: top
# jose soares, pippoauth, host.com
dn: cn=jose soares,ou=pippoauth,dc=host,dc=com
givenName: jose
sn: soares
cn: jose soares
objectClass: inetOrgPerson
objectClass: top
objectClass: simpleSecurityObject
# steve, pippoauth, host.com
dn: uid=steve,ou=pippoauth,dc=host,dc=com
uid: steve
objectClass: account
objectClass: simpleSecurityObject
objectClass: top
# search result
search: 2
result: 0 Success
# numResponses: 4
# numEntries: 3
------------------
Thanks for any help.
j
--
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en.