Hi there,
I've noticed the login process fails only to new users on my oacs system. I suspect that happens because I'm using a customized registration form.
I've tracked the whole process down, the code execution from the very beginning, at ad_proc "auth::authenticate"
...
array set auth [auth::authenticate -email $username \
-password $password]
api-doc/proc-view?proc=auth%3a%3aauthenticate&source_p=1
to the deepest end, at "ad_proc -public acs_sc::invoke" and lastly "ad_proc -public ad_apply" (the very last one, i guess!).
/api-doc/proc-view?proc=acs_sc%3a%3ainvoke&source_p=1
/api-doc/proc-view?source_p=1&proc=ad_apply&version_id=
...
} {
set func_and_args [concat $func $arglist]
return [uplevel $func_and_args]
}
But I found nothing wrong, meaning no deprecated functions, nor unassigned and empty values . Plus, error.log shows the very same logs on both scenarios: 1. successful login and 2. failed attempt to login.
Furthermore, there's no difference in the registration scripts. I've copied the whole from acs-subsite/lib/user-new.tcl to the new form.
What could I be missing in the investigation, debugging the code?
Logs are below.
1. Failed to login
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: Running evex::ws::auth *******
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: Running ad_proc auth::authenticate *******
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: USERID 16716 *******
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: USERNMAE mailto:iuri@iiziurix.com ******
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: Running ad_proc auth::authentication::Authenticate
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: ************* auth_authentication local GetParameters
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: ACSSC AcsSc.auth_authentication.getparameters.local *******
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: REST
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: OLD VERSION -1 *********
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: ELSE mailto:iuri@iiziurix.com test 5 501 *******
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: ************* auth_authentication local Authenticate
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: ACSSC AcsSc.auth_authentication.authenticate.local mailto:iuri@iiziurix.com test {} 5 *******
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: REST auth_status bad_password auth_message {Nome ou senha inválidos}
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: RRRRRRR auth_status bad_password auth_message {Nome ou senha inválidos}
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: ************* auth_authentication local Authenticate
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: ACSSC AcsSc.auth_authentication.authenticate.local mailto:iuri@iiziurix.com test {} 5 *******
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: REST auth_status bad_password auth_message {Nome ou senha inválidos}
[30/Nov/2017:00:45:15][7582.7f0162ffd700][-conn:evex:9-] Notice: AIGH! something bad happened! Nome ou senha inválidos
2. Failure to login
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: Running evex::ws::auth *******
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: Running ad_proc auth::authenticate *******
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: USERID 698 *******
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: USERNMAE iuri ******
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: Running ad_proc auth::authentication::Authenticate
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: ************* auth_authentication local GetParameters
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: ACSSC AcsSc.auth_authentication.getparameters.local *******
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: REST
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: OLD VERSION -1 *********
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: ELSE iuri jacare 5 501 *******
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: ************* auth_authentication local Authenticate
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: ACSSC AcsSc.auth_authentication.authenticate.local iuri 098764321 {} 5 *******
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: REST account_status ok auth_status ok
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: RRRRRRR account_status ok auth_status ok
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: ************* auth_authentication local Authenticate
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: ACSSC AcsSc.auth_authentication.authenticate.local iuri jacare {} 5 *******
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: REST account_status ok auth_status ok
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: AUTH ok
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: YSEDI 698
[30/Nov/2017:00:45:19][7582.7f0162ffd700][-conn:evex:9-] Notice: im_generate_auto_login: expiry_date=, user_id=698