diff --git a/inside/migration/config.example.php b/inside/migration/config.example.php index e2ad0ee..ea023c3 100644 --- a/inside/migration/config.example.php +++ b/inside/migration/config.example.php @@ -2,3 +2,4 @@ define('ENC_KEY', "lol"); define('API_KEY', "lol"); +define('SYNC_HOST', "usersync.neuf.no"); diff --git a/inside/migration/ldap_api_functions.php b/inside/migration/ldap_api_functions.php index 04f303d..6dc3608 100644 --- a/inside/migration/ldap_api_functions.php +++ b/inside/migration/ldap_api_functions.php @@ -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) {