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. |

| Subject: | openssh usePAM publickey and pam_filter issue |
|---|---|
| Date: | Wed, 30 Aug 2006 16:31:57 +0200 |
Hello,
Im working on a simple network with a LDAP server and some clients. Ive
configured host based authentication based on pam_filter.
Im using 4.3p2 version on server and clients with
[...]
ChallengeResponseAuthentication no
UsePrivilegeSeparation yes
RSAAuthentication yes
PubkeyAuthentication yes
# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes
#UseLogin no
UsePAM yes
[...]
I can choose the hosts a unix user have access to by adding the "accessto"
attribute.
In every client, I have the next entry on pam_ldap.conf
pam_filter objectclass=posixAccount)(|(trustmodel=fullaccess)
(accessto=serverhostname).
It works using ssh connections with password mechanism, gdm or just login.
But Ive created a public key pair with ssh-keygen, and I can log in all the
clients ($HOME throw NFS) although my user has no "accessto" attribute for
these hosts.
My pam configuration:
# /etc/pam.d/common-account - authorization settings common to all services
account [success=1 default=ignore] pam_unix.so
account required pam_ldap.so
account required pam_permit.so
# /etc/pam.d/common-auth - authentication settings common to all services
auth [success=1 default=ignore] pam_unix.so
auth required pam_ldap.so use_first_pass
auth required pam_permit.so
# /etc/pam.d/common-password - password-related modules common to all services
password required pam_cracklib.so retry=3 minlen=6 difok=3
password [success=1 default=ignore] pam_unix.so use_authtok md5
password required pam_ldap.so use_first_pass use_authtok md5
password required pam_permit.so
# /etc/pam.d/common-session - session-related modules common to all services
session required pam_unix.so
is this a ssh and PAM integration configuration problem?
Thanks in advance
Enrique
--
Enrique de la Torre Gordaliza
Departamento de Arquitectura de Computadores y Automática
Desp. 220A, Facultad CC. Físicas, Univ. Complutense de Madrid
Tlfn: 91 394 4389
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Need some education: Man-in-the-Middle Attacks, Christ, Bryan |
|---|---|
| Next by Date: | Re: Need some education: Man-in-the-Middle Attacks, Mark Senior |
| Previous by Thread: | Need some education: Man-in-the-Middle Attacks, Christ, Bryan |
| Next by Thread: | Re: openssh usePAM publickey and pam_filter issue, Benjamin Donnachie |
| Indexes: | [Date] [Thread] [Top] [All Lists] |