Minor ldap sync url change
This commit is contained in:
1 parent
669b1325de
commit
0d677bd880
2 files changed
+3
-3
No files matched your search
@@ -2,4 +2,4 @@
|
||||
|
||||
define('ENC_KEY', "lol");
|
||||
define('API_KEY', "lol");
|
||||
define('SYNC_HOST', "usersync.neuf.no");
|
||||
define('SYNC_NEW_USER_URL', "http://localhost:8000/usersync/");
|
||||
@@ -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 script addNewUser.php on SYNC_HOST.
|
||||
* * and send it to the HTTP endpoint SYNC_NEW_USER_URL.
|
||||
* */
|
||||
|
||||
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://".SYNC_HOST."/addNewUser.php?" . implode("&", $arr)), true);
|
||||
$result = var_export(file_get_contents(SYNC_NEW_USER_URL."?" . implode("&", $arr)), true);
|
||||
return $result;
|
||||
}
|
||||
function _log($str) {
|
||||
|
||||
Reference in new issue
Block a user