[web2py] Re: LDAP queries on all subdomains under root?

2012-03-16 Thread szimszon
If I have some time I'll make the search scope configurable in ldap_auth... 2012. március 16., péntek 3:15:10 UTC+1 időpontban IVINH a következőt írta: > > Hi all, > > This my code for LDAP: > >from gluon.contrib.login_methods.ldap_auth import ldap_auth > > auth.settings.login_methods.ap

[web2py] Re: LDAP queries on all subdomains under root?

2012-03-16 Thread szimszon
Can you please test it? I can test it only on monday. or you can customize the search for user: auth.settings.login_methods.append(ldap_auth( mode='custom', server='my.ldap.server', base_dn='ou=Users,dc=domain,dc=com', username_attrib='uid',

[web2py] Re: LDAP queries on all subdomains under root?

2012-03-18 Thread IVINH
It's work. But changed "username_attrib" instead "username_attrs" at lign 306: filter = '(&(%s=%s)(%s))' % ( username_attrib, ldap.filter.escape_filter_chars( username ), filterstr ) Thank szimszon. Vào 05:15:08 UTC+7 Thứ bảy, ngày 17 tháng ba năm 2012, szimszon đã viết: > > Can you ple

[web2py] Re: LDAP queries on all subdomains under root?

2012-03-18 Thread szimszon
Thanks for testing. I'll implement a little bit of logging tomorrow than send a patch to Massimo... 2012. március 18., vasárnap 12:20:24 UTC+1 időpontban IVINH a következőt írta: > > > > It's work. But changed "username_attrib" instead "username_attrs" at lign > 306: > > filter = '(&(%s=%s)(%s

[web2py] Re: LDAP queries on all subdomains under root?

2012-03-19 Thread szimszon
The new ldap_auth.py is in the trunk. If you could test it. Please give me a feedback if something is broken. http://code.google.com/p/web2py/issues/detail?id=724 2012. március 18., vasárnap 12:20:24 UTC+1 időpontban IVINH a következőt írta: > > > > It's work. But changed "username_attrib" inst