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

Diff for /src/usr.bin/ssh/auth2.c between version 1.153 and 1.154

version 1.153, 2019/01/19 21:38:24 version 1.154, 2019/01/19 21:41:18
Line 272 
Line 272 
   
         if (authctxt->attempt++ == 0) {          if (authctxt->attempt++ == 0) {
                 /* setup auth context */                  /* setup auth context */
                 authctxt->pw = PRIVSEP(getpwnamallow(user));                  authctxt->pw = PRIVSEP(getpwnamallow(ssh, user));
                 if (authctxt->pw && strcmp(service, "ssh-connection")==0) {                  if (authctxt->pw && strcmp(service, "ssh-connection")==0) {
                         authctxt->valid = 1;                          authctxt->valid = 1;
                         debug2("%s: setting up authctxt for %s",                          debug2("%s: setting up authctxt for %s",
Line 358 
Line 358 
         }          }
   
         /* Log before sending the reply */          /* Log before sending the reply */
         auth_log(authctxt, authenticated, partial, method, submethod);          auth_log(ssh, authenticated, partial, method, submethod);
   
         /* Update information exposed to session */          /* Update information exposed to session */
         if (authenticated || partial)          if (authenticated || partial)
Line 384 
Line 384 
                     (authctxt->attempt > 1 || strcmp(method, "none") != 0))                      (authctxt->attempt > 1 || strcmp(method, "none") != 0))
                         authctxt->failures++;                          authctxt->failures++;
                 if (authctxt->failures >= options.max_authtries)                  if (authctxt->failures >= options.max_authtries)
                         auth_maxtries_exceeded(authctxt);                          auth_maxtries_exceeded(ssh);
                 methods = authmethods_get(authctxt);                  methods = authmethods_get(authctxt);
                 debug3("%s: failure partial=%d next methods=\"%s\"", __func__,                  debug3("%s: failure partial=%d next methods=\"%s\"", __func__,
                     partial, methods);                      partial, methods);

Legend:
Removed from v.1.153  
changed lines
  Added in v.1.154