[web2py] Re: ldap_auth, TLS implementation

2016-04-20 Thread flando
right! my fault, didn't set "secure=True"... Thank you Niphlod! -- 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

[web2py] Re: ldap_auth, TLS implementation

2016-04-20 Thread flando
we are using 2.13.4, in this version it is missing. sorry for my post if it meanwhile got integrated! :) -- 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) --- Y

[web2py] ldap_auth, TLS implementation

2016-04-20 Thread flando
Hi To have ldap over tls working I had to add the following lines in gluon/contrib/login_methods/ldap_auth.py to regard the cert file: 567 def init_ldap( 601 if tls: +602 if cacert_file: +603 ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap

[web2py] Re: DB definition default=xy results in mysql always as DEFAULT NULL

2012-10-05 Thread flando
Thanks guys! Problem is that inserts into the db are done from another system than web2py (php webserver). I will use a trigger on mysql to set the corresponding fields with default values when a record gets inserted from the php application. Fritz --

[web2py] DB definition default=xy results in mysql always as DEFAULT NULL

2012-10-04 Thread flando
Dears I have an issue that the defined default value in db.py is not taken into the mysql table definition. E.g. I define in db.py: db.define_table('testcustomer', Field('country2','string', length=2, default='ch', label=T('Land')), Field('language2','string', length=2, default='de', lab

[web2py] ajax() and mobilize

2012-03-09 Thread flando
Hi Guys I am struggling with @mobilize and ajax(). I have a form with two SELECT whereby changes on the first select will update the options on the second select using ajax(). When I access the page, the form gets perfectly "mobilized" by using " plugin_jqmobile/layout.html". Both select fields l