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
$ 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
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
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
>
> 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 -
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
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
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
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
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
>
> *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
>
> *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
>
> *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
>
> *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
>
> *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
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
16 matches
Mail list logo