Put usersync host in config

This commit is contained in:
Just Thomas Misund committed 2012-04-12 15:37:59 +02:00
1 parent 4004fae55f
commit bede4f4fda
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -2,3 +2,4 @@
define('ENC_KEY', "lol");
define('API_KEY', "lol");
define('SYNC_HOST', "usersync.neuf.no");
+2 -2
View File
@@ -2,7 +2,7 @@
require_once('config.php');
/* This file is an example on how you might push users from inside to ldap/radius.
* * Basically, fill an array with the required attributes, get the API_KEY and the encryption key
* * and send it to the file addNewUser.php under brukerinfo.neuf.no.
* * and send it to the script addNewUser.php on SYNC_HOST.
* */
function enc_password($password, $key) {
@@ -51,7 +51,7 @@ function ldap_add_user($username, $firstname, $lastname, $email, $password, $gro
}
/* Send the HTTP request. */
$result = var_export(file_get_contents("http://brukerinfo.neuf.no/addNewUser.php?" . implode("&", $arr)), true);
$result = var_export(file_get_contents("http://".SYNC_HOST."/addNewUser.php?" . implode("&", $arr)), true);
return $result;
}
function _log($str) {