Re: [Dovecot] Global fields for passwd-file database

2011-05-22 Thread Sergey Urushkin
21.05.2011 19:59, Timo Sirainen wrote:
> I guess a generic implementation could be added:
At least several people are waiting for it.
> passdb {
>   # overridden by passdb entries
>   extra_fields_defaults = uid=1000 gid=1000
>
>   # these override the passdb entries
>   extra_fields_overrides = home=/home/%u
> }
>
> And the same for userdb. Although I don't really like those setting names. 
> Wonder if there are some better ones.
Nothing bad with these names. It's clear even without comments.
Thanks.

-- 
Best regards,
Sergey Urushkin



Re: [Dovecot] Global fields for passwd-file database

2011-05-21 Thread Timo Sirainen
On 21.5.2011, at 10.23, Sergey Urushkin wrote:

> And no hope it'll be implemented ever?

I guess a generic implementation could be added:

passdb {
  # overridden by passdb entries
  extra_fields_defaults = uid=1000 gid=1000

  # these override the passdb entries
  extra_fields_overrides = home=/home/%u
}

And the same for userdb. Although I don't really like those setting names. 
Wonder if there are some better ones.



Re: [Dovecot] Global fields for passwd-file database

2011-05-21 Thread Sergey Urushkin
And no hope it'll be implemented ever?
--
Best regards,
Sergey Urushkin

Timo Sirainen  wrote:

On Fri, 2011-05-20 at 09:37 +0400, Sergey Urushkin wrote: > Is there a way to 
specify global fields for passwd-file DB? No.



Re: [Dovecot] Global fields for passwd-file database

2011-05-20 Thread Timo Sirainen
On Fri, 2011-05-20 at 09:37 +0400, Sergey Urushkin wrote:
> Is there a way to specify global fields for passwd-file DB?

No.




[Dovecot] Global fields for passwd-file database

2011-05-19 Thread Sergey Urushkin
Is there a way to specify global fields for passwd-file DB? Currently
interested in "home" for userdb and "allow_nets" for passworddb.
The next doesn't work, of course:

passdb passwd-file {
args = username_format=%n allow_nets=127.0.0.1
/etc/dovecot/dovecot.passwd.%d
  }
userdb passwd-file {
args = username_format=%n home=/var/mail/%d/%n
/etc/dovecot/dovecot.passwd.%d
  }

-- 
Best regards,
Sergey Urushkin