I have a complete ajax application am building using DHTMLX client framework. I am using all the controls from there. I have a login form define in my app using DHTMLX as follows:
*View:* * * <script> ... function loginForm() { loginFrmConf = [ {type: "settings", position: "label-top", inputWidth: 205}, {type: "input", name: "username", label: "Username "}, {type: "password", name: "password", label: "Password"}, {type: "button", name: "login", value: "Login", offsetTop: 20, align: "right"} ]; dhxLoginFrm = new dhtmlXForm("auth_details", loginFrmConf); dhxLoginFrm.attachEvent("onButtonClick", function (id) { if (id == "login") { dhxLoginFrm.send("{{=URL('default', 'login')}}", function (loader, response) { alert("Test: " + response); }); } }); .... </script> *Controller:* * * def login(): if auth.login_bare(request.vars.username, request.vars.password): return "login success" else: return "Login failed" *Model:* * * auth.settings.actions_disabled=['register','change_password','request_reset_password','retrieve_username'] auth.settings.remember_me_form = False from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings.login_methods = [ldap_auth(mode='ad', #manage_groups=True, #manage_user=True, #user_lastname_attrib='cn:2', db=db, #allowed_groups = ['committee_dept','library'], group_dn='DC=parliament,DC=gov,DC=zm', bind_dn = 'CN=admin,CN=Users,DC=mycompany,DC=org,DC=zm', bind_pw = 'password', group_name_attrib = 'cn', group_member_attrib = 'member', group_filterstr = 'objectClass=*', server='dc-hostname', base_dn='dc=mycomany,dc=org,dc=zm', logging_level='debug')] The controller is able to authenticate to authenticate normally without any problem, login is going through, but the session was no created. I have also noticed that the authenticated user was not created in the auth.user table. Is there something am missing in the use of auth.login_bare() above? -- ....................................................................................... Teddy Lubasi Nyambe Opensource Zambia Lusaka, ZAMBIA Cell: +260 97 7760473 website: http://www.opensource.org.zm ~/ Human Knowledge belongs to the world! - AntiTrust Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881 /~ -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.