Commit graph

2531 commits

Author SHA1 Message Date
Nextcloud bot
7966a5efd6
[tx-robot] updated from transifex 2019-04-11 00:13:22 +00:00
Nextcloud bot
d2d4887f23
[tx-robot] updated from transifex 2019-04-06 00:13:28 +00:00
Nextcloud bot
a1aaa0bd3f
[tx-robot] updated from transifex 2019-03-26 10:41:51 +00:00
Vinicius Cubas Brand
d97339830d LDAP plugin: force createUser to return new user's DN
LDAP plugins must change the createUser method to return the DN, as we
need this to update the cache.

Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
2019-03-21 10:33:46 +00:00
Vinicius Cubas Brand
dd30daa3af Cache cleaning when subadmin adds user to group
This commit fix an error happening when the subadmin tries to create an
user, adding him/her to the group s/he is subadmin of, using a LDAP
User/Group plugin.

This just forces the cache to be reset after an user is added to a
group.

Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
2019-03-21 10:33:46 +00:00
Vinicius Cubas Brand
0f3df7609a fix user creation using LDAP Plugin
Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
2019-03-21 10:33:45 +00:00
Nextcloud bot
70589dfc68
[tx-robot] updated from transifex 2019-03-21 01:14:17 +00:00
Nextcloud bot
a3436d8b09
[tx-robot] updated from transifex 2019-03-16 01:12:52 +00:00
Nextcloud bot
0afe723932
[tx-robot] updated from transifex 2019-03-14 16:08:54 +00:00
Arthur Schiwon
7fa490fde4
remove unused use statement
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-03-07 22:47:40 +01:00
Arthur Schiwon
a23ef68ffe
fix nested group retrieval also for 2 other cases
and also consolidate logic in one method

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-03-07 22:47:06 +01:00
Roland Tapken
a202fc808d
Fixed unit test: groupsMatchFilter will not be called multiple times anymore.
Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
2019-03-07 22:46:20 +01:00
Roland Tapken
f88a09140d
Reduce queries to LDAP by caching nested groups
Nested groups are now cached in a CappedMemoryCache object to reduce
queries to the LDAP backend.

Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
2019-03-07 22:46:14 +01:00
Roland Tapken
177901d079
user_ldap: really resolve nested groups
The previous patch fixed the problem only for one level of indirection
because groupsMatchFilter() had been applied on each recursive call (and
thus there would be no second level if the first level fails the check).

This new implementation replaces the recursive call with a stack that
iterates all nested groups before filtering with groupsMatchFilter().

Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
2019-03-07 22:46:08 +01:00
Roland Tapken
8f57824707
user_ldap: Filter groups after nexted groups
Currently groupsMatchFilter is called before nested groups are resolved.
This basicly breaks this feature since it is not possible to inherit
membership in a group from another group.

Minimal example:

  Group filter: (&(objectClass=group),(cn=nextcloud))
  Nested groups: enabled

  cn=nextcloud,ou=Nextcloud,ou=groups,dn=company,dn=local
    objectClass: group

  cn=IT,ou=groups,dn=company,dn=local
    objectClass: group
    memberOf: cn=nextcloud,ou=Nextcloud,ou=groups,dn=company,dn=local

  cn=John Doe,ou=users,dn=company,dn=local
    objectClass: person
    memberOf: cn=IT,ou=groups,dn=company,dn=local

Since 'cn=IT,ou=groups,dn=company,dn=local' doesn't match the group
filter, John wouldn't be a member of group 'nextcloud'.

