Hello:

mukund wrote,
> I think the problem is in ftpd server (it is BSD) Finally I succeeded
> in login to courier-imap using ldap user via pam (and not authldap)

As long as the PAM stack has been configured correctly for LDAP lookups,
it does not matter what FTP server you are using.

I just did an "apt-get install ftpd" and modified /etc/pam.d/ftp for
LDAP lookups and it works fine! 

What are the contents of /etc/pam.d/ftp? This is what mine looks like:

godzilla:/etc/pam.d# cat ftp 
# Standard behaviour for ftpd(8).
auth    required        pam_listfile.so item=user sense=deny
file=/etc/ftpusers onerr=succeed

# This line is required by ftpd(8).
auth    sufficient      pam_ftp.so

# Uncomment this to achieve what used to be ftpd -A.
#auth   required        pam_listfile.so item=user sense=allow
file=/etc/ftpchroot onerr=fail

# Standard blurb.
auth    sufficient      pam_ldap.so
auth    required        pam_unix_auth.so shadow nullok use_first_pass
auth    required        pam_shells.so
account sufficient      pam_ldap.so
account required        pam_unix_acct.so
session required        pam_unix_session.so
session required        pam_limits.so

IAC, i don't think its a server related problem - your PAM stack must be
incorrectly configured.

-- Shanu

BTW: I recommend that you use RedHat 7.2 for testing pam_ldap as RHL 7.2
supports pam_ldap and nss_ldap out of the box using "authconfig". Take a
look at how RHL does things and it will be very easy to get Debian
hooked up to LDAP. Debian is a pain with LDAP. I had to recompile
openldap2 to support TLS and Sleepy Cat's LDBM. libpam-ldap also does not
do TLS. Only libnss-ldap does TLS by default.

-- 
C-3PO: 
        We seem to be made to suffer. It's our lot in life.

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to