From 191ccc97f813079383a91aa1a9370a7d89731e33 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 13 Aug 2013 18:22:03 +0000 Subject: [PATCH] support custom scripts in user self registration --- lam/HISTORY | 1 + lam/docs/devel/upgrade.htm | 7 +++++++ lam/lib/baseModule.inc | 6 ++++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lam/HISTORY b/lam/HISTORY index 91c5dcaf..fb1c936a 100644 --- a/lam/HISTORY +++ b/lam/HISTORY @@ -3,6 +3,7 @@ September 2013 4.3 - LAM Pro: -> PPolicy: check password history for password reuse -> Custom fields: read-only fields for admin interface and file upload for binary data + -> Custom scripts: support user self registration -> Password self reset: Samba 3 sync, identification with login attribute, Samba 4 support - fixed bugs: -> Custom fields: auto-adding object classes via profile editor fixed diff --git a/lam/docs/devel/upgrade.htm b/lam/docs/devel/upgrade.htm index f1749486..aa14ad4a 100644 --- a/lam/docs/devel/upgrade.htm +++ b/lam/docs/devel/upgrade.htm @@ -19,6 +19,7 @@ + @@ -39,6 +40,12 @@ This is a list of API changes for all LAM releases.

4.2 -> 4.3

Ldap::new_rand() was replaced by getRandomNumber() in lib/account.inc.
+Module interface:
+ +

4.1 -> 4.2

New meta HTML classes: htmlEqualHeight, htmlAccordion
diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc index 51c944af..35e57bd5 100644 --- a/lam/lib/baseModule.inc +++ b/lam/lib/baseModule.inc @@ -1535,20 +1535,22 @@ abstract class baseModule { * * An error message should be printed if the function returns false. * + * @param boolean $newAccount is new account or existing one * @param array $attributes LDAP attributes of this entry * @return boolean true, if no problems occured */ - public function preModifySelfService($attributes) { + public function preModifySelfService($newAccount, $attributes) { return true; } /** * Allows the module to run commands after the LDAP entry is changed or created. * + * @param boolean $newAccount is new account or existing one * @param array $attributes LDAP attributes of this entry * @return boolean true, if no problems occured */ - public function postModifySelfService($attributes) { + public function postModifySelfService($newAccount, $attributes) { return true; }