From 2ead13206a8ee698b1ea143c0780f6a13eff5e99 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 29 Aug 2010 16:02:51 +0000 Subject: [PATCH] added LAM Pro mail settings --- lam/config/lam.conf_sample | 6 +++ lam/help/help.inc | 15 +++--- lam/lib/config.inc | 82 +++++++++++++++++++++++++++-- lam/templates/config/confmain.php | 86 +++++++++++++++++++------------ 4 files changed, 147 insertions(+), 42 deletions(-) diff --git a/lam/config/lam.conf_sample b/lam/config/lam.conf_sample index 72667812..7ffed9ce 100644 --- a/lam/config/lam.conf_sample +++ b/lam/config/lam.conf_sample @@ -68,3 +68,9 @@ types: suffix_smbDomain: dc=my-domain,dc=com types: attr_smbDomain: sambaDomainName:Domain name;sambaSID:Domain SID types: modules_smbDomain: sambaDomain +# Password mail subject +lamProMailSubject: Your password was reset + +# Password mail text +lamProMailText: Dear @@givenName@@ @@sn@@,+::++::+your password was reset to: @@newPassword@@+::++::++::+Best regards+::++::+deskside support+::+ + diff --git a/lam/help/help.inc b/lam/help/help.inc index 5cfeaed1..b091ccd5 100644 --- a/lam/help/help.inc +++ b/lam/help/help.inc @@ -45,10 +45,7 @@ for ($i = 0; $i < sizeof($types); $i++) { } $helpArray = array ( - // 0 - 99 - // any developer // 200 - 299 - // Roland Gruber // configuration wizard // configuration login // config profile management @@ -147,7 +144,6 @@ $helpArray = array ( "250" => array ("Headline" => _("Filter"), "Text" => _("Here you can input simple filter expressions (e.g. 'value' or 'v*'). The filter is case-sensitive.")), // 300 - 399 - // Roland Gruber // profile editor, file upload "301" => array ("Headline" => _("RDN identifier"), "Text" => _("This is the identifier for the relative DN value. It must be one of the given allowed LDAP attributes (e.g. user accounts usually use \"uid\" while groups use \"cn\").")), @@ -164,7 +160,6 @@ $helpArray = array ( "404" => array ("Headline" => _("Password"), "Text" => _("Please enter the password which you want to set for this account. You may also generate a random password (12 characters) which will be displayed on your screen.")), // 500 - 599 - // Roland Gruber // LAM Pro "501" => array ("Headline" => _("LDAP suffix"), "Text" => _("LAM will search for accounts in this part of the LDAP tree.")), @@ -194,8 +189,16 @@ $helpArray = array ( '
  • ' . _('All following lines form the mail body.') . '
  • ' . '
  • ' . _('You can use wildcards for LDAP attributes in the form @@attribute@@ (e.g. @@uid@@ for the user name).') . '
  • ' . '
  • ' . _('The wildcard for the new password is @@newPassword@@.') . '
  • '), + "550" => array ("Headline" => _("From address"), + "Text" => _("This email address will be set as sender address of all password mails. If empty the system default (php.ini) will be used.")), + "551" => array ("Headline" => _("Subject"), + "Text" => _('The subject of all password mails. If empty the first line of "config/passwordMailTemplate.txt" will be used.')), + "552" => array ("Headline" => _("Text"), + "Text" => _('The mail text of all password mails. If empty the content of "config/passwordMailTemplate.txt" starting at the second line will be used.') . + '

    ' . _('Format') . ':