auth ldap pam

From: Cai Guo Qiang (morpheus00_at_gmx.net)
Date: 10/16/03

  • Next message: Eric W. Bates: "consequences of migrating to maildir storage system"
    Date: Thu, 16 Oct 2003 09:10:26 +0200
    To: freebsd-isp@freebsd.org
    
    

    hi there,

    i've got a problem with the authentication of pam using ldap. well, it
    kind of works, but it seems that all services work not only those,
    which are configured in pam.d/ .

    example: i configured pam.d/sshd to use the ldap module and all other
    services remained unchanged. now it should be possible
    for a user, who's account is stored in the ldap directory, to log into
    the system over sshd. this worked, but the same user id could
    also log in using services such as ftp or http.

    this should not be possible, because only sshd is supposed to auth
    against ldap directory.

    perhaps you have the same problem and can help me.

    franz

    some configs:

    libnss-ldap.conf bzw. pam_ldap.conf:
    host 192.168.0.1
    base dc=test,dc=com
    ldap_version 3
    rootbinddn cn=root,dc=test,dc=com
    port 389
    scope sub

    nsswitch.conf
    passwd: files ldap
    shadow: files ldap
    group: files ldap

    pam.d/sshd:
    auth required pam_ldap.so
    account required pam_ldap.so
    password required pam_ldap.so
    session required pam_ldap.so

    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Eric W. Bates: "consequences of migrating to maildir storage system"

    Relevant Pages

    • Re: [SLE] SUSe 9.3 and LDAP Docu?
      ... On 5/23/05, Markus Natter wrote: ... >> Yes I got ldap running by following the instructions ... >> yast compatible, or that the security method is not the one that yast ... > other configs correctly.. ...
      (SuSE)
    • Solaris 10 authenticate against Windows 2008 ADS Kerberos and LDAP
      ... It's been suggested that Kerberos be used for authentication and LDAP to ... I've got the Kerberos bit working. ... passwd: files ldap ... # rlogin service (explicit because of pam_rhost_auth) ...
      (SunManagers)
    • Re: nscd is crashing
      ... yeah I am using ldap for authentication. ... passwd: files ldap ... bootparams: nisplus files ...
      (Fedora)
    • RE: pam ldap questions
      ... First, I am new to linux and ldap auth for a system, so with that in mind.... ... things to get it to auto create directories when we ftp in. ... passwd: files ldap ...
      (RedHat)
    • Cannot login as newly created LDAP user
      ... I'm using LDAP for authentication purposes even for the normal Unix ... LDAP server is OpenLDAP 2.3.35, ... now created a new account, and with that account, I cannot login on one ... | passwd: files ldap ...
      (comp.unix.solaris)