there seems to be a problem when using the webserver_auth module with php5.

After changing the following line, the problem seems to be resolved.

diff -uNr webserver_auth.module~ webserver_auth.module
--- webserver_auth.module~ 2005-04-29 22:09:25.000000000 +0200
+++ webserver_auth.module 2005-08-19 14:46:35.000000000 +0200
@@ -25,7 +25,7 @@
if (variable_get("user_register", 1) == 1) {
$user_default = array("name" => $account->name, "pass" => "cyan", "init" => db_escape_string($name), "authname_webserver_auth" => $account->name, "status" => 1, "roles" => array(_user_authenticated_id()));
// TODO - the hook_user('register') will fire but only for loaded modules. cold be a problem for sites using page cache and that hook+operation
- $user = user_save("", array_merge($user_default, $account));
+ $user = user_save("", array_merge($user_default, (array) $account));
watchdog("user", "new user: $user->name (webserver_auth)", l(t("edit user"), "admin/user/edit/$user->uid"));
}
}

Comments

moshe weitzman’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)