[web2py] Re: Other login methods

2018-06-16 Thread Anthony
Seems like a problem with the provider. On Saturday, June 16, 2018 at 8:09:15 AM UTC-4, 黄祥 wrote: > > $ python > Python 2.7.15 |Anaconda, Inc.| > >>> import smtplib > >>> smtplib.SMTP('mail.stifix.com', 25) > Traceback (most recent call last): > File "", line 1, in > File > "/Users/sugizo/mi

[web2py] Re: Other login methods

2018-06-16 Thread 黄祥
$ python Python 2.7.15 |Anaconda, Inc.| >>> import smtplib >>> smtplib.SMTP('mail.stifix.com', 25) Traceback (most recent call last): File "", line 1, in File "/Users/sugizo/miniconda3/envs/python2_prod/lib/python2.7/smtplib.py" , line 256, in __init__ (code, msg) = self.connect(host, port

[web2py] Re: Other login methods

2018-06-16 Thread Anthony
It's failing at smtplib.SMTP(host, port), so maybe try that directly in a Python shell to confirm you get the same error there. Anthony On Friday, June 15, 2018 at 9:39:56 PM UTC-4, 黄祥 wrote: > > ldap_auth() issue done at : https://github.com/web2py/web2py/issues/1955 > for email_auth(), think s

[web2py] Re: Other login methods

2018-06-15 Thread 黄祥
ldap_auth() issue done at : https://github.com/web2py/web2py/issues/1955 for email_auth(), think should work because what i've seen in cpanel they provide the configuraiton for email client: # Outgoing Server: mail.stifix.com, SMTP Port: 25 # Outgoing Server: mail.stifix.com, SMTP Port: 465 will

[web2py] Re: Other login methods

2018-06-15 Thread Anthony
> > test ping from another terminal return normal > $ ping mail.stifix.com > PING mail.stifix.com (104.24.99.40): 56 data bytes > 64 bytes from 104.24.99.40: icmp_seq=0 ttl=56 time=32.708 ms > 64 bytes from 104.24.99.40: icmp_seq=1 ttl=56 time=25.990 ms > ^C > --- mail.stifix.com ping statistics -

[web2py] Re: Other login methods

2018-06-15 Thread 黄祥
yes, you are right previous message i rename my domain (stifix) with 'domain', now the real test tested with gmail (without 2 verification) can work, but when setting it to my email domain, can not with traceback error: ERROR:root:email_auth() failed Traceback (most recent call last): File "/Us

[web2py] Re: Other login methods

2018-06-15 Thread Anthony
On Thursday, June 14, 2018 at 11:11:05 PM UTC-4, 黄祥 wrote: > > yes, actually for email_auth or ldap_auth. ATM, email_auth is tested using > from domain hosting (add it from cpanel). > email_auth, ldap_auth and pam_auth tested above is using the real data and > also tested for the fake data (just

[web2py] Re: Other login methods

2018-06-14 Thread 黄祥
yes, actually for email_auth or ldap_auth. ATM, email_auth is tested using from domain hosting (add it from cpanel). email_auth, ldap_auth and pam_auth tested above is using the real data and also tested for the fake data (just for testing) best regards, stifan -- Resources: - http://web2py.co

[web2py] Re: Other login methods

2018-06-14 Thread Anthony
Are you planning to actually use any of these methods? If so, I would suggest setting them up properly with real authentication services, and only then report back if you are receiving errors. They are not necessarily supposed to work as expected with dummy inputs. Anthony On Thursday, June 14

[web2py] Re: Other login methods

2018-06-14 Thread 黄祥
thanks for the detail explaination, Anthony. moral of tested other login method: either use auth.settings.login_methods.append(your_choosen_login_method() ) or use auth.settings.login_methods = [your_choosen_login_method() ] # this one to eliminate the default auth method tested work : pam() not

[web2py] Re: Other login methods

2018-06-14 Thread Anthony
> > *email_auth* > 2. models/db.py > from gluon.contrib.login_methods.email_auth import email_auth > auth.settings.login_methods.append( > email_auth("smtp.one.com:587", "@one.com")) > auth.settings.login_methods = [email_auth] > Again, same problem here. This one is tricky because email_auth

[web2py] Re: Other login methods

2018-06-14 Thread Anthony
> > *pam_auth* > 2. models/db.py > auth.define_tables(username=True, signature=False) > from gluon.contrib.login_methods.pam_auth import pam_auth > auth.settings.login_methods.append(pam_auth()) > auth.settings.login_methods = [pam_auth] > Same problem as with basic auth -- the .append() has no e

[web2py] Re: Other login methods

2018-06-14 Thread Anthony
> > *basic_auth* > 2. models/db.py > from gluon.contrib.login_methods.basic_auth import basic_auth > auth.settings.login_methods.append( > basic_auth('https://one.one.com')) > auth.settings.login_methods = [basic_auth] > First, note that the .append() is pointless, as the next line completely

[web2py] Re: Other login methods

2018-06-14 Thread Anthony
> > *gae_google_login* > 2. models/db.py > from gluon.contrib.login_methods.gae_google_login import GaeGoogleAccount > auth.settings.login_form = GaeGoogleAccount() > auth.settings.login_methods = [GaeGoogleAccount] > > Should be gluon.contrib.login_methods.gae_google_account. The book should be

[web2py] Re: Other login methods

2018-06-14 Thread Anthony
> > *basic_auth* > 2. models/db.py > from gluon.contrib.login_methods.basic_auth import basic_auth > auth.settings.login_methods.append( > basic_auth('https://one.one.com')) > auth.settings.login_methods = [basic_auth] > The .append() above is pointless, as the next line completely overwrites

[web2py] Re: Other login methods

2018-06-14 Thread 黄祥
forgot to tell for *email_auth *expected result: can not login because not sure have smtp.one.com:587 and the domain name in configuration is one.com but the tested login using b.com best regards, stifan On Friday, June 15, 2018 at 5:41:57 AM UTC+7, 黄祥 wrote: > > test another login method seem