a9f9eaf7a7
AppInfo: add config checks before using backends
...
Config checks were removed when moving to IBootstrap:
f6bcde7 (Move to IBootstrap initialization and remove the deprecated appinfo/app.php, 2025-04-10)
Due to the missing checks, the Nextcloud log is flooded with error messages (SQL errors) if
the configuration is incomplete. This is also if either only the user or group backend is used.
2025-07-26 21:38:51 +02:00
Claus-Justus Heine
5cc12730c5
Cache: use at least a capped memory cache if a distributed cache is not available
2025-06-30 11:55:18 +02:00
Claus-Justus Heine
f565705b4f
Backend\UserBackend: avoid recursion in getUser().
2025-06-30 11:37:50 +02:00
Claus-Justus Heine
cafa6bbd78
Action\EmailSync -- ignore case when comparing email addresses.
2025-06-30 11:35:33 +02:00
Claus-Justus Heine
1354242744
Tweak debug logging
2025-05-07 23:44:16 +02:00
Claus-Justus Heine
dc5458e9a8
Get rid of logException()
2025-04-18 17:46:51 +02:00
Claus-Justus Heine
560f8cdf08
Silence a PHP warning
2025-04-17 11:55:19 +02:00
Claus-Justus Heine
47f598d42a
Get rid of ILogger.
2025-04-17 11:55:19 +02:00
Claus-Justus Heine
f6bcde7e6d
Move to IBootstrap initialization and remove the deprecated appinfo/app.php
2025-04-17 11:54:20 +02:00
Claus-Justus Heine
9d0ef4e4fe
Add getBackendName() and inherit from INamedBackend
2024-01-29 08:58:38 +01:00
Claus-Justus Heine
3cc3bf294a
Do not count disabled users.
...
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de >
2023-08-22 15:59:06 +02:00
Claus-Justus Heine
7da80d207a
Implement ISearchableGroupBackend
...
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de >
2023-08-22 12:59:23 +02:00
Claus-Justus Heine
639b9cf995
QueryProvider: use left joins and fix the use of the "disabled" column.
...
The code used union selects; left joins at least are easier to read. In
some places it was also not so clear that the WHERE part for the
disabled column really worked.
The query FIND_GROUP_USERS also needs to take the disabled column in to
account.
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de >
2023-08-22 12:59:23 +02:00
Claus-Justus Heine
df5a550fbd
DataQuery: properly log exceptions.
...
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de >
2023-08-22 12:59:22 +02:00
Claus-Justus Heine
bb1f370e16
Fix \ArrayAccess type warnings
...
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de >
2023-08-22 12:59:22 +02:00
Claus-Justus Heine
26930efc25
DateQuery: use try-catch around statement prepare.
...
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de >
2023-08-22 12:59:22 +02:00
Claus-Justus Heine
e9ccbd95d6
UserBackend: users fetched from the cache have to be converted back from an array representation to the User-object.
...
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de >
2023-08-22 12:59:21 +02:00
Claus-Justus Heine
b39421d32d
Selecting and counting users from the User-Group table needs DISTINCT to avoid duplicates.
...
In particular when using the catch-all group ("Default Group" setting)
the queries which count and select users from the User-Group table need
the "DISTINCT" option: the catch-all group is replaced by a '%'
wild-card in the query. As users may belong by design to more than one
group counting and selecting users comes out wrong. Even worse: the many
duplicates interfere with the paging logic of the user admin-settings.
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de >
2023-08-22 12:59:21 +02:00
Claus-Justus Heine
b1819aa32e
Add @AuthorizedAdminSetting to all controller methods.
...
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de >
2023-08-22 12:59:20 +02:00
Claus-Justus Heine
ad513bda3e
Allow delegation of admin settings.
...
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de >
2023-08-22 12:59:20 +02:00
Marcin Łojewski
49d1c76a61
Support Doctrine 3
2021-03-24 11:53:35 +01:00
Marcin Łojewski
0742ff313d
Merge branch 'develop' of github.com:nextcloud/user_sql into develop
2020-12-26 14:00:27 +01:00
Marcin Łojewski
43d4088c55
Merge pull request #142 from fxmw11/master
...
MySQL over SSL
2020-12-26 13:39:21 +01:00
Marcin Łojewski
462974559a
Merge remote-tracking branch 'origin/master' into develop
2020-12-25 18:45:13 +01:00
Marcin Łojewski
a17a52ea4a
Comments alignment
2020-07-12 16:11:29 +02:00
Morris Jobke
08ac663fc2
Use new dispatcher for password policy event
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de >
2020-07-09 22:07:51 +02:00
Morris Jobke
0f55c3d70b
Revert "Use new dispatcher for password policy event"
2020-07-09 22:07:24 +02:00
Morris Jobke
5facd20111
Use new dispatcher for password policy event
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de >
2020-07-09 22:02:09 +02:00
Felix
204c5c5f0b
MySQL over SSL
...
Signed-off-by: Felix <felix.nz@hotmail.de >
2020-06-08 17:07:55 +02:00
Marcin Łojewski
d6cbc24dad
Fix issue#123
2020-04-13 22:27:42 +02:00
Marcin Łojewski
a483168890
Default group option. issue#107
2020-04-13 16:32:15 +02:00
Marcin Łojewski
d7735280a0
Hash HMAC algo
2020-04-13 15:28:50 +02:00
Marcin Łojewski
7e9af00145
GID group column
2020-04-13 13:08:16 +02:00
Marcin Łojewski
e607f5c5d3
firstNonemptyProperty
2020-04-13 12:17:48 +02:00
Marcin Łojewski
c7e73f2fbb
Merge branch 'master' of https://github.com/palmtown/user_sql into palmtown-master
...
# Conflicts:
# lib/Backend/UserBackend.php
2020-04-13 11:47:47 +02:00
Marcin Łojewski
953dae293e
issue#135 Allow email login
2020-03-29 22:08:43 +02:00
Marcin Łojewski
94714ae987
issue#99 database password in config.php
2020-02-03 21:34:14 +01:00
Marcin Łojewski
9644bce09c
issue#94 XenForo bcrypt
2020-02-02 21:43:39 +01:00
Marcin Łojewski
683d44c98b
issue#120 issue#126 issue#130 - 'Object of class Closure could not be converted to string'
2020-02-02 20:49:45 +01:00
Brandon Lee
a4c9aa98e7
update search by GUID column error
2019-10-31 12:48:55 +00:00
Brandon Lee
9b3a48f063
update search by GUID
2019-10-31 12:46:59 +00:00
Brandon Lee
55224aed23
commit
2019-10-31 04:54:51 +00:00
Brandon Lee
570ae0a770
commit
2019-10-31 04:51:06 +00:00
Brandon Lee
a02c3f25e8
commit
2019-10-31 04:33:31 +00:00
Brandon Lee
735c0d13fd
commit
2019-10-22 13:57:31 +00:00
Brandon Lee
b4c210566d
commit
2019-10-22 13:46:23 +00:00
Marcin Łojewski
34a0c65be6
Name sync option
2019-10-08 20:58:22 +02:00
Marcin Łojewski
a8e8e53538
Merge pull request #113 from Isolus/propagate
...
fix for email and display name sync
2019-10-08 20:10:54 +02:00
Marcin Łojewski
1283fd68fc
issue#95 - Do not include users which are disabled
2019-10-08 19:44:23 +02:00
Marcin Łojewski
a19144a254
issue#91 Find group by gid or groupname, find user by uid or display name or email
2019-10-08 18:38:51 +02:00