Hi Frank, thanks for your quick answer!
On Sun, 03.01.2010 at 20:21:10 +0100, Frank Denis <obsd-po...@pureftpd.org> wrote: > Le Sun, Jan 03, 2010 at 06:26:24PM +0100, Toni Mueller ecrivait : > > The problem: After upgrading from 4.4 and 4.5, I cannot log in to any > > account on any of my FTP servers anymore because the passwords are > > rejected. > > Unfortunately, the OpenLDAP log messages are just as unbearable as the > code :) > > But it looks like the query returns no matches. It said "nentries=1" in the debug log, and repeating the exercise on the console with ldapsearch yields exactly the one entry that pure-ftpd would have required, for the two accounts that I tried. But in the OpenLDAP log, it says something about an "ber_get_next on fd 13 failed errno=0 (Undefined error: 0)" (near the end of the logs I pasted), whereas on the console, I get "result: 0 Success". I verified with ktrace that pure-ftpd gets the result it should be getting. > There were some changes in the pureftpd-ldap.conf file in order to support > new features (TLS and ability to authenticate through binding). I've now installed this package on the one machine where I also successfully queried the LDAP database (I didn't try on other hosts): > ftp://ftp.spline.de/pub/OpenBSD/4.6/packages/amd64/pure-ftpd-1.0.22-ldap.tgz But the behaviour didn't change. > Try to compare the /usr/local/share/example/pure-ftpd/pureftpd-ldap.conf > file with the one you are using. My pure-ftpd config file is empty, and I set all options on the command line like this (in my 'run' script): exec /usr/local/sbin/pure-ftpd -1 -4 -a 20 -C 4 -D -E -H -j -k 90 -T 500 -l ldap:/etc/pure-ftpd/db/ldap.conf -m 5 -O stats:/var/log/pure-ftpd/traffic.log -u 2000 -y 4:0 -Z -Y 1 -d -d -d > Also try to issue some queries using ldapsearch, with exactly the same > credentials. This was successful. I now reinstalled openldap-client, pure-ftpd, and a number of other stuff, but without any success. What gives? -- Kind regards, --Toni++