]> source.dussan.org Git - nextcloud-server.git/commit
Forward port of #12493
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 28 Nov 2014 11:08:33 +0000 (12:08 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Thu, 4 Dec 2014 18:02:09 +0000 (19:02 +0100)
commitee168a121d8ba54e607d739f9e01070ded8bb3b8
treec5d231c25394d8076884afd82e39b5f29a38243e
parentb6975143ff03c12e8f996b6f9f3144c5c0f47b25
Forward port of #12493

add ldap-search command to occ

Conflicts:
apps/user_ldap/appinfo/register_command.php

LDAP search filter creation changes:

1. do not prepend * wildcard to search terms. Will result in faster search, but
you don't find "foobar"  when looking for "bar"
2. advanced behaviour when search string contains a space and multiple search
attributes are present. The search string is split into single words. The
resulting filter requires that each word at least appears once in any search
attribute. This is supposed to return better results in big LDAPs.

trim search string before passing it on
apps/user_ldap/appinfo/register_command.php
apps/user_ldap/command/search.php [new file with mode: 0644]
apps/user_ldap/lib/access.php
core/js/share.js