From 3a726a34e9d06f7820e2fa785e5201bd51b14b59 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Mon, 3 Aug 2015 14:14:25 +0200 Subject: [PATCH] Re-add pushing to internal systems (krb5, radius) --- inside/ActionParser.php | 2 +- snapporder/activate.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/inside/ActionParser.php b/inside/ActionParser.php index 9cab726..37fb85a 100644 --- a/inside/ActionParser.php +++ b/inside/ActionParser.php @@ -853,7 +853,7 @@ public function _logIn() { if ($user->id != -1) { if ($user->store()) { - /* Push the user to LDAP (nikolark) */ + /* Continue pushing all users to internal systems (kerberos and radius). */ $migrated = ldap_add_user($user->username, $user->firstname, $user->lastname, $user->email, $user->password, Array('dns-alle')); _log($migrated); set_migrated($user->id); diff --git a/snapporder/activate.php b/snapporder/activate.php index 406b2fc..6c2545e 100644 --- a/snapporder/activate.php +++ b/snapporder/activate.php @@ -75,6 +75,11 @@ if( isset($_POST['submit']) ) { // persist save_activation_form($data); + // Push the user to internal systems (kerberos, radius) + $migrated = ldap_add_user($data['username'], $data['firstname'], $data['lastname'], $data['email'], $data['password'], array('dns-alle')); + _log($migrated); + set_migrated($data['userid']); + // send warm and fuzzy welcome email send_confirmation_email($data, $user);