I am trying to figure out how to use ldap-authentication. Although the change-log for the latest web2py indicates improved ldap-functionality I could not find clear documentation on how to use it. Someware I got hold of what I have used in the configuration:
auth=Auth(globals(),db) from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings.login_methods.append(ldap_auth("ldaps://stbldap01.sun.ac.za stbldap02.sun.ac.za/ou=users,O=SU?cn")) Traceback (most recent call last): File "/var/www/web2py/gluon/restricted.py", line 107, in restricted exec ccode in environment File "/var/www/web2py/applications/Linuxspan/models/db.py", line 58, in <module> from gluon.contrib.login_methods.ldap_auth import ldap_auth ImportError: No module named login_methods.ldap_auth I am working on a Debian testing/sid system with python 2.5, the latest web2py and python-ldap installed. Regards Johann --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---