- Change the prompt from "S/Key Password: " to "OPIE Password: "

- If the user doesn't have an OPIE key, don't challenge him.  This is
   a workaround until I get PAM to work properly with ssh2.

Sponsored by:	DARPA, NAI Labs
This commit is contained in:
Dag-Erling Smørgrav 2002-03-20 22:02:02 +00:00
parent 1a00a2a761
commit 3a17de1501
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92832

View File

@ -38,7 +38,7 @@ skey_init_ctx(Authctxt *authctxt)
return authctxt;
}
#define PROMPT "\nS/Key Password: "
#define PROMPT "\nOPIE Password: "
static int
skey_query(void *ctx, char **name, char **infotxt,
@ -49,6 +49,8 @@ skey_query(void *ctx, char **name, char **infotxt,
int len;
struct opie opie;
if (opie_haskey(authctxt->user) != 0)
return -1;
if (opiechallenge(&opie, authctxt->user, challenge) == -1)
return -1;