diff options
Diffstat (limited to 'libexec/rshd/rshd.c')
-rw-r--r-- | libexec/rshd/rshd.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index 374d137..27f992e 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -113,9 +113,6 @@ int local_domain __P((char *)); char *topdomain __P((char *)); void usage __P((void)); -#ifndef NO_PAM -extern int auth_pam __P((char *)); -#endif #define OPTIONS "alnDL" @@ -216,7 +213,6 @@ doit(fromp) char fromhost[2 * MAXHOSTNAMELEN + 1]; char numericname[INET6_ADDRSTRLEN]; int af = fromp->su_family, err; - int retval; #ifdef CRYPT int rc; int pv1[2], pv2[2]; @@ -382,20 +378,6 @@ doit(fromp) pwd->pw_dir = "/"; } -#ifndef NO_PAM - retval = auth_pam(locuser); - - if (retval) { - if (retval == -1) { - syslog(LOG_ERR,"PAM authentication failed"); - } - else { - syslog(LOG_ERR, - "User %s failed PAM authentication", locuser); - exit(1); - } - } -#endif if (errorstr || (pwd->pw_expire && time(NULL) >= pwd->pw_expire) || |