summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
Commit message (Collapse)AuthorAgeFilesLines
* Bump user_ldap version to make sure the migration runsCôme Chilliet2021-12-091-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add missing copyright headers in migration stepsCôme Chilliet2021-12-092-0/+44
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #29523 from nextcloud/fix/support-ldap-long-dnsJohn Molakvoæ2021-12-096-33/+213
|\
| * Use clearer names for variablesCôme Chilliet2021-11-232-34/+34
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Add an index for directory_uuid as wellCôme Chilliet2021-11-232-0/+10
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Make sure that hash function returns a stringCôme Chilliet2021-11-231-1/+6
| | | | | | | | | | | | | | 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>
| * Add the columns and alter the index in Version1010Date20200630192842Côme Chilliet2021-11-231-3/+11
| | | | | | | | | | | | | | This is to ensure new installations do not need to go through migration history. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fixes in migration stepCôme Chilliet2021-11-231-3/+2
| | | | | | | | | | | | | | 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>
| * Put back length check to have a clear errorCôme Chilliet2021-11-231-0/+11
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fixed migration step for user_ldapCôme Chilliet2021-11-233-2/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix variable namesJoas Schilling2021-11-231-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Change column names to ldap_dn and ldap_dn_hash and add migrationCôme Chilliet2021-11-233-29/+158
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Support LDAP dns longer than 255 charactersCôme Chilliet2021-11-232-27/+43
| | | | | | | | | | | | | | | | | | 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>
* | [tx-robot] updated from transifexNextcloud bot2021-12-082-2/+2
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Allow to log DB, redis and LDAP requests into filesJoas Schilling2021-12-013-4/+23
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #29470 from nextcloud/fix/translit-php8blizzz2021-11-292-13/+11
|\ \ | | | | | | Avoid use of iconv to get rid of unicode
| * | Fix sanitizing regex and add a test case for uppercase in usernameCôme Chilliet2021-11-232-2/+3
| | | | | | | | | | | | | | | | | | | | | I did not find any test data that would fail with the previous regex, but still added data with uppercase to at least test that. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Avoid use of iconv to get rid of unicodeCôme Chilliet2021-10-282-13/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | [tx-robot] updated from transifexNextcloud bot2021-11-272-2/+188
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Merge pull request #29837 from nextcloud/fix/user_ldap-check-cacheJulius Härtl2021-11-253-16/+30
|\ \ \
| * | | Check LDAP upon user deletion instead of refusing based on cached informationCôme Chilliet2021-11-231-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This should avoid having to wait for background job to run after deleting a user in LDAP before being able to delete it in Nextcloud. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Ignore cache in occ ldap:check-ldap commandCôme Chilliet2021-11-223-9/+9
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | This avoids having to wait or reset the cache after deleting a user in the LDAP. This also fixes a PHP error when running ldap:check-ldap --update on a deleted but cached user. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | [tx-robot] updated from transifexNextcloud bot2021-11-242-0/+14
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Merge pull request #29610 from nextcloud/fix/user_ldap-loggerCôme Chilliet2021-11-2313-90/+39
|\ \ \ | | | | | | | | Get rid of user_ldap LogWrapper and use LoggerInterface
| * | | Move back logger to protected in OCA\User_LDAP\User\UserCôme Chilliet2021-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It was changed to private because of a bad copy/paste. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Update autoloader accordinglyCôme Chilliet2021-11-093-4/+2
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Get rid of LogWrapper calling deprecated logger and use LoggerInterface from ↵Côme Chilliet2021-11-0910-86/+37
| | | | | | | | | | | | | | | | | | | | | | | | PSR instead Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Test cache invalidation for AbstractMapping in test suiteCôme Chilliet2021-11-221-0/+4
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Make sure mapping cache is cleared when deleting a userCôme Chilliet2021-11-221-0/+5
| |/ / |/| | | | | | | | | | | | | | This avoids phantom remnants staying after user deletion Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | [tx-robot] updated from transifexNextcloud bot2021-11-192-8/+8
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | [tx-robot] updated from transifexNextcloud bot2021-11-142-2/+2
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | [tx-robot] updated from transifexNextcloud bot2021-11-132-0/+2
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | [tx-robot] updated from transifexNextcloud bot2021-11-122-0/+18
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Master is now 24Joas Schilling2021-11-111-2/+2
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Update to composer 2.1.11Carl Schwan2021-11-042-2/+15
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* [tx-robot] updated from transifexNextcloud bot2021-10-262-0/+14
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* [tx-robot] updated from transifexNextcloud bot2021-10-232-2/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #29240 from nextcloud/work/admin-delegation-implementationCarl Schwan2021-10-152-6/+19
|\ | | | | Add support for Delegation Settings for more apps
| * Add support for Delegation Settings for more appsCarl Schwan2021-10-152-6/+19
| | | | | | | | | | | | | | | | | | * This adds support for the sharing, groupware, theming and user_ldap app * This adds some code who disapeared during a rebase in the initial delegation PR (provisioning_api) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #27217 from ↵John Molakvoæ2021-10-151-2/+2
|\ \ | | | | | | | | | nextcloud/techdebt/noid/make-debugging-a-cron-job-easier
| * | Bump autoloaderJoas Schilling2021-10-141-2/+2
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use Psr\Log\LoggerInterface where it can easily be used in user_ldapCôme Chilliet2021-10-145-78/+136
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix two mistakes in previous migration to LoggerInterface in ↵Côme Chilliet2021-10-142-2/+3
| | | | | | | | | | | | OCA\User_LDAP\Access Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Use Psr\Log\LoggerInterface in OCA\User_LDAP\AccessCôme Chilliet2021-10-126-37/+65
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Avoid PHP errors when the LDAP attribute is not foundCôme Chilliet2021-10-121-1/+5
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update app versions for 23Vincent Petry2021-09-281-1/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #28876 from nextcloud/fix/28653/ldap-long-user-group-idsblizzz2021-09-248-7/+194
|\ | | | | ensure that user and group IDs in LDAP's tables are also max 64chars
| * ensure that user and group IDs in LDAP's tables are also max 64charsArthur Schiwon2021-09-248-7/+194
| | | | | | | | | | | | | | | | - 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>
* | Merge pull request #28916 from nextcloud/fix/noid/objectsidVincent Petry2021-09-242-4/+37
|\ \ | |/ |/| fix caching of objectsid searches
| * fix caching of objectsid searchesArthur Schiwon2021-09-212-4/+37
| | | | | | | | | | | | | | - 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>