This patch fixes this by filtering the groups after all nested groups
have been collected. If nested groups is disabled the result will be the
same as without this patch.

Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
2019-03-07 22:45:58 +01:00
Nextcloud bot
affd0dcaf2
[tx-robot] updated from transifex 2019-03-01 01:12:57 +00:00
Nextcloud bot
1d33283332
[tx-robot] updated from transifex 2019-02-28 01:12:58 +00:00
Nextcloud bot
a05e578d36
[tx-robot] updated from transifex 2019-02-27 01:12:27 +00:00
Nextcloud bot
1274001632
[tx-robot] updated from transifex 2019-02-26 01:12:30 +00:00
Nextcloud bot
7cb9934638
[tx-robot] updated from transifex 2019-02-25 01:12:37 +00:00
Nextcloud bot
e7d5630947
[tx-robot] updated from transifex 2019-02-21 01:12:22 +00:00
Nextcloud bot
53b295456d
[tx-robot] updated from transifex 2019-02-19 01:12:27 +00:00
Nextcloud bot
84354c3008
[tx-robot] updated from transifex 2019-02-18 01:12:29 +00:00
Nextcloud bot
a906a9c216
[tx-robot] updated from transifex 2019-02-17 01:13:48 +00:00
Arthur Schiwon
ecd70ca011
ensure attribute names are lower cased
otherwise they will be skipped when the results is being formatted and the
lower-cased result keys do not match.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-02-14 15:36:37 +01:00
Nextcloud bot
afa91c75e5
[tx-robot] updated from transifex 2019-02-14 01:12:47 +00:00
Nextcloud bot
868b6dbcae
[tx-robot] updated from transifex 2019-02-08 01:12:58 +00:00
Nextcloud bot
ffaff1b2ab
[tx-robot] updated from transifex 2019-02-06 11:27:51 +00:00
Arthur Schiwon
d77220bc7e
iterate over bases instead of doing parallel search
parallel search is not compatible with paged search, but the letter is
usually always applied.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-01-30 12:12:24 +01:00
Nextcloud bot
c0c5921719
[tx-robot] updated from transifex 2019-01-26 01:12:36 +00:00
Nextcloud bot
78fadcb9b7
[tx-robot] updated from transifex 2019-01-24 01:12:25 +00:00
Nextcloud bot
9455303874
[tx-robot] updated from transifex 2019-01-23 01:12:27 +00:00
Nextcloud bot
5f961a494f
[tx-robot] updated from transifex 2019-01-16 01:12:56 +00:00
Nextcloud bot
054848a387
[tx-robot] updated from transifex 2019-01-15 01:12:35 +00:00
Nextcloud bot
671e375313
[tx-robot] updated from transifex 2019-01-14 01:12:20 +00:00
Nextcloud bot
39b0d4700f
[tx-robot] updated from transifex 2019-01-13 01:13:14 +00:00
Nextcloud bot
3d5ecac012
[tx-robot] updated from transifex 2019-01-05 01:12:17 +00:00
Arthur Schiwon
9bef634cc9 ensure db is pristine before starting the tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-01-04 21:49:16 +00:00
Arthur Schiwon
ac2577fd66 LDAP: extend remnants output with "detected on" field
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-01-04 21:49:16 +00:00
Arthur Schiwon
4884c294b5 add tests for the DUI
as they are interact with the DB they are more integraiton than unit tests

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-01-04 21:49:15 +00:00
Nextcloud bot
4cd730c5bd
[tx-robot] updated from transifex 2019-01-04 01:12:48 +00:00
Nextcloud bot
0c9fb32585
[tx-robot] updated from transifex 2018-12-31 01:12:01 +00:00
Nextcloud bot
61000a7c1d
[tx-robot] updated from transifex 2018-12-28 01:12:07 +00:00
Nextcloud bot
ed43996cc1
[tx-robot] updated from transifex 2018-12-27 01:12:01 +00:00
Nextcloud bot
c099e7cbe9
[tx-robot] updated from transifex 2018-12-24 01:12:08 +00:00
Arthur Schiwon
f82c5b5074 do not forgot to store the second displayname portion
otherwise it causes a chain reaction of system addressbook updates

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2018-12-21 13:44:09 +00:00
Nextcloud bot
0a59b4ec6b
[tx-robot] updated from transifex 2018-12-19 01:12:05 +00:00
Julius Härtl
b84f37c467
Merge pull request #13120 from nextcloud/backport/12693/stable14
[stable14] fix exception on LDAP mapping during login
2018-12-18 10:48:53 +01:00
Nextcloud bot
fe710e0431
[tx-robot] updated from transifex 2018-12-18 01:11:52 +00:00
Arthur Schiwon
4d6cfe12dd
LDAP clear cache on config modification also when done via API or CLI
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2018-12-17 13:19:28 +01:00