external authentication - not found error
Hi, i am developing small authentication module on 4.7 + patch allowing authenticating without @domain My module is very simple (code here is little bit condensed): function auth602_help($section = '') { ... } function auth602_info($field = 0) { $info['name'] = '602Office'; $info['protocol'] = 'XML-RPC'; if ($field) { return $info[$field]; } else { return $info; } } function auth602_auth($username, $password, $server) { // authenticate if ($authenticated) { return 1; } else { return 0; } // end of module Everything works, my "Default authentication server" is "xyz.cz", so when user write "someuser", hook_auth() processes someuser@xyz.cz But, after authenticating, user is logged in and Drupal throws error: "Error -404 : not found" I am trying to debug where this message come from (for 3 hours now :(. Is there any way to look up module or function which throwed this error or do anybody know why this error appears? Nothing else is wrong. Just this message. User still authenticated. Thanks, Jakub Suchy http://www.drupal.cz
Hi, one more note: I am not displaying errors to screen, only logging them. Still, the error appears. Strange Jakub
On Wednesday 10 January 2007 07:47, Jakub Suchy wrote:
Hi, one more note: I am not displaying errors to screen, only logging them. Still, the error appears. Strange
Do you use the devel module? http://drupal.org/node/64414 yours, Augustin. -- http://www.wechange.org/ Because we and the world need to change. http://www.reuniting.info/ Intimate Relationships, peace and harmony in the couple.
The HTTP 404 error (document not found) is not a PHP error, so at least on that count if you are trying to log PHP errors and not display them, these kinds of errors will remain unaffected. ..chrisxj
I found the solution. The problem is in drupal_auth() in drupal.module. Because you have authentication service turned on and Drupal XML-RPC server set, it tries to first authenticate against this XML-RPC server which is obviously not found... Jakub
participants (3)
-
Augustin (Beginner) -
Chris Johnson -
Jakub Suchy