PDA

View Full Version : LDAP module not working and not outputting to syslog


stodge
19th August 2009, 04:32 PM
I added the following to my proftpd.conf file:


LoadModule mod_ldap.c
<IfModule mod_ldap.c>
LDAPServer <address>
LDAPDNInfo "cn=users,dc=****,dc=****,dc=****cn=****?samaccount name" <password>
LDAPDoAuth on "cn=users,dc=****,dc=****,dc=****?samaccountname"
</IfModule>


I know the basic configuration works as I can use it to access ldap via PHP and from the command line.

I restarted the daemon and attempted to login, but I get a 530 error, "no such user". Fair enough - I check the logs but there is no mention anywhere of any debug output from the ldap module. Did I forget to add something to the conf file to make ldap output to the log?

If I run:

proftpd -d 10 -n I see:


proftpd -d 10 -n
- mod_tls/2.1.2: using OpenSSL 0.9.8g 19 Oct 2007
- retrieved UID 99 for user 'nobody'
- retrieved GID 99 for group 'nobody'
- <IfModule>: skipping 'mod_ban.c' section at line 160
- <IfModule>: using 'mod_ldap.c' section at line 185
- <Directory /srv/download/ldap/>: deferring resolution of path


ldap isn't mentioned after this, even when I try to login.

This is on Fedora Core 10. ProFTPd 1.3.1.

Any help appreciated.