From bede4f4fdae02e77e66fc5472a38543102590c9d Mon Sep 17 00:00:00 2001 From: Just Thomas Misund Date: Thu, 12 Apr 2012 15:37:59 +0200 Subject: [PATCH] Put usersync host in config --- inside/migration/config.example.php | 1 + inside/migration/ldap_api_functions.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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) {