John Molakvoæ
84b05047e9
Autoloader update
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-05-14 10:51:25 +02:00
Nextcloud bot
359e17cf1d
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-04-24 02:29:02 +00:00
Nextcloud bot
5302974b79
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-04-17 02:27:17 +00:00
Nextcloud bot
bc3b0a6fbf
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-04-16 02:27:18 +00:00
Nextcloud bot
fcc682bfa2
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-04-06 02:28:20 +00:00
Nextcloud bot
b59d84dcde
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-04-05 02:28:32 +00:00
Nextcloud bot
8a8d418c97
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-03-30 02:28:01 +00:00
Nextcloud bot
6525ad41e0
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-03-25 02:45:10 +00:00
Arthur Schiwon
a7ee9f561e
do not forget DB table prefix with truncate query
...
- as used in LDAP's AbstractMapping::clear() method
- and in Comment's ManagerTest::setUp()
- fixes a DB Exception with Oracle
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-03-22 17:24:11 +00:00
Arthur Schiwon
b62ac487a0
be conservative when reading from fresh created column
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-03-21 13:56:48 +01:00
Nextcloud bot
bfe953596a
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-25 02:27:46 +00:00
Nextcloud bot
74c1e01afa
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-24 02:27:07 +00:00
Nextcloud bot
6437286a9b
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-22 02:29:43 +00:00
Nextcloud bot
38ba4f44c5
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-13 02:27:16 +00:00
Arthur Schiwon
28b5f0ccce
fix code style
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-02-11 10:14:03 +01:00
Arthur Schiwon
37a5a266df
fix use of executeQuery and -Statement
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-02-10 23:18:09 +01:00
Côme Chilliet
31ac987c3d
Fix psalm errors in apps/user_ldap/lib/Jobs/CleanUp.php
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-02-10 21:40:24 +00:00
Côme Chilliet
a6e367ecbf
Fix ldap:update-uuid
...
Generators cannot be iterated with while or returned by an other
generator, using foreach instead.
And a few other problems.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-02-10 21:40:24 +00:00
Arthur Schiwon
3e434f27a4
add occ command to update UUIDs (incomplete)
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-02-10 21:40:24 +00:00
Arthur Schiwon
8f92270547
allow to re-run migration step when backup DB is already created
...
- to heal incomplete states from broken upgrades
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-02-10 21:40:23 +00:00
Arthur Schiwon
2ff0fffbd3
invalidated duplicated UUIDs prior to migration change
...
- in a proper setup there are no duplicated UUIDs
- not all setups are proper
- log warning to admin
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-02-10 21:40:23 +00:00
Nextcloud bot
a6c3a109c2
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-02-02 02:27:28 +00:00
Carl Schwan
7240843289
Use existing API
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-31 18:31:14 +01:00
Nextcloud bot
89f92b38d7
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-22 02:26:53 +00:00
John Molakvoæ
f0f0509d31
Revert "[stable21] Hash job argument"
2022-01-20 21:10:40 +01:00
Julius Härtl
b9e3fb02ff
Add hashed attribute column for indexed job existence check
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-18 15:16:40 +01:00
Côme Chilliet
7ebbee52b7
Remove useless indexes with duplicated names on backup table
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-14 08:43:46 +00:00
Joas Schilling
c49bb41ef9
Update autoloader
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-14 08:43:45 +00:00
Côme Chilliet
417e76cd2d
Fix user_ldap migration for long DNs support
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-14 08:43:45 +00:00
Côme Chilliet
a56ef49033
Move duplicated code to a base class for group_mapping migrations
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
2022-01-14 08:43:44 +00:00
Côme Chilliet
655dfcda01
Split dropTable and createTable in two migrations
...
It is not possible to drop and create the same table in one migration
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-14 08:43:43 +00:00
Côme Chilliet
e9d7ab15fc
Fix primary key change in user_ldap migration
...
Use a backup table to copy the data, drop table and recreate it with
correct primary key, then copy the data back and drop the backup table.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-14 08:43:42 +00:00
Nextcloud bot
bbdc84ef1c
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-13 02:26:53 +00:00
Nextcloud bot
513589f3f9
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-07 02:28:22 +00:00
Nextcloud bot
ed88cd1c95
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-03 02:27:59 +00:00
Louis
4fde409901
Merge pull request #30341 from nextcloud/backport/29329/stable21
...
[stable21] fix potential unwarranted memberships in nested groups from LDAP
2021-12-30 11:03:30 +01:00
Nextcloud bot
9f91841a7d
[tx-robot] updated from transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-12-27 02:27:35 +00:00
Côme Chilliet
32831de424
[stable23] Avoid use of iconv to get rid of unicode
...
Using iconv for translit depends upon server configuration, locale, and
PHP version. Using htmlentities instead to have a consistent behavior
independent of configuration.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Co-authored-by: MichaIng <micha@dietpi.com>
2021-12-20 10:00:42 +00:00
Arthur Schiwon
47c916d77a
fix potential unwarranted memberships in nested groups from LDAP
...
- the issue was present only when using PHP based resolving of nested
group members. Normally nested members are common in AD (and Samba4) and
are resolved per LDAP_MATCHING_RULE_IN_CHAIN by default
- resolving nested members is recursive
- when the cache entry was created it happend for intermediate groups, too,
containing members from the parent group
- the check was added to only cache the root group with its members
- a runtime cache stores intermediate ldap read results
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-12-20 09:13:22 +00:00
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