389ds password mail job

This commit is contained in:
Roland Gruber 2016-07-23 10:46:50 +02:00
parent d6365d3c1d
commit ce3d5930be
6 changed files with 98 additions and 19 deletions

View File

@ -2,7 +2,10 @@ September 2016
- Windows: allow to show effective members of a group
- LAM Pro:
-> Group of names/members + roles: allow to show effective members of a group
-> Cron jobs: Move or delete expired accounts (Shadow, Windows, qmail, FreeRadius)
-> Cron jobs:
* Move or delete expired accounts (Shadow, Windows, qmail, FreeRadius)
* 389ds: added job to notify before password expires
-> 389ds: manage password expiration time with module "Account locking"
21.06.2016 5.4

View File

@ -2131,6 +2131,99 @@ mysql> GRANT ALL PRIVILEGES ON lam_cron.* TO 'lam_cron'@'localhost';
"2016-12-31".</para>
</section>
<section>
<title>389ds: Notify users about password expiration</title>
<para>This will send your users an email reminder before their
password expires.</para>
<para>You need to activate the Account Locking module for users to
be able to add this job. The job can be added multiple times (e.g.
to send a second warning at a later time).</para>
<para>LAM calculates the expiration date based on the attribute
passwordExpirationTime.</para>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="images/jobs_389dsPasswordMail1.png" />
</imageobject>
</mediaobject>
</screenshot>
<para><table>
<title>Options</title>
<tgroup cols="2">
<tbody>
<row>
<entry><emphasis role="bold">Option</emphasis></entry>
<entry><emphasis
role="bold">Description</emphasis></entry>
</row>
<row>
<entry>From address</entry>
<entry>The email address to set as FROM.</entry>
</row>
<row>
<entry>Reply-to address</entry>
<entry>Optional Reply-to address for email.</entry>
</row>
<row>
<entry>CC address</entry>
<entry>Optional CC mail address.</entry>
</row>
<row>
<entry>BCC address</entry>
<entry>Optional BCC mail address.</entry>
</row>
<row>
<entry>Subject</entry>
<entry>The email subject line. Supports wildcards, see
below.</entry>
</row>
<row>
<entry>Text</entry>
<entry>The email body text. Supports wildcards, see
below.</entry>
</row>
<row>
<entry>Notification period</entry>
<entry>Number of days to notify before password
expires.</entry>
</row>
</tbody>
</tgroup>
</table></para>
<para>Wildcards:</para>
<para>You can enter LDAP attributes as wildcards in the form
@@ATTRIBUTE_NAME@@. E.g. to add the user's common name use "@@cn@@".
For the common name it would be "@@cn@@".</para>
<para>There are also two special wildcards for the expiration date.
@@EXPIRE_DATE_DDMMYYYY@@ will print the date as e.g. "31.12.2016".
@@EXPIRE_DATE_YYYYMMDD@@ will print the date as e.g.
"2016-12-31".</para>
</section>
<section>
<title>Shadow: Notify users about password expiration</title>

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -320,6 +320,7 @@ $helpArray = array (
"Headline" => _('Text'),
"Text" => _('The mail text of all mails.') .
_('You can use wildcards for LDAP attributes in the form @@attribute@@ (e.g. @@uid@@ for the user name).')
. ' ' . _('The expiration date can be added with @@EXPIRE_DATE_DDMMYYYY@@ or @@EXPIRE_DATE_YYYYMMDD@@.')
),
'804' => array(
"Headline" => _('Notification period'),

View File

@ -800,15 +800,6 @@ if (interface_exists('\LAM\JOB\Job', false)) {
return _('Shadow') . ': ' . _('Notify users about password expiration');
}
/**
* Returns the description of the job.
*
* @return String description
*/
public function getDescription() {
return _('This job sends out emails to inform your users that their passwords will expire soon.');
}
/**
* Searches for users in LDAP.
*

View File

@ -3174,15 +3174,6 @@ if (interface_exists('\LAM\JOB\Job', false)) {
return _('Windows') . ': ' . _('Notify users about password expiration');
}
/**
* Returns the description of the job.
*
* @return String description
*/
public function getDescription() {
return _('This job sends out emails to inform your users that their passwords will expire soon.');
}
/**
* Returns a list of password policy options. The options are later passed to function checkSingleUser().
* This reads the password policy to calculate expiration times later. Maxpwdage is the maximum amount of