2009/6/18 Fran <[email protected]>

>
> On Jun 18, 11:24 am, Johann Spies <[email protected]> wrote:
> > How do I implement that in web2py?
>
> Current version: not possible.
>
> With patched version, like this (also sent by email to you & Massimo):
> auth.settings.login_methods=[ldap_auth(server='stbldap01.sun.ac.za',
> base_dn='ou=users,O=SU', mode='cn', secure=True]
>

Thanks for your trouble.

Where should the brackets be closed?  I get

Error traceback

1.
2.
3.
4.
5.
6.
7.

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"
<https://werkesel.sun.ac.za/admin/default/edit/Linuxspan/models/db.py>,
line 80, in <module>
    auth.settings.login_methods=[ldap_auth(server='stbldap01.sun.ac.za',
base_dn='ou=users,O=SU', mode='cn', secure=True)]
TypeError: ldap_auth() got an unexpected keyword argument 'secure'

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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to