OpenPAM dynamic module loading not working ?

From: Dominic Marks (dom_at_cus.org.uk)
Date: 07/07/03

  • Next message: Tinderbox: "[-CURRENT tinderbox] failure on sparc64/sparc64"
    Date: Sun, 6 Jul 2003 23:47:53 +0100
    To: freebsd-current@freebsd.org
    
    

    Hey,

    I'm trying to setup authentication against a PostgreSQL Database with
    OpenPAM and pam_pgsql. I have installed the pam_pgsql port and
    configured a few services (samba, pop3) to authenticate against the DB.
    Whenever an authentication request is made I get the following errors
    (regardless of the source service):

    Samba:
    Jul 7 22:22:18 bacon smbd[67333]: in openpam_load_module(): no pam_pgsql.so found
    Jul 7 22:22:18 bacon smbd[67333]: [2003/07/07 22:22:18, 0] passdb/pampass.c:smb_pam_error_handler(71)
    Jul 7 22:22:18 bacon smbd[67333]: smb_pam_error_handler: PAM: Init Failed : failed to load module

    Dovecot:
    Jul 7 22:10:40 bacon dovecot-auth: in openpam_load_module(): no pam_pgsql.so found
    Jul 7 22:10:40 bacon dovecot-auth: PAM: pam_start(example) failed: failed to load module

    I have checked I installed things properly, I also created the link
    although that shouldn't be required (from looking at the source).

    bacon# ls -l /usr/lib/pam_pgsql.so*
    lrwxr-xr-x 1 root wheel 14 Jul 7 21:45 /usr/lib/pam_pgsql.so -> pam_pgsql.so.2
    -r--r--r-- 1 root wheel 14052 Jan 12 10:46 /usr/lib/pam_pgsql.so.2

    The pam.d file I'm using for Samba:

    bacon# cat /etc/pam.d/samba
    #
    # /etc/pam.d/samba
    #

    auth required pam_pgsql.so
    account required pam_pgsql.so
    password required pam_pgsql.so

    I can't find anything wrong in my configuration, but maybe I'm being
    stupid. If someone has any ideas on a resolution, I'd appreciate it.

    Thanks,

    -- 
    Dominic
     <dom at cus.org.uk> <dominic.marks at npl.co.uk>
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Tinderbox: "[-CURRENT tinderbox] failure on sparc64/sparc64"

    Relevant Pages

    • Fixed! Notes for everybody to read...
      ... through LDAP, and smbpasswd; I turned on Kerberos, NIS, and can not get to validate users; I also tried server authentication, User authentication SMBPASSWD, Group authentication, and none seems to work. ... I have read complete chapters of Samba Manual, and still can not get it to work right! ... I am thinking of recompiling Samba...The one I am using is the one supplied with SUSE Linux. ... I am considering developing a configuration manual for beginners. ...
      (comp.protocols.smb)
    • samba share auth
      ... what configuration do i have to do so no authentication and password is ... asked for in a samba share ... heres my setup attached: ...
      (RedHat)
    • RE: samba share auth
      ... Subject: samba share auth ... what configuration do i have to do so no authentication and password is ...
      (RedHat)
    • RE: samba share auth
      ... Subject: samba share auth ... what configuration do i have to do so no authentication and password is ...
      (RedHat)
    • Solaris Security Summary
      ... Administering Security on the Solaris OE ... Configuration control, facility management, and system ... Authentication: The ability to prove who you are. ...
      (comp.unix.solaris)