Hello,

I'd like to use LDAP authentication for tg2 using our university's LDAP
server. This server needs bind authentication, which is not supported
yet by the repoz.who.plugin. I'm willing to develop this, however I'm
struggling in setting the whole thing up..

The demo application is not really working, since I don't have a LDAP
server handy without authorization.

My problem is, that I never see any LDAP request going out, tg2 says
that there are "no identities found" and that it's not authenticating...
I put a lot of debug output in the ldap plugin, the initialization seems
to work, however I cannot see any bind request, where I could implement
the needed authorization.

How comes that LDAPAuthenticatorPlugin.authenticate() is never called ?

I would be grateful for any pointers in the right direction...

Regards

 André

Here is what I see on a login attempt:


2009-08-14 13:54:06,783 -- repoze.who request started (/login_handler) --
2009-08-14 13:54:06,783 request classification: browser                 
2009-08-14 13:54:06,783 identifier plugins registered [<FormPlugin
42057872>, <AuthTktCookiePlugin 41798416>]
2009-08-14 13:54:06,783 identifier plugins matched for classification
"browser": [<FormPlugin 42057872>, <AuthTktCookiePlugin 41798416>]
2009-08-14 13:54:06,783 no identity returned from <FormPlugin 42057872>
(None)                                                         
2009-08-14 13:54:06,783 no identity returned from <AuthTktCookiePlugin
41798416> (None)                                                
2009-08-14 13:54:06,783 identities found:
[]                                                                              
             

2009-08-14 13:54:06,783 no identities found, not
authenticating                                                                  
      

13:54:06,789 INFO  [sqlalchemy.engine.base.Engine.0x...ec10]
BEGIN                                                                     
/home/lynx/develop/tg2env/lib/python2.5/site-packages/SQLAlchemy-0.5.1-py2.5.egg/sqlalchemy/engine/default.py:229:
SAWarning: Unicode type received non-unicode bind param value
'qwd'                                                                           
                                            

 
param.append(processors[key](compiled_params[key]))                             
                                                                    

13:54:06,790 INFO  [sqlalchemy.engine.base.Engine.0x...ec10] SELECT
tg_user.password AS tg_user_password, tg_user.user_id AS
tg_user_user_id, tg_user.user_name AS tg_user_user_name,
tg_user.email_address AS tg_user_email_address, tg_user.display_name AS
tg_user_display_name, tg_user.created AS
tg_user_created                                                                 
                                                                             

FROM
tg_user                                                                         
                                                                 

WHERE tg_user.user_name =
?                                                                               
                                            

 LIMIT 2 OFFSET
0                                                                               
                                                      

13:54:06,790 INFO  [sqlalchemy.engine.base.Engine.0x...ec10]
['qwd']                                                                         
         

2009-08-14 13:54:06,791 no challenge
required                                                                        
                                 

2009-08-14 13:54:06,792 -- repoze.who request ended (/login_handler)
--                                                                              
 

2009-08-14 13:54:06,815 -- repoze.who request started (/post_login)
--                                                                              
  

2009-08-14 13:54:06,815 request classification:
browser                                                                         
                      

2009-08-14 13:54:06,816 identifier plugins registered [<FormPlugin
42057872>, <AuthTktCookiePlugin
41798416>]                                         
2009-08-14 13:54:06,816 identifier plugins matched for classification
"browser": [<FormPlugin 42057872>, <AuthTktCookiePlugin
41798416>]              
2009-08-14 13:54:06,816 no identity returned from <FormPlugin 42057872>
(None)                                                                        

2009-08-14 13:54:06,816 no identity returned from <AuthTktCookiePlugin
41798416>
(None)                                                               
2009-08-14 13:54:06,816 identities found:
[]                                                                              
                            

2009-08-14 13:54:06,816 no identities found, not
authenticating                                                                  
                     

<venus.controllers.root.RootController object at
0x2832b50>                                                                      
                     

<venus.controllers.root.RootController object at
0x2832b50>                                                                      
                     

<venus.controllers.root.RootController object at
0x2832b50>                                                                      
                     

2009-08-14 13:54:06,871 no challenge
required                                                                        
                                 

2009-08-14 13:54:06,871 -- repoze.who request ended (/post_login)
--                                                                              
    

2009-08-14 13:54:06,940 -- repoze.who request started (/login)
--                                                                              
       

2009-08-14 13:54:06,940 request classification:
browser                                                                         
                      

2009-08-14 13:54:06,940 identifier plugins registered [<FormPlugin
42057872>, <AuthTktCookiePlugin
41798416>]                                         
2009-08-14 13:54:06,940 identifier plugins matched for classification
"browser": [<FormPlugin 42057872>, <AuthTktCookiePlugin
41798416>]              
2009-08-14 13:54:06,940 no identity returned from <FormPlugin 42057872>
(None)                                                                        

2009-08-14 13:54:06,941 no identity returned from <AuthTktCookiePlugin
41798416>
(None)                                                               
2009-08-14 13:54:06,941 identities found: []
2009-08-14 13:54:06,941 no identities found, not authenticating
<venus.controllers.root.RootController object at 0x299e4d0>
<venus.controllers.root.RootController object at 0x299e4d0>
<venus.controllers.root.RootController object at 0x299e4d0>
2009-08-14 13:54:06,992 no challenge required
2009-08-14 13:54:06,992 -- repoze.who request ended (/login) --
2009-08-14 13:54:07,303 -- repoze.who request started
(/images/under_the_hood_blue.png) --
2009-08-14 13:54:07,304 request classification: browser
2009-08-14 13:54:07,304 identifier plugins registered [<FormPlugin
42057872>, <AuthTktCookiePlugin 41798416>]
2009-08-14 13:54:07,304 identifier plugins matched for classification
"browser": [<FormPlugin 42057872>, <AuthTktCookiePlugin 41798416>]
2009-08-14 13:54:07,304 no identity returned from <FormPlugin 42057872>
(None)
2009-08-14 13:54:07,304 no identity returned from <AuthTktCookiePlugin
41798416> (None)
2009-08-14 13:54:07,304 identities found: []
2009-08-14 13:54:07,304 no identities found, not authenticating
2009-08-14 13:54:07,305 no challenge required
2009-08-14 13:54:07,305 -- repoze.who request ended
(/images/under_the_hood_blue.png) --



_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to