Re: How to delete "proxy" attribute in passdb lookup?

2015-11-29 Thread Timo Sirainen
On 29 Nov 2015, at 19:00, Peer Heinlein  wrote:
> 
>> It would probably also be useful to add support for removing a
>> field entirely, such as returning "-proxy" (where the =value would
>> be ignored). I'm not entirely sure how useful that would be
>> though.
> 
> Why don't just enable
> 
> override_fields = proxy=
> 
> so, just use "attribue=" to delete it?

There could be some settings which are wanted to be explicitly cleared. For 
example in dovecot.conf have "mail_plugins=foo" while in passdb it could be 
disabled with "mail_plugins=". There are probably some better examples.


Re: How to delete "proxy" attribute in passdb lookup?

2015-11-29 Thread Peer Heinlein
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am 29.11.2015 um 01:01 schrieb Timo Sirainen:


Hi Timo,

> Not right now, because any value at all is treated as "true" (and
> I'm pretty sure even empty value). I suppose the best solution
> would be to finally change all the passdb/userdb/plugin boolean
> values to actually support "no" value as not being enabled. It's
> something that we're thinking about for Dovecot v2.3.

Okay, I expected that, thanks for clarification.

> It would probably also be useful to add support for removing a
> field entirely, such as returning "-proxy" (where the =value would
> be ignored). I'm not entirely sure how useful that would be
> though.

Why don't just enable

override_fields = proxy=

so, just use "attribue=" to delete it?

Peer




- -- 
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

http://www.heinlein-support.de

Tel: 030 / 405051-42
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG: HRB 93818 B / Amtsgericht
Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBAgAGBQJWWy8oAAoJEAOLLpq5E82HEEkH/2y4kcOzGTSlIHvJ+SIwT+hu
Lnw2wugXSe/o6VQF+f9O/VB2V21QUy8JaDVHiWMhkqZXjReMzse5zGC5f4rkJe+p
2cPHHxhfaU4KJinNPMEJNMlewwXMPvCWzO8bVUqSC5s1umSe9Ihq8uM6c0wXbd0X
bQ2pMyZEOz8z3DxdvxhPpkj2SupLCJ8Q3QBhrt/lFupa8bGNGSS/KeR9NRUsLHVJ
5KuJZwHl745TMSaCS7Z4NhaUdBsvRfuirg8AhcWQ1sExW+nDYgOvTlECNp427aIT
PvkfDkROT/yX0dsQzX4jej0d/YlaQaJVUhxY4syuy807dclVF+sBTXHqgiqKqRI=
=q87r
-END PGP SIGNATURE-


Re: How to delete "proxy" attribute in passdb lookup?

2015-11-28 Thread Timo Sirainen
On 28 Nov 2015, at 09:26, Peer Heinlein  wrote:

> Is there any way to override/delete an existing true/false attribute
> like "proxy"?

Not right now, because any value at all is treated as "true" (and I'm pretty 
sure even empty value). I suppose the best solution would be to finally change 
all the passdb/userdb/plugin boolean values to actually support "no" value as 
not being enabled. It's something that we're thinking about for Dovecot v2.3.

It would probably also be useful to add support for removing a field entirely, 
such as returning "-proxy" (where the =value would be ignored). I'm not 
entirely sure how useful that would be though.


How to delete "proxy" attribute in passdb lookup?

2015-11-27 Thread Peer Heinlein


Hi,

I have a complicated SQL backend with stored procedures to generate
passdb/userdb queries. This result have the proxy-attribute set and it's
very complicated to change that procedures.

On one system I tried to override/delete the proxy attribute:

passdb {
  driver = sql

  args = /etc/dovecot/dovecot-sql.conf.ext
  override_fields = proxy=n
}

Looks like that doesn't work. "proxy" is always set.

doveadm auth lookup username
passdb: username
  user  : username
  host  : mailserver
  proxy
  hostip: xx.xx.xx.xx

Is there any way to override/delete an existing true/false attribute
like "proxy"?

Peer




-- 
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

http://www.heinlein-support.de

Tel: 030 / 405051-42
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG: HRB 93818 B / Amtsgericht
Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin