Re: [web2py] Re: Scheduler is Not Running

2019-05-24 Thread Suhas Jadhav
HI Dave, How do I make hcstar as a task. What is wrong in my code? Thanks, Suhas On Fri, May 24, 2019 at 1:25 PM Dave S wrote: > > > On Friday, May 24, 2019 at 12:05:31 AM UTC-7, Suhas Jadhav wrote: >> >> Hi, >> >> I have following code >> >>

[web2py] Scheduler is Not Running

2019-05-24 Thread Suhas Jadhav
Hi, I have following code def fun1: do something returns locals() I have below code in scheduler.py def hcstar(): LOAD('monitoring',' fun1') from gluon.scheduler import Scheduler scheduler2 = Scheduler(db,tasks=dict(hcstar=hcstar,fun1=func2)) I have scheduled the task to run e

[web2py] Password File

2019-05-13 Thread Suhas Jadhav
Hi Gurus, In my web2py application, i am connecting to two different databases. Currently, I am saving username and password in the code. I want to use a password file or some other mean. Can you please help. -- Thanks, Suhas -- Resources: - http://web2py.com - http://web2py.com/book (Documenta

Re: [web2py] Re: LDAP Authentication never work

2018-07-03 Thread Suhas Jadhav
Hi Where can I get the logs? Is there any location where I can check? Thanks, suhas On Fri, Jun 29, 2018 at 3:05 PM 黄祥 wrote: > i've test it without change auth = Auth(db) in db.py > the logs is depend on your ldap server configuration (389-ds, openldap, > etc), that's why i in another thread,

Re: [web2py] Re: LDAP Authentication never work

2018-06-29 Thread Suhas Jadhav
In db.py i have auth = Auth(db) Do i need to change this for ldap_auth to work? Thanks, Suhas On Fri, Jun 29, 2018 at 1:35 PM Suhas Jadhav wrote: > It is still not working for me, > Is there a way to see the logs? I want to see if ldap_auth is not able to > contact my ldap server or

Re: [web2py] Re: LDAP Authentication never work

2018-06-29 Thread Suhas Jadhav
It is still not working for me, Is there a way to see the logs? I want to see if ldap_auth is not able to contact my ldap server or any other reason Thanks, Suhas On Fri, Jun 15, 2018 at 6:46 PM 黄祥 wrote: > it should work (ignore configuration on previous message), pls follow this > thread dis

Re: [web2py] Re: LDAP Authentication never work

2018-06-14 Thread Suhas Jadhav
Hi stifan, Thaks for checking my issue. I uninstalled python 3 and install Python 2.7.15 Not the application is allowing me to log in. But even if I give incorrect username and password it shows successful login. What might be wrong? Thanks, Suhas On Wed, Jun 13, 2018 at 2:06 AM 黄祥 wrote: >

Re: [web2py] Re: LDAP Authentication never work

2018-06-12 Thread Suhas Jadhav
Hi Stifan, Any solution for me? Thanks, Suhas On Sun, Jun 10, 2018 at 10:47 PM Suhas Jadhav wrote: > Hi stifan, > > Thanks for reply. But it is still validating against the DB and not LDAP > > Thanks, > Suhas > > On Friday, 8 June 2018 16:39:15 UTC-7, 黄祥 wrote: &

Re: [web2py] Re: LDAP Authentication never work

2018-06-10 Thread Suhas Jadhav
Hi stifan, Thanks for reply. But it is still validating against the DB and not LDAP Thanks, Suhas On Friday, 8 June 2018 16:39:15 UTC-7, 黄祥 wrote: > > pls try (not tested) > *models/db.py* > from gluon.contrib.login_methods.ldap_auth import ldap_auth > auth.settings.login_methods.append(ldap_au

Re: [web2py] Re: LDAP Authentication never work

2018-06-08 Thread Suhas Jadhav
Are you saying i should do as below? It did not work for me. from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings.actions_disabled=['register','change_password','request_reset_password','retrieve_username','profile'] auth.settings.remember_me_form = False auth.settings.login_

[web2py] LDAP Authentication never work

2018-06-07 Thread Suhas Jadhav
Hi Gurus, My below code always authenticate against db and not ldap. Can you please help. @auth.requires_login() def test(): from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings.actions_disabled=['register','change_password','request_reset_password','retrieve_userna

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-07 Thread Suhas Jadhav
y, 4 June 2018 06:44:37 UTC-7, Suhas Jadhav wrote: > > Hi, > I am getting error ModuleNotFoundError: No module named 'urllib2' > > My Code is > > def test(): > import ldap > from urllib.request import urlopen > import urllib2 > impo

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Suhas Jadhav
, Suhas Jadhav wrote: > > Hi, > I am getting error ModuleNotFoundError: No module named 'urllib2' > > My Code is > > def test(): > import ldap > from urllib.request import urlopen > import urllib2 > import urllib > > > auth.se

[web2py] Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Suhas Jadhav
Hi, I am getting error ModuleNotFoundError: No module named 'urllib2' My Code is def test(): import ldap from urllib.request import urlopen import urllib2 import urllib auth.settings.actions_disabled=['register','change_password','request_reset_password','retrieve_username'