2004-04-07 14:15:11 +04:00
<samba:parameter name= "passwd chat"
context="G"
2007-08-29 19:41:57 +04:00
type="string"
2019-11-05 13:13:30 +03:00
substitution="1"
2005-03-13 01:41:20 +03:00
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
2004-04-07 14:15:11 +04:00
<description >
<para > This string controls the <emphasis > " chat" </emphasis>
conversation that takes places between <citerefentry > <refentrytitle > smbd</refentrytitle>
<manvolnum > 8</manvolnum> </citerefentry> and the local password changing
program to change the user's password. The string describes a
sequence of response-receive pairs that <citerefentry > <refentrytitle > smbd</refentrytitle>
<manvolnum > 8</manvolnum> </citerefentry> uses to determine what to send to the
2005-07-07 01:23:58 +04:00
<smbconfoption name= "passwd program" /> and what to expect back. If the expected output is not
2004-04-07 14:15:11 +04:00
received then the password is not changed.</para>
<para > This chat sequence is often quite site specific, depending
2021-04-21 11:30:56 +03:00
on what local methods are used for password control.</para>
2004-04-07 14:15:11 +04:00
2008-06-11 17:17:21 +04:00
<para > Note that this parameter only is used if the <smbconfoption
2005-07-07 01:23:58 +04:00
name="unix password sync"/> parameter is set to <constant > yes</constant> . This sequence is
2004-04-07 14:15:11 +04:00
then called <emphasis > AS ROOT</emphasis> when the SMB password in the
smbpasswd file is being changed, without access to the old password
cleartext. This means that root must be able to reset the user's password without
2021-04-21 11:30:56 +03:00
knowing the text of the previous password.
2004-04-07 14:15:11 +04:00
</para>
2007-08-29 19:41:57 +04:00
<para > The string can contain the macro <parameter
moreinfo="none">%n</parameter> which is substituted
2019-05-19 12:24:28 +03:00
for the new password. The old password (<parameter
2007-08-29 19:41:57 +04:00
moreinfo="none">%o</parameter> ) is only available when
<smbconfoption name= "encrypt passwords" /> has been disabled.
The chat sequence can also contain the standard macros
\n, \r, \t and \s to give line-feed, carriage-return, tab
and space. The chat sequence string can also contain
a '*' which matches any sequence of characters. Double quotes can
be used to collect strings with spaces in them into a single
string.</para>
2004-04-07 14:15:11 +04:00
<para > If the send string in any part of the chat sequence is a full
stop " ." , then no string is sent. Similarly, if the
expect string is a full stop then no string is expected.</para>
2005-07-07 01:23:58 +04:00
<para > If the <smbconfoption name= "pam password change" /> parameter is set to <constant > yes</constant> , the
chat pairs may be matched in any order, and success is determined by the PAM result, not any particular
2007-06-29 02:15:11 +04:00
output. The \n macro is ignored for PAM conversions.
2004-04-07 14:15:11 +04:00
</para>
</description>
<related > unix password sync</related>
<related > passwd program</related>
<related > passwd chat debug</related>
<related > pam password change</related>
2014-01-08 06:45:34 +04:00
<value type= "default" > *new*password* %n\n *new*password* %n\n *changed*</value>
2007-08-29 19:41:57 +04:00
<value type= "example" > " *Enter NEW password*" %n\n " *Reenter NEW password*" %n\n " *Password changed*" </value>
2004-04-07 14:15:11 +04:00
</samba:parameter>