Re: pam_radius fail open?

From: Dag-Erling Smørgrav (des_at_des.no)
Date: 08/22/05

  • Next message: Alexander Leidinger: "RE: Security warning with sshd"
    To: smalone@udallas.edu
    Date: Mon, 22 Aug 2005 14:23:59 +0200
    
    

    "Sean P. Malone" <smalone@udallas.edu> writes:
    > I recently installed pam_radius according to the instructions located
    > at the following address:
    >
    > https://www.freebsd.uwaterloo.ca/twiki/bin/view/Freebsd/PamRadius?shin=print.patern

    why? 5.3 ships with pam_radius(8).

    > However, I'm not sure if I've mistakenly stumbled onto a fail open
    > situation in that I'm fairly new to FreeBSD. Namely, while
    > configuring /etc/pam.conf to validate SSH login credentials via radius
    > against our existing Active Directory, I mistakenly typed the line for
    > ssh as follows: [...]

    I am surprised that editing /etc/pam.conf had any effect at all, since
    /etc/pam.d/sshd takes precedence. Are you running a clean 5.3
    install, or did you upgrade from 4.x?

    And yes, PAM does fail open when no configuration exists. You can
    easily change that by creating /etc/pam.d/default with the following
    contents:

    auth required pam_deny.so
    account required pam_deny.so
    session required pam_deny.so
    password requires pam_deny.so

    or slightly less easily by adding the appropriate check around line
    100 of src/contrib/openpam/lib/openpam_dispatch.c, like NetBSD did:

            if (chain == NULL)
                    RETURNC(PAM_SYSTEM_ERR);

    DES

    -- 
    Dag-Erling Smørgrav - des@des.no
    _______________________________________________
    freebsd-security@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-security
    To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
    

  • Next message: Alexander Leidinger: "RE: Security warning with sshd"

    Relevant Pages

    • Re: XP Home Ed. SP3 access denied error
      ... Your problem is caused by improperly set permissions on the keys that SP3 ... You need to fix the reason for the error message whether you install the ... What is the status of malware detection? ... Malware could easily change the ...
      (microsoft.public.windowsxp.general)
    • Re: Interrupt handler seems not to be called in GNAT 3.15p
      ... The problem is that I can't easily change the development environment ... I tried to install and integrate gcc-4.0.0 in a private area. ...
      (comp.lang.ada)
    • Re: microsoft work
      ... >I have yet to see any OEM computer that comes with works ... >an example of a computer that ships with a separate set ... >or Works suite, ... with a new computer and will often install the software ...
      (microsoft.public.windowsxp.newusers)
    • Re: X2100 or X2200 HDs
      ... The system ships with one processor installed along with the 2GB RAM. ... memory in it's own memory banks, so you can't install the other ... Memory and Hard Drives should be here on Friday to finish the install, ...
      (comp.sys.sun.hardware)
    • Re: Axim X5
      ... The Axim X5 ships with a Pocket PC 2003 Companion CD, ... then it will also install the USB drivers. ... >> It didn't come with the install CD and therefore I can't get ActiveSync ...
      (microsoft.public.pocketpc.activesync)