Hello everybody,
i have a problem with dovecot+Active Directory as Authentication-Service. I am
not able to use special characters (???? (german umlaut)) within a password.
Normally I would suggest that the ldap-query is done in UTF-8 but as I debugged
the auth-process, I have seen that the password is ISO-8859-1 encoded.
The "original" query (from roundcube for example) is UTF-8 encoded (I
dumped the POST-Query).
So far I wasn't able to find my error by myself or by searching the web.
Maybe someone of you can give me a hint :-)
Thanks and greetings from Germany,
Helge
----
dovecot --version
2.0.16
----
D-AS01:/etc/dovecot # grep -v '^ *\(#.*\)\?$' dovecot-ldap.conf.ext
uris = ldap://10.37.5.90
dn = CN=ldap-d-as01,CN=Users,DC=tfh-bochum,DC=de
dnpass = xxxx
auth_bind = yes
ldap_version = 3
base = ou=Benutzer, ou=Lehre, dc=tfh-bochum, dc=de
user_attrs = =uid=10000,=gid=10000,=home=/srv/mail/%Ld/%Ln
user_filter = mail=%u
pass_attrs = =uid=10000,=gid=10000,=home=/srv/mail/%Ld/%Ln
pass_filter = (&(mail=%u)(!(extensionAttribute3=*)))
----
dovecot -n
# 2.0.16: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.37.6-0.11-default x86_64 openSUSE 11.4 (x86_64)
auth_debug = yes
auth_mechanisms = plain login
auth_username_translation = %Lu
auth_verbose = yes
mail_location = maildir:~/Maildir
mail_max_userip_connections = 1000
mail_plugins = quota
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy
include variables body enotify environment mailbox date ihave
namespace {
inbox = yes
list = yes
location prefix = INBOX/
separator = /
subscriptions = yes
type = private
}
namespace {
list = yes
location =
maildir:%%h/Maildir:INDEX=%h/Maildir/shared/%%u:CONTROL=%h/Maildir/shared/%%u
prefix = shared/%%u/
separator = /
subscriptions = yes
type = shared
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
acl = vfile
acl_shared_dict = file:/srv/mail/shared-mailboxes
quota = maildir:Quota
quota_rule = *:storage=1G
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
sieve_max_redirects = 10
}
protocols = imap pop3 sieve lmtp
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
group = vmail
mode = 0770
user = root
}
}
service imap-login {
process_min_avail = 4
service_count = 0
}
service managesieve-login {
inet_listener sieve {
address = *
port = 4190
}
inet_listener sieve_deprecated {
address = *
port = 2000
}
process_min_avail = 2
service_count = 0
}
ssl_ca = </etc/ssl/certs/tfh_dfn_dtag_cacert.pem
ssl_cert =
</etc/ssl/certs/imap.stud.tfh-bochum.de-20110530-cert-302177588.pem
ssl_key = </etc/ssl/private/imap.stud.tfh-bochum.de-20110530.key
userdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
protocol lmtp {
mail_plugins = quota
}
protocol imap {
mail_plugins = quota acl imap_acl imap_quota
}
protocol pop3 {
mail_plugins = quota
}
________________________________
Helge Wiethoff
Medienzentrum
Telefon: +49 (234) 968 8717
Fax: +49 (234) 968 3453
E-Mail: Wiethoff at tfh-bochum.de
Technische Fachhochschule Georg Agricola
f?r Rohstoff, Energie und Umwelt zu Bochum
Staatlich anerkannte Fachhochschule der
DMT-Gesellschaft f?r Lehre und Bildung mbH
Herner Stra?e 45
44787 Bochum
http://www.tfh-bochum.de
________________________________
Tr?ger: DMT-Gesellschaft f?r Lehre und Bildung mbH
Sitz der Gesellschaft: Bochum
Registergericht: Amtsgericht Bochum
Handelsregister: B 4052
Gesch?ftsf?hrung:
Prof. Dr. J?rgen Kretschmann (Vorsitzender)
Manfred Freitag