Commit graph

3028 commits

Author SHA1 Message Date
Côme Chilliet
c5a8610163
Merge pull request #30261 from nextcloud/backport/29523/stable21
[stable21] Support LDAP dns longer than 255 characters
2021-12-16 09:06:45 +01:00
Nextcloud bot
ea743715ec
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-12-16 02:28:09 +00:00
Côme Chilliet
f3632cf020
Adapt execute function name for stable21
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 11:04:37 +01:00
Côme Chilliet
774636efab
Bump user_ldap version to make sure the migration runs
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 11:03:53 +01:00
Côme Chilliet
5e345f80ce
Add missing copyright headers in migration steps
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 11:03:21 +01:00
Côme Chilliet
ded493de06
Use clearer names for variables
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 11:00:53 +01:00
Côme Chilliet
44fe945d39
Add an index for directory_uuid as well
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 10:58:57 +01:00
Côme Chilliet
41e365aa3b
Make sure that hash function returns a string
The documentation says it can return false, and even if that is highly
 unlikely for sha256, better safe than sorry.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 10:58:47 +01:00
Côme Chilliet
d8263692d0
Add the columns and alter the index in Version1010Date20200630192842
This is to ensure new installations do not need to go through migration
 history.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 10:58:37 +01:00
Côme Chilliet
94b5b21e8c
Fixes in migration step
We cannot set ldap_dn_hash column as notnull because it is empty for
 existing users before postSchemaChange is called

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 10:58:30 +01:00
Côme Chilliet
8367bda445
Put back length check to have a clear error
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 10:58:22 +01:00
Côme Chilliet
dd8d90923e
Fixed migration step for user_ldap
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 10:58:13 +01:00
Joas Schilling
c90f9b52d0
Fix variable names
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-14 10:58:04 +01:00
Côme Chilliet
8904c51ca9
Change column names to ldap_dn and ldap_dn_hash and add migration
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 10:57:50 +01:00
Côme Chilliet
071a58a7f4
Support LDAP dns longer than 255 characters
Adds an ldap_full_dn column to store the dn, and only store a sha256
 hash in the ldap_dn which is shorter and can be indexed without
 trouble.
Migration still needs to be implemented.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-14 10:57:39 +01:00
Nextcloud bot
c6b705dde6
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-12-08 02:29:04 +00:00
Arthur Schiwon
9a4f7172d0 unset ldap provider when disabling user_ldap
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-12-01 08:27:56 +00:00
Nextcloud bot
b675d50092
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-27 02:26:20 +00:00
blizzz
2dd3b6f0b1
Merge pull request #29851 from nextcloud/backport/29836/stable21
[stable21] Make sure mapping cache is cleared when deleting a user
2021-11-25 13:08:04 +01:00
Nextcloud bot
28f41da186
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-24 02:26:17 +00:00
Côme Chilliet
fb376f5132 Test cache invalidation for AbstractMapping in test suite
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-11-23 10:23:14 +00:00
Côme Chilliet
23f42f3b50 Make sure mapping cache is cleared when deleting a user
This avoids phantom remnants staying after user deletion

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-11-23 10:23:14 +00:00
Nextcloud bot
03ccb6a09f
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-19 02:38:40 +00:00
Nextcloud bot
232d6dbc40
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-14 02:26:00 +00:00
Nextcloud bot
21fb91110b
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-13 02:26:07 +00:00
Nextcloud bot
90e25b8f41
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-12 02:23:16 +00:00
Nextcloud bot
c89eaec9e4
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-26 02:23:16 +00:00
Nextcloud bot
a87643a9e0
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-23 02:22:54 +00:00
Côme Chilliet
573a6eadcf Use Psr\Log\LoggerInterface where it can easily be used in user_ldap
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-10-19 09:24:55 +00:00
Côme Chilliet
c256c9be19 Fix two mistakes in previous migration to LoggerInterface in OCA\User_LDAP\Access
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-10-19 09:24:55 +00:00
Côme Chilliet
ad1d9edb43 Use Psr\Log\LoggerInterface in OCA\User_LDAP\Access
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-10-19 09:24:55 +00:00
Côme Chilliet
2f5dd75b55 Avoid PHP errors when the LDAP attribute is not found
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-10-19 09:24:54 +00:00
Daniel Kesselberg
670a2d57e3
executeQuery and executeStatement are 22+
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-10-04 19:58:45 +02:00
Arthur Schiwon
24f2974267
ensure that user and group IDs in LDAP's tables are also max 64chars
- limitation by core tables (e.g. sharing), IDs are always 64chars
- when longer group IDs were requested they are hashed (does not affect
  displaynames)

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-09-27 17:52:13 +02:00
Arthur Schiwon
4f7ffa69cb fix caching of objectsid searches
- store result when no name could be retrieved, too
- cached value is not an array, was treated wrongly

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-09-24 15:09:16 +00:00
Nextcloud bot
ce0602cdd3
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-09-15 02:28:21 +00:00
Nextcloud bot
f26939babb
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-09-14 02:31:01 +00:00
Christoph Wurst
4d37709f58
Add missing files for Composer v2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-08-16 08:30:10 +02:00
Nextcloud bot
119f69ef25
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-08-14 02:27:00 +00:00
Nextcloud bot
a611edb612
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-08-10 02:32:07 +00:00
Nextcloud bot
71e4fb0096
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-08-08 02:22:00 +00:00
Nextcloud bot
e9473566c7
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-08-06 02:27:14 +00:00
Nextcloud bot
3e7d0490dd
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-08-02 07:35:47 +00:00
Nextcloud bot
e9517b811c
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-07-15 10:37:56 +00:00
Nextcloud bot
e956940c96
[tx-robot] updated from transifex 2021-07-10 02:31:43 +00:00
Nextcloud bot
5352b1da47
[tx-robot] updated from transifex 2021-07-08 02:26:57 +00:00
Nextcloud bot
07e0cbde81
[tx-robot] updated from transifex 2021-07-04 02:25:47 +00:00
Nextcloud bot
053e1153eb
[tx-robot] updated from transifex 2021-07-01 02:24:59 +00:00
Arthur Schiwon
de3aa22057
LDAP: determine shares of offline users only when needed
- determine shares may via Sharing code result in user exists checks
- this may result in an infinite loop when user exists was called before
- the info is really only required at one occ command

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-06-28 23:57:29 +02:00
Nextcloud bot
6467112605
[tx-robot] updated from transifex 2021-06-28 02:25:22 +00:00