projects
/
racktables
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4e9e2a
)
r2784 - authenticate(): lookup admin userid in correct place
author
Denis Ovsienko
<infrastation@yandex.ru>
Wed, 20 May 2009 16:56:24 +0000
(16:56 +0000)
committer
Denis Ovsienko
<infrastation@yandex.ru>
Wed, 20 May 2009 16:56:24 +0000
(16:56 +0000)
inc/auth.php
patch
|
blob
|
blame
|
history
diff --git
a/inc/auth.php
b/inc/auth.php
index 77865fe405ffe65bbc272d78133fbd9b06093e8e..87cfb57644738088cc9d1bce4e1e2dd3d6cb3f09 100644
(file)
--- a/
inc/auth.php
+++ b/
inc/auth.php
@@
-68,7
+68,7
@@
function authenticate ()
case ('httpd' == $user_auth_src):
return;
// When using LDAP, leave a mean to fix things. Admin user is always authenticated locally.
- case ('database' == $user_auth_src or $
remote_userid
== 1):
+ case ('database' == $user_auth_src or $
userinfo['user_id']
== 1):
if (authenticated_via_database ($userinfo, $_SERVER['PHP_AUTH_PW']))
return;
break;