This commit is contained in:
Zhang Huangbin 2020-07-09 19:20:51 +08:00
parent 5691e80749
commit 3b30ec749c
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,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.
## Manage with SQL command line for LDAP backends
## Manage with LDAP command line for LDAP backends
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

@ -21,7 +21,7 @@
<li><a href="#restrict-mail-user-to-login-from-specified-ip-addresses-or-networks">Restrict mail user to login from specified IP addresses or networks</a><ul>
<li><a href="#manage-with-iredadmin-pro">Manage with iRedAdmin-Pro</a></li>
<li><a href="#manage-with-sql-command-line-for-sql-backends">Manage with SQL command line for SQL backends</a></li>
<li><a href="#manage-with-sql-command-line-for-ldap-backends">Manage with SQL command line for LDAP backends</a></li>
<li><a href="#manage-with-ldap-command-line-for-ldap-backends">Manage with LDAP command line for LDAP backends</a></li>
</ul>
</li>
<li><a href="#references">References</a></li>
@ -51,7 +51,7 @@ sql&gt; 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="manage-with-sql-command-line-for-ldap-backends">Manage with SQL command line for LDAP backends</h2>
<h2 id="manage-with-ldap-command-line-for-ldap-backends">Manage with LDAP command line for LDAP backends</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