From f99c4daa71f128ac4e57a0aa8375897be804fade Mon Sep 17 00:00:00 2001 From: Jonas Sulzer Date: Thu, 23 May 2019 00:13:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20DOC:=20additional=20boolean=20pa?= =?UTF-8?q?rameters=20for=20optional=20striping=20of=20domain=20and=20doma?= =?UTF-8?q?in=20based=20group=20creation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonas Sulzer Signed-off-by: none --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 38f477f..47316f6 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Add the following to your `config.php`: array( 'class' => 'OC_User_IMAP', 'arguments' => array( - '127.0.0.1', 993, 'ssl', 'example.com' + '127.0.0.1', 993, 'ssl', 'example.com', true, false ), ), ), @@ -79,9 +79,12 @@ you want to restrict the domain (4th parameter), you need to also specify the port (2nd parameter) and sslmode (3rd parameter; set to `null` for insecure connection). If a domain name (e.g. example.com) is specified, then this makes sure that -only users from this domain will be allowed to login. After successfull -login the domain part will be striped and the rest used as username in -Nextcloud. e.g. 'username@example.com' will be 'username' in Nextcloud. +only users from this domain will be allowed to login. If the fifth parameter +is set to true, after successfull login the domain part will be striped and +the rest used as username in Nextcloud. e.g. 'username@example.com' will be +'username' in Nextcloud. The sixth parameter toggles whether on creation of +the user, it is added to a group corresponding to the name of the domain part +of the address.