cn:1 and cn:2 works for me : from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings.login_methods = [auth, ldap_auth(mode='ad', bind_dn='domain\user', bind_pw='password', manage_groups=False, manage_user=True, user_firstname_attrib='cn:1', user_lastname_attrib='cn:2', server='servername.domain.com', user_mail_attrib='mail', # username_attrib='sAMAccountName', base_dn='dc=domain,dc=com', logging_level='error', db=db)]
Also, notice there is this open issue ( https://code.google.com/p/web2py/issues/detail?id=1645) and this thread ( https://groups.google.com/forum/#!topic/web2py/sEpOWYk0mFA) :) Richard On Tue, Sep 17, 2013 at 6:16 AM, D. <[email protected]> wrote: > Never mind - the problem is in a messed-up configuration of different OUs > ...there's no default Groups-Key in my environment - I'll have to customize > ldap_auth.py all the way for recursive searches etc. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

