Deploy fixes
This commit is contained in:
1 parent
4ef9b1739a
commit
3e8df79c8c
2 files changed
+3
-2
No files matched your search
@@ -39,8 +39,8 @@ define("RADIUS_MYSQL_HOST", "snes.neuf.no");
|
||||
define("RADIUS_MYSQL_USER", apache_getenv("RADIUS_MYSQL_USER"));
|
||||
define("RADIUS_MYSQL_PASS", apache_getenv("RADIUS_MYSQL_PASS"));
|
||||
|
||||
define("LDAP_ENABLED", false);
|
||||
define("LDAP_SERVER", "macgyver.neuf.no");
|
||||
define("LDAP_ENABLED", true);
|
||||
define("LDAP_SERVER", "pacman.neuf.no");
|
||||
|
||||
$api_keys = array();
|
||||
$api_keys[] = apache_getenv("API_KEY1");
|
||||
|
||||
@@ -67,6 +67,7 @@ function ldap_login($username, $password, $db) {
|
||||
return $legacy_uid;
|
||||
}
|
||||
|
||||
/* TODO exception handling */
|
||||
function ldap_get_user($username_or_email, $db) {
|
||||
if( is_mail($username_or_email) && $db->mailExists($username_or_email) ) {
|
||||
return $db->getUserWithMail($username_or_email);
|
||||
|
||||
Reference in new issue
Block a user