Browse Source

vtysh: print error if PAM auth does not succeed

Debian QA Group 2 years ago
parent
commit
37b67cbf5c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      vtysh/vtysh_user.c

+ 2 - 0
vtysh/vtysh_user.c

@@ -59,6 +59,8 @@ vtysh_pam (const char *user)
   /* Is user really user? */
   if (ret == PAM_SUCCESS)
     ret = pam_authenticate (pamh, 0);
+  if (ret != PAM_SUCCESS)
+    printf("Not authenticated. Check /etc/pam.d/quagga.\n");
   /* printf ("ret %d\n", ret); */
   
 #if 0