lemonldap-ng/build/lemonldap-ng/doc/4.9-Reset-password-by-mail.html
Clément Oudot 34ea9bacd1 Doc: add DBI
2010-03-22 14:41:35 +00:00

131 lines
3.8 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.9-Reset-password-by-mail.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<style type="text/css">
/*<![CDATA[*/
body{
background: #ddd;
font-family: sans-serif;
font-size: 11pt;
padding: 0 50px;
}
div.main-content{
padding: 10px;
background: #fff;
border: 2px #ccc solid;
}
a{
text-decoration: none;
}
p.footer{
text-align: center;
margin: 5px 0 0 0;
}
.heading-1{
text-align: center;
color: orange;
font-variant: small-caps;
font-size: 20pt;
}
.heading-1-1{
color: orange;
font-size: 14pt;
border-bottom: 2px #ccc solid;
}
pre{
background: #eee;
border: 2px #ccc solid;
padding: 5px;
border-left: 10px #ccc solid;
}
ul.star li{
list-style-type: square;
}
/*]]>*/
</style>
</head>
<body>
<div class="main-content">
<h2 class="heading-1"><span id="HResetpassword">Reset password</span></h2>
<p class="paragraph"></p>
<ul>
<li><a href="#HPresentation">Presentation</a></li>
<li><a href="#HConfiguration">Configuration</a></li>
<li><a href="#HSeealso">See also</a></li>
</ul><strong class="strong">Version &gt;= 0.9.4</strong>
<h3 class="heading-1-1"><span id="HPresentation">Presentation</span></h3>
<p class="paragraph"></p>The portal displays a form where the user can
enter his mail address to reset his password. The mail will be search in
userDB (for example the LDAP directory) and if the user is found, the
password will be overwritten with a new one. The new password is sent by
mail.
<p class="paragraph"></p>If passwordDB is LDAP, and password policy is
activated, the flag pwdReset is set to TRUE, so that the user is forced to
change his password on next connection (require pwdMustChange true value
in user's ppolicy).
<h3 class="heading-1-1"><span id=
"HConfiguration">Configuration</span></h3>
<p class="paragraph"></p>You can configure the mail:
<ul class="star">
<li>SMTPServer: IP or hostname of the SMTP server (default:
localhost)</li>
<li>mailFrom: address seen in the "From" field (default:
noreply@domain)</li>
<li>mailSubject: subject (default: Change password request)</li>
<li>mailBody: body, you can use $password and all exported attributes
here (default: Your new password is $password)</li>
<li>randomPasswordRegexp: regular expression used to generate the
password (default: [A-Z]{3}[a-z]{5}.\d{2})</li>
</ul>If you use PasswordDBLDAP:
<ul class="star">
<li>mailLDAPFilter: filter to get the user (default:
'(&amp;(mail=$mail)(objectClass=inetOrgPerson))')</li>
<li>ldapPpolicyControl: activate password policy (default: 0)</li>
</ul>Example of custom mail body:
<div class="code">
<pre>
mailBody =&gt; 'Hello $cn,<br /><br />You request a <span class=
"java-keyword">new</span> password. Your <span class=
"java-keyword">new</span> password is $password.<br /><br />Thank you,<br /><br />The security team.',
</pre>
</div>
<h3 class="heading-1-1"><span id="HSeealso">See also</span></h3>
<ul class="star">
<li><span class="wikilink"><a href=
"4.1-Configuration-parameter-list.html">Config Parameter
List</a></span></li>
</ul>
</div>
<p class="footer"><a href="index.html">Index</a></p>
</body>
</html>