2005-01-07 12:54:41 +03:00
<samba:parameter name= "check password script"
context="G"
2015-05-01 00:32:45 +03:00
type="string"
2019-11-04 17:27:43 +03:00
substitution="1"
2005-03-13 01:41:20 +03:00
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
2005-01-07 12:54:41 +03:00
<description >
<para > The name of a program that can be used to check password
2008-06-11 17:15:22 +04:00
complexity. The password is sent to the program's standard input.</para>
2016-04-01 00:10:57 +03:00
2008-06-11 17:15:22 +04:00
<para > The program must return 0 on a good password, or any other value
if the password is bad.
In case the password is considered weak (the program does not return 0) the
2005-01-07 12:54:41 +03:00
user will be notified and the password change will fail.</para>
2016-04-01 00:10:57 +03:00
<para > In Samba AD, this script will be run <emphasis > AS ROOT</emphasis> by
<citerefentry > <refentrytitle > samba</refentrytitle> <manvolnum > 8</manvolnum>
</citerefentry> without any substitutions.</para>
2019-02-04 17:40:16 +03:00
<para > Note that starting with Samba 4.11 the following environment variables are exported to the script:</para>
<itemizedlist >
<listitem > <para >
SAMBA_CPS_ACCOUNT_NAME is always present and contains the sAMAccountName of user,
the is the same as the %u substitutions in the none AD DC case.
</para> </listitem>
<listitem > <para >
SAMBA_CPS_USER_PRINCIPAL_NAME is optional in the AD DC case if the userPrincipalName is present.
</para> </listitem>
<listitem > <para >
SAMBA_CPS_FULL_NAME is optional if the displayName is present.
</para> </listitem>
</itemizedlist>
2008-06-11 17:15:22 +04:00
<para > Note: In the example directory is a sample program called <command moreinfo= "none" > crackcheck</command>
that uses cracklib to check the password quality.</para>
2005-01-07 12:54:41 +03:00
</description>
2013-12-30 02:42:21 +04:00
<value type= "default" > <comment > Disabled</comment> </value>
2009-06-19 17:23:22 +04:00
<value type= "example" > /usr/local/sbin/crackcheck</value>
2005-01-07 12:54:41 +03:00
</samba:parameter>