[Dovecot] How to get effective user information (was Re: question on "doveadm user" and pass/userdb)

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Wed Jan 9 17:06:18 EET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 9 Jan 2013, Timo Sirainen wrote:

>> Is there a way to get the "effective" information about an user with all default values? For instance, I get:
>>
>> # /usr/local/dovecot-2.1.12/bin/doveadm user  dvtest1
>> userdb: dvtest1
>>  home      : /home/dvtest1
>>  quota_rule: *:bytes=7721225472
>>  quota_rule2: Trash:bytes=+7745728
>> # /usr/local/dovecot-2.1.12/bin/doveadm user -m dvtest1
>> field   value
>> uid     vmail
>> gid     vmail
>> home    /home/dvtest1
>> mail
>>
>> dvtest1 has quota_rule and quota_rule2 in LDAP, dvtest2 has not, but defaults are shown. Neither of them shows the default mail_location in "user -m", but the default uid/gid vmail/vmail. Using IMAP a.s.o. both users work correctly.
>
> v2.2 does it by default:
>
> #  doveadm user tss
> field	value
> uid	1000
> gid	1000
> home	/home/tss
> mail	mdbox:~/mdbox
> mail_replica	ssh:foo

Ah, that works.

The doveadm server socket does not provide the "user" command neiter in
Dovecot v2.1 nor v2.2, does it?

Is it only because, doveadm_register_auth_commands() is never called, or 
would the "user" command not work in the doveadm server, but in the 
doveadm program only? I already query the doveadm socket for the quota 
information and it would make the script easier to get the user 
information the same way.

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUO2HamoxLS8a3A9mAQLd/gf7B/cqFDUslt1skhvPhTYbh0vUgqNfFRPH
B9dvlKS6o0mH83Jfmoghq74IxCG6zB2dq0lCFQUVpMb+X2HLHVnPAye2AYBYGxji
S+YnWaU8i45ooiXoJyY3C19/o/YENRDC5IjLZgFIBMLbWkSbMPIOgE0Tk2H1r3hv
vf1kr7QSUs5fMPNlWLi99MQcG/yHByU8BC/51nvy52Twc0O+dWKDvqPzyiETKXut
BA3qTtqTyJdpILJ9QFTbfZIxeoB9sqb9fODyWa3NQQeebKyG8wAYnO4hsFtZT6Sg
d/1ZOGgeE73DOvjtTQ1pHSfxp2/evOe5V2q+AKYasIF0iNVF57KenQ==
=7qv2
-----END PGP SIGNATURE-----



More information about the dovecot mailing list