/[shishi]/inetutils/rlogind/rlogind.c
ViewVC logotype

Diff of /inetutils/rlogind/rlogind.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by npo, Thu Sep 25 11:31:28 2003 UTC revision 1.9 by npo, Mon Sep 29 09:41:27 2003 UTC
# Line 1038  do_shishi_login (int infd, struct auth_d Line 1038  do_shishi_login (int infd, struct auth_d
1038    size_t socklen;        size_t socklen;    
1039        
1040  #ifdef ENCRYPTION    #ifdef ENCRYPTION  
1041    rc = get_auth (infd, &ad->h, &ad->enckey, err_msg, &ad->protocol,    rc = get_auth (infd, &ad->h, &ad->ap, &ad->enckey, err_msg, &ad->protocol,
1042                   &cksumtype, cksum, &cksumlen);                   &cksumtype, cksum, &cksumlen);
1043  #else  #else
1044    rc = get_auth (infd, &ad->h, NULL, err_msg, &ad->protocol,    rc = get_auth (infd, &ad->h, &ad->ap, NULL, err_msg, &ad->protocol,
1045                   &cksumtype, cksum, &cksumlen);                   &cksumtype, cksum, &cksumlen);
1046  #endif  #endif
1047    if (rc != SHISHI_OK)    if (rc != SHISHI_OK)
# Line 1123  do_shishi_login (int infd, struct auth_d Line 1123  do_shishi_login (int infd, struct auth_d
1123            ad->lusername, ad->hostname);            ad->lusername, ad->hostname);
1124        
1125    */    */
1126      
1127      free (pwd);
1128      
1129    syslog (LOG_INFO | LOG_AUTH,    syslog (LOG_INFO | LOG_AUTH,
1130            "Kerberos V login from %s on %s\n",            "Kerberos V login from %s on %s\n",
1131            ad->lusername, ad->hostname);            ad->lusername, ad->hostname);
# Line 1147  do_shishi_login (int infd, struct auth_d Line 1149  do_shishi_login (int infd, struct auth_d
1149        free (compcksum);        free (compcksum);
1150        return 1;        return 1;
1151      }      }
1152      
   free (pwd);  
1153    free (compcksum);    free (compcksum);
1154          
1155      rc = shishi_authorized_p (ad->h, shishi_ap_tkt (ad->ap), ad->lusername);
1156      if (!rc)
1157        {
1158          syslog (LOG_ERR, "User is not authorized to log in as: %s", ad->lusername);
1159          shishi_ap_done (ad->ap);
1160          return 1;
1161        }
1162    
1163      shishi_ap_done (ad->ap);
1164    
1165    return SHISHI_OK;    return SHISHI_OK;
1166  }  }
1167  #endif  #endif

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26