mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
1) Use OPIE response only when OPIE keys really used
2) Use commonly used OPIE response form instead of self-made one
This commit is contained in:
parent
d9730b8b53
commit
896bddb546
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84146
@ -972,8 +972,11 @@ user(name)
|
|||||||
strncpy(curname, name, sizeof(curname)-1);
|
strncpy(curname, name, sizeof(curname)-1);
|
||||||
#ifdef USE_PAM
|
#ifdef USE_PAM
|
||||||
/* XXX Kluge! The conversation mechanism needs to be fixed. */
|
/* XXX Kluge! The conversation mechanism needs to be fixed. */
|
||||||
opiechallenge(&opiedata, name, opieprompt);
|
if (opiechallenge(&opiedata, name, opieprompt) == 0)
|
||||||
reply(331, "[ %s ] Password required for %s.", opieprompt, name);
|
reply(331, "Response to %s required for %s.",
|
||||||
|
opieprompt, name);
|
||||||
|
else
|
||||||
|
reply(331, "Password required for %s.", name);
|
||||||
#else
|
#else
|
||||||
reply(331, "Password required for %s.", name);
|
reply(331, "Password required for %s.", name);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user