diff --git a/admin_manual/configuration_server/occ_command.rst b/admin_manual/configuration_server/occ_command.rst index 93d306395..9c9312f64 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -735,9 +735,21 @@ Search for an LDAP user, using this syntax:: sudo -u www-data php occ ldap:search [--group] [--offset="..."] [--limit="..."] search -This example searches for usernames that start with "rob":: +Searches will match at the beginning of the attribute value only. This example +searches for usernames that start with "rob":: - sudo -u www-data php occ ldap:search rob + sudo -u www-data php occ ldap:search "rob" + +This will find robbie, roberta, and robin. Broaden the search to find, for +example, ``jeroboam`` with the asterisk wildcard:: + + sudo -u www-data php occ ldap:search "*rob" + +Refine searches by adjusting user search attributes (see ``ldap:set-config`` +below). ``ldap:set-config`` For example, if your search attributes are +``givenName`` and ``sn`` you can find users by first name + last name very +quickly. For example, you'll find Terri Hanson by searching for ``te ha``. +Trailing whitespaces are ignored. Check if an LDAP user exists. This works only if the ownCloud server is connected to an LDAP server:: diff --git a/admin_manual/release_notes.rst b/admin_manual/release_notes.rst index 1ad30d50b..49e4e5b80 100644 --- a/admin_manual/release_notes.rst +++ b/admin_manual/release_notes.rst @@ -332,11 +332,11 @@ Nate, then search for ``*te``:: occ ldap:search "*te" -Refine searches by adjusting your search attributes in the ``User Search -Attributes`` form in your LDAP configuration on the Admin page. For example, if -your search attributes are ``givenName`` and ``sn`` you can find users by first -name + last name very quickly. For example, you'll find Terri Hanson by -searching for ``te ha``. Trailing whitespaces are ignored. +Refine searches by adjusting the ``User Search Attributes`` field of the +Advanced tab in your LDAP configuration on the Admin page. For example, if your +search attributes are ``givenName`` and ``sn`` you can find users by first name ++ last name very quickly. For example, you'll find Terri Hanson by searching for +``te ha``. Trailing whitespaces are ignored. .. https://github.com/owncloud/core/issues/12647