[BACK]Return to auth-passwd.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/auth-passwd.c between version 1.18.2.4 and 1.18.2.5

version 1.18.2.4, 2001/05/07 21:09:25 version 1.18.2.5, 2001/09/27 00:15:41
Line 64 
Line 64 
                 return 0;                  return 0;
         if (*password == '\0' && options.permit_empty_passwd == 0)          if (*password == '\0' && options.permit_empty_passwd == 0)
                 return 0;                  return 0;
 #ifdef BSD_AUTH  #ifdef KRB5
         if (auth_userokay(pw->pw_name, authctxt->style, "auth-ssh",          if (options.kerberos_authentication == 1) {
             (char *)password) == 0)                  int ret = auth_krb5_password(authctxt, password);
                 return 0;                  if (ret == 1 || ret == 0)
         else                          return ret;
                 return 1;                  /* Fall back to ordinary passwd authentication. */
           }
 #endif  #endif
   
 #ifdef KRB4  #ifdef KRB4
         if (options.kerberos_authentication == 1) {          if (options.kerberos_authentication == 1) {
                 int ret = auth_krb4_password(pw, password);                  int ret = auth_krb4_password(authctxt, password);
                 if (ret == 1 || ret == 0)                  if (ret == 1 || ret == 0)
                         return ret;                          return ret;
                 /* Fall back to ordinary passwd authentication. */                  /* Fall back to ordinary passwd authentication. */
         }          }
 #endif  #endif
   #ifdef BSD_AUTH
           if (auth_userokay(pw->pw_name, authctxt->style, "auth-ssh",
               (char *)password) == 0)
                   return 0;
           else
                   return 1;
   #endif
         /* Check for users with no password. */          /* Check for users with no password. */
         if (strcmp(password, "") == 0 && strcmp(pw->pw_passwd, "") == 0)          if (strcmp(password, "") == 0 && strcmp(pw->pw_passwd, "") == 0)
                 return 1;                  return 1;

Legend:
Removed from v.1.18.2.4  
changed lines
  Added in v.1.18.2.5