+2008-12-18 Thorsten Kukuk <kukuk@thkukuk.de>
+
+ * modules/pam_pwhistory/pam_pwhistory.c (parse_option): Rename
+ type= option to authtok_type= (because of pam_get_authtok).
+ * modules/pam_pwhistory/pam_pwhistory.8.xml: Likewise.
+
2008-12-17 Tomas Mraz <t8m@centrum.cz>
* modules/pam_tty_audit/pam_tty_audit.c (pam_sm_open_session): Do
retry=<replaceable>N</replaceable>
</arg>
<arg choice="opt">
- type=<replaceable>STRING</replaceable>
+ authtok_type=<replaceable>STRING</replaceable>
</arg>
</cmdsynopsis>
<varlistentry>
<term>
- <option>type=<replaceable>STRING</replaceable></option>
+ <option>authtok_type=<replaceable>STRING</replaceable></option>
</term>
<listitem>
<para>
- The default action is for the module to use the
- following prompts when requesting passwords:
- "New UNIX password: " and "Retype UNIX password: ".
- The default word <emphasis>UNIX</emphasis> can
- be replaced with this option.
+ See <citerefentry>
+ <refentrytitle>pam_get_authtok</refentrytitle><manvolnum>3</manvolnum>
+ </citerefentry> for more details.
</para>
</listitem>
</varlistentry>
<citerefentry>
<refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
</citerefentry>
+ <citerefentry>
+ <refentrytitle>pam_get_authtok</refentrytitle><manvolnum>3</manvolnum>
+ </citerefentry>
</para>
</refsect1>
int enforce_for_root;
int remember;
int tries;
- const char *prompt_type;
};
typedef struct options_t options_t;
}
else if (strcasecmp (argv, "enforce_for_root") == 0)
options->enforce_for_root = 1;
- else if (strncasecmp (argv, "type=", 5) == 0)
- options->prompt_type = &argv[5];
+ else if (strncasecmp (argv, "authtok_type=", 13) == 0)
+ { /* ignore, for pam_get_authtok */; }
else
pam_syslog (pamh, LOG_ERR, "pam_pwhistory: unknown option: %s", argv);
}
/* Set some default values, which could be overwritten later. */
options.remember = 10;
options.tries = 1;
- options.prompt_type = "UNIX";
/* Parse parameters for module */
for ( ; argc-- > 0; argv++)