Not quite sure what is really going on as I am new to Pylons, and even
newer to Repoze.
As far as I can tell the ldap plugin is authenticating propperly against
my ldap server (I've been tailing syslog).
It would also appear that the AuthTKCookiePlugin is able to identify the
cookie that my browser sent it,
but in the end I just see:
2010-05-21 15:43:25,836 no identities found, not authenticating
Attached is my who.ini, and paster's output during a login attempt.
--
David Gardner
Pipeline Tools Programmer
Jim Henson Creature Shop
[email protected]
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.
[plugin:form]
use = repoze.who.plugins.form:make_redirecting_plugin
login_form_url = /account/login
login_handler_path = /account/dologin
logout_handler_path = /account/logout
rememberer_name = auth_tkt
[plugin:auth_tkt]
use = repoze.who.plugins.auth_tkt:make_plugin
secret = something
[plugin:ldap_auth]
use = repoze.who.plugins.ldap:LDAPAuthenticatorPlugin
ldap_connection = ldap://ldap.internal.jhcs
base_dn = ou=People,dc=cs,dc=henson,dc=jhn
[general]
request_classifier = repoze.who.classifiers:default_request_classifier
challenge_decider = repoze.who.classifiers:default_challenge_decider
[identifiers]
plugins =
form;browser
auth_tkt
[authenticators]
plugins =
ldap_auth
[challengers]
plugins =
form;browser(pylons)dgard...@cssun32 ~/src/pcs/branches/pylons/asset/web:$ paster serve --reload development.ini
Starting subprocess with file monitor
/users/dgardner/src/pcs/branches/pylons/asset/assetdb.pyc cssun32.internal.jhcs:hdpsdb
Python: "(2, 6, 5, 'final', 0)"
SQLAlchemy '0.6.0'
Starting server in PID 32003.
serving on http://127.0.0.1:5000
2010-05-21 15:43:06,028 request classification: browser
2010-05-21 15:43:06,029 -- repoze.who request started (/account/test) --
2010-05-21 15:43:06,029 identifier plugins registered: [<RedirectingFormPlugin 49692368>, <AuthTktCookiePlugin 49692496>]
2010-05-21 15:43:06,029 identifier plugins matched for classification "browser": [<RedirectingFormPlugin 49692368>, <AuthTktCookiePlugin 49692496>]
2010-05-21 15:43:06,029 no identity returned from <RedirectingFormPlugin 49692368> (None)
2010-05-21 15:43:06,030 identity returned from <AuthTktCookiePlugin 49692496>: {'tokens': [''], 'timestamp': 1274481616, 'repoze.who.plugins.auth_tkt.userid': u'uid=test,ou=People,dc=cs,dc=henson,dc=jhn', 'userdata': 'userid_type:unicode'}
2010-05-21 15:43:06,030 identities found: [(<AuthTktCookiePlugin 49692496>, {'tokens': [''], 'timestamp': 1274481616, 'repoze.who.plugins.auth_tkt.userid': u'uid=test,ou=People,dc=cs,dc=henson,dc=jhn', 'userdata': 'userid_type:unicode'})]
2010-05-21 15:43:06,031 authenticator plugins registered: [<LDAPAuthenticatorPlugin 49769232>]
2010-05-21 15:43:06,031 authenticator plugins matched for classification "browser": [<LDAPAuthenticatorPlugin 49769232>]
2010-05-21 15:43:06,031 no userid returned from <LDAPAuthenticatorPlugin 49769232>: (None)
2010-05-21 15:43:06,031 identities authenticated: []
2010-05-21 15:43:06,031 no identities found, not authenticating
--test--
here
None
2010-05-21 15:43:06,057 challenge required
2010-05-21 15:43:06,057 challengers registered: [<RedirectingFormPlugin 49692368>]
2010-05-21 15:43:06,058 challengers matched for classification "browser": [<RedirectingFormPlugin 49692368>]
/users/dgardner/src/pcs/branches/pylons/lib/python2.6/site-packages/repoze.who-2.0a2-py2.6.egg/repoze/who/plugins/form.py:198: PendingDeprecationWarning: cgi.parse_qs is deprecated, use urlparse.parse_qs instead
query_elements = cgi.parse_qs(query)
2010-05-21 15:43:06,060 challenger plugin <RedirectingFormPlugin 49692368> "challenge" returned an app
2010-05-21 15:43:06,060 executing challenge app
2010-05-21 15:43:06,062 -- repoze.who request ended (/account/test) --
2010-05-21 15:43:06,069 request classification: browser
2010-05-21 15:43:06,070 -- repoze.who request started (/account/login) --
2010-05-21 15:43:06,070 identifier plugins registered: [<RedirectingFormPlugin 49692368>, <AuthTktCookiePlugin 49692496>]
2010-05-21 15:43:06,070 identifier plugins matched for classification "browser": [<RedirectingFormPlugin 49692368>, <AuthTktCookiePlugin 49692496>]
/users/dgardner/src/pcs/branches/pylons/lib/python2.6/site-packages/Paste-1.7.3.1-py2.6.egg/paste/request.py:125: PendingDeprecationWarning: cgi.parse_qsl is deprecated, use urlparse.parse_qsl instead
strict_parsing=False)
2010-05-21 15:43:06,072 no identity returned from <RedirectingFormPlugin 49692368> (None)
2010-05-21 15:43:06,073 identity returned from <AuthTktCookiePlugin 49692496>: {'tokens': [''], 'timestamp': 1274481616, 'repoze.who.plugins.auth_tkt.userid': u'uid=test,ou=People,dc=cs,dc=henson,dc=jhn', 'userdata': 'userid_type:unicode'}
2010-05-21 15:43:06,073 identities found: [(<AuthTktCookiePlugin 49692496>, {'tokens': [''], 'timestamp': 1274481616, 'repoze.who.plugins.auth_tkt.userid': u'uid=test,ou=People,dc=cs,dc=henson,dc=jhn', 'userdata': 'userid_type:unicode'})]
2010-05-21 15:43:06,073 authenticator plugins registered: [<LDAPAuthenticatorPlugin 49769232>]
2010-05-21 15:43:06,074 authenticator plugins matched for classification "browser": [<LDAPAuthenticatorPlugin 49769232>]
2010-05-21 15:43:06,074 no userid returned from <LDAPAuthenticatorPlugin 49769232>: (None)
2010-05-21 15:43:06,074 identities authenticated: []
2010-05-21 15:43:06,074 no identities found, not authenticating
--login--
2010-05-21 15:43:06,093 no challenge required
2010-05-21 15:43:06,093 -- repoze.who request ended (/account/login) --
2010-05-21 15:43:25,817 request classification: browser
2010-05-21 15:43:25,817 -- repoze.who request started (/account/dologin) --
2010-05-21 15:43:25,818 identifier plugins registered: [<RedirectingFormPlugin 49692368>, <AuthTktCookiePlugin 49692496>]
2010-05-21 15:43:25,818 identifier plugins matched for classification "browser": [<RedirectingFormPlugin 49692368>, <AuthTktCookiePlugin 49692496>]
2010-05-21 15:43:25,819 identity returned from <RedirectingFormPlugin 49692368>: {'login': 'test', 'password': 'testpass'}
2010-05-21 15:43:25,819 identity returned from <AuthTktCookiePlugin 49692496>: {'tokens': [''], 'timestamp': 1274481616, 'repoze.who.plugins.auth_tkt.userid': u'uid=test,ou=People,dc=cs,dc=henson,dc=jhn', 'userdata': 'userid_type:unicode'}
2010-05-21 15:43:25,819 identities found: [(<RedirectingFormPlugin 49692368>, {'login': 'test', 'password': 'testpass'}), (<AuthTktCookiePlugin 49692496>, {'tokens': [''], 'timestamp': 1274481616, 'repoze.who.plugins.auth_tkt.userid': u'uid=test,ou=People,dc=cs,dc=henson,dc=jhn', 'userdata': 'userid_type:unicode'})]
2010-05-21 15:43:25,820 authenticator plugins registered: [<LDAPAuthenticatorPlugin 49769232>]
2010-05-21 15:43:25,820 authenticator plugins matched for classification "browser": [<LDAPAuthenticatorPlugin 49769232>]
2010-05-21 15:43:25,823 userid returned from <LDAPAuthenticatorPlugin 49769232>: "uid=test,ou=People,dc=cs,dc=henson,dc=jhn"
2010-05-21 15:43:25,824 no userid returned from <LDAPAuthenticatorPlugin 49769232>: (None)
2010-05-21 15:43:25,824 identities authenticated: [((0, 0), <LDAPAuthenticatorPlugin 49769232>, <RedirectingFormPlugin 49692368>, {'login': 'test', 'password': 'testpass', 'repoze.who.userid': u'uid=test,ou=People,dc=cs,dc=henson,dc=jhn'}, u'uid=test,ou=People,dc=cs,dc=henson,dc=jhn')]
2010-05-21 15:43:25,824 static downstream application replaced with 302 Found
The resource was found at
http://localhost:5000/account/login?came_from=http%3A%2F%2Flocalhost%3A5000%2Faccount%2Ftest
2010-05-21 15:43:25,825 no challenge required
2010-05-21 15:43:25,826 -- repoze.who request ended (/account/dologin) --
2010-05-21 15:43:25,832 request classification: browser
2010-05-21 15:43:25,833 -- repoze.who request started (/account/login) --
2010-05-21 15:43:25,833 identifier plugins registered: [<RedirectingFormPlugin 49692368>, <AuthTktCookiePlugin 49692496>]
2010-05-21 15:43:25,833 identifier plugins matched for classification "browser": [<RedirectingFormPlugin 49692368>, <AuthTktCookiePlugin 49692496>]
2010-05-21 15:43:25,834 no identity returned from <RedirectingFormPlugin 49692368> (None)
2010-05-21 15:43:25,834 identity returned from <AuthTktCookiePlugin 49692496>: {'tokens': [''], 'timestamp': 1274481616, 'repoze.who.plugins.auth_tkt.userid': u'uid=test,ou=People,dc=cs,dc=henson,dc=jhn', 'userdata': 'userid_type:unicode'}
2010-05-21 15:43:25,835 identities found: [(<AuthTktCookiePlugin 49692496>, {'tokens': [''], 'timestamp': 1274481616, 'repoze.who.plugins.auth_tkt.userid': u'uid=test,ou=People,dc=cs,dc=henson,dc=jhn', 'userdata': 'userid_type:unicode'})]
2010-05-21 15:43:25,835 authenticator plugins registered: [<LDAPAuthenticatorPlugin 49769232>]
2010-05-21 15:43:25,835 authenticator plugins matched for classification "browser": [<LDAPAuthenticatorPlugin 49769232>]
2010-05-21 15:43:25,835 no userid returned from <LDAPAuthenticatorPlugin 49769232>: (None)
2010-05-21 15:43:25,836 identities authenticated: []
2010-05-21 15:43:25,836 no identities found, not authenticating
--login--
2010-05-21 15:43:25,850 no challenge required
2010-05-21 15:43:25,850 -- repoze.who request ended (/account/login) --