update of investigation...
I encountered a different behavior in %Lu and %L{ldap:uid} when doing
the search with lower cased user.
# doveadm user bl?tula
field value
uid vmail
gid vmail
home /var/data/vmail/private/bl?tula
mail maildir:~/Maildir:LAYOUT=fs:INBOX=~/Maildir/INBOX
spuser private/bl?tula
so in this case. the name gets lowered in the %Lu but not the
%L{ldap:uid} case.
- The user in ldap is all upper case.
- system locale is en_US.UTF-8
log of the above doveadm query:
mail.debug: Jul 29 12:45:28 dovecot: auth: Debug: master in: USER 1
bl?tula service=doveadm
mail.debug: Jul 29 12:45:28 dovecot: auth: Debug: ldap(bl?tula): userdb
cache miss
mail.debug: Jul 29 12:45:28 dovecot: auth: Debug: ldap(bl?tula): user
search: base=ou=users, dc=uma,dc=local scope=subtree
filter=(&(objectClass=inetOrgPerson)(uid=bl?tula)) fields=uid,uid
mail.debug: Jul 29 12:45:28 dovecot: auth: Debug: ldap(bl?tula): result:
uid=BL?TULA; uid unused
mail.debug: Jul 29 12:45:28 dovecot: auth: Debug: ldap(bl?tula): result:
uid=BL?TULA
mail.debug: Jul 29 12:45:28 dovecot: auth: Debug: userdb out: USER 1
bl?tula home=/var/data/vmail/private/bl?tulaspuser=private/bl?tula
On 07/28/2015 05:15 PM, matthias lay wrote:> hi all,
>
> I encountered some problem with lowercasing chars like an "?"
>
> with user_attrs like this:
>
> user_attrs = uid=home=/mail/%Lu, =myvar=%L{ldap:uid}
>
> the ? doesnt get lower cased in both cases
>
>
> # doveadm user BL?TULA
> field value
> user bl?tula
> uid vmail
> gid vmail
> home /mail/bl?tula
> mail maildir:~/Maildir:LAYOUT=fs:INBOX=~/Maildir/INBOX
> myvar bl?tula
>
>
> somebody knows if there a fix for that?
>
>
> Greetz Matze
>