conditionalize OTP-support

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3689 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-10-29 01:09:58 +00:00
parent 8e5bc083be
commit 28261c3c93
4 changed files with 14 additions and 6 deletions

View File

@@ -133,7 +133,7 @@ pop_pass (POP *p)
p->ipaddr,
p->kdata.pname, p->kdata.pinst, p->kdata.prealm,
p->user);
}
} else
#endif /* KRB4 */
#ifdef KRB5
if (p->version == 5) {
@@ -164,9 +164,12 @@ pop_pass (POP *p)
"Password supplied for \"%s\" is incorrect.",
p->user));
#ifdef OTP
if (otp_verify_user (&p->otp_ctx, p->pop_parm[1]) == 0)
;
else if(p->auth_level != AUTH_NONE)
else
#endif
if(p->auth_level != AUTH_NONE)
return pop_msg(p, POP_FAILURE,
"Password supplied for \"%s\" is incorrect.",
p->user);