This commit is contained in:
Zhang Huangbin 2015-04-07 20:18:58 +08:00
parent 226a7df463
commit 2220655c5c
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ To remove this restriction (allow to login from anywhere), just set
value of SQL column `mailbox.allow_nets` to NULL. WARNING: It must be NULL,
not empty string.
## How to restrict with OpenLDAP backend
## OpenLDAP backend
To allow user `user@domain.com` to login from IP `172.16.244.1` and network
`192.168.1.0/24`, please add new attribute `allowNets` to this user:

View File

@ -23,7 +23,7 @@ sql> UPDATE mailbox SET allow_nets='172.16.244.1,192.168.1.0/24' WHERE userna
<p>To remove this restriction (allow to login from anywhere), just set
value of SQL column <code>mailbox.allow_nets</code> to NULL. WARNING: It must be NULL,
not empty string.</p>
<h2 id="how-to-restrict-with-openldap-backend">How to restrict with OpenLDAP backend</h2>
<h2 id="openldap-backend">OpenLDAP backend</h2>
<p>To allow user <code>user@domain.com</code> to login from IP <code>172.16.244.1</code> and network
<code>192.168.1.0/24</code>, please add new attribute <code>allowNets</code> to this user:</p>
<pre><code>allowNets: 192.168.1.10,192.168.1.0/24