disable imap for ldap user

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Wed Sep 13 15:49:36 EEST 2017


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

On Sat, 9 Sep 2017, Markus Rosjat wrote:

> In general every user can use pop3 but only a few can use imap so what I want 
> is:
>
> - permit pop3 by default
> - check if the attribute is 0 or 1
> - depending on the result a user can login with imap protocol

What's the name of the attribute? Maybe you can use %s in the the 
pass_filter string. If the name does not contain "imap", you need to 
change the logic, e.g. invent a general LDAP attribute deniedService
and set deniedServer=imap

Or AllowedService=imap allowedService=pop3
Or DeniedIMAP=1

> Am 08.09.2017 um 17:59 schrieb Ralph Seichter:
>> On 08.09.2017 17:11, Markus Rosjat wrote:
>> 
>>> I have a LDAP dir with an attribute set to 0 or 1 and in my old setup
>>> (a courier server) I used this attribute to map it to an authoption
>>> called disableimap. This prevent users to access the mailbox with imap
>>> protocol.
>>> 
>>> So the question is what should I set in dovecot to get the same
>>> behaviour?
>> 
>> You can configure 'pass_filter' to discount entries with your disable-
>> flag. Affected users won't be able to authenticate with Dovecot, which
>> I assume is what you are trying to achieve.
>> 
>> -Ralph
>> 
>
>

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBWbkpYHz1H7kL/d9rAQJ8kwgAo2PMSAmZ4fwld7Qw9Cw+2Htq42CbaRPK
8qtJTy61lF++VSGrsfy3ed4DGuaDrWM1IFo3/BifJusdjAgCxQqKQFV6J29HvyNa
SCeF5BHTvgC4owMXt5HGrdIIU872oKI8vHCkmO3i8dwuWZTg5t+QO/iKLI3yGUa7
6D1pEqydGOU1KXYO/KxjHmYWvZ7Iv8Mt3eJ6yucC1xtxPVGRD+6gOZn12p3d/srb
ZGYqXyaQ0UQXV+8skQTMCrr+YbNxjN6aSxZOIcDxLjCVeJrnBCe5KJaLp+MU35Z8
yiWmF+dVByX3RxzmPiuRLEoMpiTEOfr2jzSwzzdiTVt5ViGekIwZ6g==
=rlq8
-----END PGP SIGNATURE-----


More information about the dovecot mailing list