On 02/04/15 12:49, Gerald Brandt wrote:
These are the messages in the log file. It looks like I'm not using
the right credentials.
2015-04-02 06:44:49 master: Info: Dovecot v2.2.9 starting up (core
dumps disabled)
2015-04-02 06:44:52 auth: Error: LDAP: binding failed (dn
cn=admin,dc=erlphase,dc=com): Invalid credentials, Simple Bind Failed:
NT_STATUS_LOGON_FAILURE
2015-04-02 06:44:59 auth: Error: LDAP: binding failed (dn
cn=admin,dc=erlphase,dc=com): Invalid credentials, Simple Bind Failed:
NT_STATUS_LOGON_FAILURE
2015-04-02 06:45:05 auth-worker(5304): Error: LDAP: binding failed (dn
cn=admin,dc=erlphase,dc=com): Invalid credentials, Simple Bind Failed:
NT_STATUS_LOGON_FAILURE
2015-04-02 06:45:43 imap-login: Info: Disconnected (auth failed, 1
attempts in 44 secs): user=<johndoe>, method=PLAIN, rip=::1, lip=::1,
secured, session=<I2WVXLwS3wAAAAAAAAAAAAAAAAAAAAAB>
I passed in an admin password when I provisioned the domain, and I
created two users with samba-tool, Administrator and JohnDoe.
Gerald
On 2015-04-02 2:32 AM, Dániel L. wrote:
Hi Gerald,
What do you see in the logs, when trying to login?
Open another terminal and check this:
tail -f /var/log/mail.log | grep dovecot
rgrds,
Daniel
2015-04-02 5:09 GMT+02:00 Gerald Brandt <[email protected]
<mailto:[email protected]>>:
Hi,
I've been following the Openchange 'cookbook' on getting
Sogo/Openchange installed, using the inverse PPA.
I've just completed the Dovecot section, and I can't get Dovecot
to authenticate at all.
# nc localhost 143
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID
ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot (Ubuntu) ready.
1 LOGIN JohnDoe openchange123
1 NO [UNAVAILABLE] Temporary authentication failure.
[ubuntu:2015-04-02 03:00:36]
This is my /etc/dovecot/dovecot.conf file:
# cat /etc/dovecot/dovecot.conf
disable_plaintext_auth = no
log_path = /var/log/dovecot.message
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/var/mail/%u
mail_privileged_group = mail
passdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
passdb {
driver = pam
}
protocols = imap
service auth {
unix_listener auth-master {
group = vmail
mode = 0600
user = vmail
}
unix_listener auth-userdb {
user = vmail
}
user = root
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
userdb {
driver = passwd
}
protocol lda {
hostname = oc.local
log_path = /var/log/dovecot.message
postmaster_address = [email protected]
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
and this is my /etc/dovecot/dovecot-ldap.conf file:
# cat /etc/dovecot/dovecot-ldap.conf
uris = ldap://localhost
dn = cn=administrator,dc=erlphase,dc=com
dnpass = openchange1!
tls = no
ldap_version = 3
base = dc=oc,dc=local
scope = subtree
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid
user_filter = (uid=%u)
pass_attrs = uid=user,userPassword=password
pass_filter = (uid=%u)
Any helpful hints or directions I could look would be appreciated.
Gerald
--
[email protected] <mailto:[email protected]>
https://inverse.ca/sogo/lists
--
Gerald Brandt
Majentis Technologies
204-229-6595
[email protected]
You posted your /etc/dovecot/dovecot-ldap.conf file, this showed that
your login DN is:
dn = cn=administrator,dc=erlphase,dc=com
The portion of your log shows:
Error: LDAP: binding failed (dn cn=admin,dc=erlphase,dc=com): Invalid
credentials
Are you trying to bind with 'cn=admin' as shown in the log, or with
'cn=administrator' ?
Your 'dovecot-ldap.conf' also shows your search base as:
base = dc=oc,dc=local
er, thats different from 'dc=erlphase,dc=com'
finally, did you really create ' Administrator' with samba-tool ?
Rowland
--
[email protected]
https://inverse.ca/sogo/lists