Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: Tacacs and OpenSSH

Subject: Re: Tacacs and OpenSSH
Date: Wed, 2 Aug 2006 17:10:41 +0530
On 8/1/06, Gary Schlachter <Gary.Schlachter@tavve.com> wrote:
Thank you for your reply.  The PAM is getting called which in turn
contacts the TACACS server.  However, my problem is that OpenSSH is
authenticating the user against /etc/passwd instead of letting the user
be authenticated by the TACACS server.  I am looking for a way to
configure SSH to stop the /etc/passwd authentication.  When the user is
in /etc/passwd a but does not have a local password and is defined on
the TACACS server, TACACS authenticates the user correctly.   I am
looking for a way to not have to configure the same user id on both the
TACACS server and the local system.
BTW, I am the PAM developer.

hey,

You will see in /etc/pam.d/sshd(on redhat) following lines

auth       required     pam_stack.so service=system-auth
auth       required     pam_nologin.so
account    required     pam_stack.so service=system-auth
password   required     pam_stack.so service=system-auth
session    required     pam_stack.so service=system-auth

and in /etc/pam.d/login you will see these lines

auth       required     pam_securetty.so
auth       required     pam_stack.so service=system-auth
auth       required     pam_nologin.so
account    required     pam_stack.so service=system-auth
password   required     pam_stack.so service=system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_stack.so service=system-auth
session    optional     pam_console.so
# pam_selinux.so open should be the last session rule
session    required     pam_selinux.so multiple open


/etc/pam.d/login is used when you want to login into the system and it also depends what type of authentication is there on your system by default /etc/passwd (with shadow)

so you have to change the settings in /etc/pam.d/sshd to make it work
with TACACS server.

Regards

Ankush Grover
~
~
~
~

<Prev in Thread] Current Thread [Next in Thread>