Hey folks,
I have been trying for some time now to set up bincimap to authenticate
against my ldap server without any luck. I know that auth_imap from
qmail-ldap is not designed for use with bincimap so I figured I might be
able to use auth_pop (which apparently doesnt work either). During these
test I have only tried loggin in without encryptions(SLL) and cleartext
passwords.
Now I am at a loss of ideas and seeks help.
What I done so fare:
my start script for bincimap in daemontools
exec 2>&1 \
envdir ./env \
sh -c '
case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac
case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;;
esac
exec \
softlimit ${DATALIMIT+"-d$DATALIMIT"} \
${SOFTLIMIT+"-m$SOFTLIMIT"} \
/usr/local/bin/tcpserver -u 0 -g 0 \
${LOCALNAME+"-l$LOCALNAME"} \
${BACKLOG+"-b$BACKLOG"} \
${CONCURRENCY+"-c$CONCURRENCY"} \
-HDR \
-xtcp.cdb \
-- "${IP-0}" "${PORT-143}" \
/usr/local/bin/bincimap-up \
--logtype=multilog \
--conf=/usr/local/etc/bincimap/bincimap.conf -- \
/var/qmail/bin/auth_pop \
/usr/local/bin/bincimapd
'
my bincimap config file is:
Authentication {
allow plain auth in non ssl = "yes",
auth penalty = 4,
disable starttls = "no"
}
Security {
jail path = "/usr/local/bin/",
jail user = "vmailer",
jail group = "vmailer"
}
Log {
type = "syslog",
environment ip variable = "TCPREMOTEIP"
}
Mailbox {
depot = "Maildir++",
type = "Maildir",
path = "Maildir",
auto create inbox = "yes",
auto subscribe mailboxes = "INBOX",
umask = "077"
}
Session {
idle timeout = 1860,
auth timeout = 60,
transfer timeout = 1200,
transfer buffer size = 1024
}
when I do a telnet 10.0.0.5 143 an try to log in this happens
...
* OK Welcome to Binc IMAP v1.2.3 (c) Copyright 2002, 2003 Andreas Aardal
* Hanssen at 2003-11-25 16:01:44 CET
1 LOGIN
* BAD Syntax error: Expected userid after LOGIN SPACE
1 LOGIN user
* BAD Syntax error: Expected SPACE after LOGIN SPACE userid
1 LOGIN user passwd
Connection closed by foreign host.
As you can see it works fine with error checking my syntax. Only when the
syntax is correct is closes the connection with this log
...
32435 1 [EMAIL PROTECTED]:] Unprivileged stub shutting down - read:0
bytes, wrote:0 bytes.
I have searched the archives with no luck.
I am using version
20031101a of qmail-ldap
1.2.3 of bincimap
0.76 of daemontools
2.0.27 of openldap
on FreeBSD 5.1
I can pop3 fine with a slightly modified version of the run script
supplied with qmail-ldap.
Hope anybody has suggestions on what I am doing wrong. My faith is in
your hands.
Thanks in advance.
--
Morten Grunnet Buhl
fortune: Command not found.