summaryrefslogtreecommitdiffstats
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/auth.c b/auth.c
index 82fe8f06..d62d8ff2 100644
--- a/auth.c
+++ b/auth.c
@@ -97,7 +97,11 @@ allowed_user(struct passwd * pw)
/* grab passwd field for locked account check */
#ifdef USE_SHADOW
if (spw != NULL)
+#ifdef HAVE_LIBIAF
+ passwd = get_iaf_password(pw);
+#else
passwd = spw->sp_pwdp;
+#endif /* HAVE_LIBIAF */
#else
passwd = pw->pw_passwd;
#endif