nextcloud-server/lib/private
Arthur Schiwon 4fa39250e7 LDAP User Cleanup: Port from stable7 without further adjustements
LDAP User Cleanup

background job for user clean up

adjust user backend for clean up

register background job

remove dead code

dependency injection

make Helper non-static for proper testing

check whether it is OK to run clean up job. Do not forget to pass arguments.

use correct method to get the config from server

methods can be private, proper indirect testing is given

no automatic user deletion

make limit readable for test purposes

make method less complex

add first tests

let preferences accept limit and offset for getUsersForValue

DI via constructor does not work for background jobs

after detecting, now we have retrieving deleted users and their details

we need this method to be public for now

finalize export method, add missing getter

clean up namespaces and get rid of unnecessary files

helper is not static anymore

cleanup according to scrutinizer

add cli tool to show deleted users

uses are necessary after recent namespace change

also remove user from mappings table on deletion

add occ command to delete users

fix use statement

improve output

big fixes / improvements

PHP doc

return true in userExists early for cleaning up deleted users

bump version

control state and interval with one config.php setting, now ldapUserCleanupInterval. 0 will disable it. enabled by default.

improve doc

rename cli method to be consistent with  others

introduce ldapUserCleanupInterval in sample config

don't show last login as unix epoche start when no  login happend

less log output

consistent namespace for OfflineUser

rename GarbageCollector to DeletedUsersIndex and move it to user subdir

fix unit tests

add tests for deleteUser

more test adjustements

Conflicts:
	apps/user_ldap/ajax/clearMappings.php
	apps/user_ldap/appinfo/app.php
	apps/user_ldap/lib/access.php
	apps/user_ldap/lib/helper.php
	apps/user_ldap/tests/helper.php
	core/register_command.php
	lib/private/preferences.php
	lib/private/user.php

add ldap:check-user to check user existance on the fly

Conflicts:
	apps/user_ldap/lib/helper.php

forgotten file

PHPdoc fixes, no code change

and don't forget to adjust tests
2014-12-19 19:47:54 +07:00
..
app HHVM: Call libxml_use_internal_errors() instead of surpressing errors. 2014-12-17 17:00:10 +07:00
appframework add isAdmin and isInGroup methods for the group manager 2014-12-17 17:41:57 +07:00
archive Update pear/archive_tar to 1.3.13 2014-10-30 16:10:00 +07:00
backgroundjob
cache
connector/sabre Merge pull request #12865 from owncloud/files-tags-webdav 2014-12-19 09:33:28 +07:00
contacts Replace deprecated constant with new class constant 2014-11-25 16:30:21 +07:00
db Split mapping from Access and Helper classes into it's own. Fully test them, too. 2014-12-19 18:26:12 +07:00
diagnostics
fileproxy
files Merge pull request #12879 from owncloud/mountconfig 2014-12-18 23:38:14 +07:00
group add isAdmin and isInGroup methods for the group manager 2014-12-17 17:41:57 +07:00
hooks
l10n Correctly fallback to english, if the plural case is not translated 2014-12-11 12:42:21 +07:00
legacy introduce preCondition for setUserValue to provide atomic check-and-update 2014-12-08 22:33:36 +07:00
log Implement a logger to log to error_log 2014-12-01 21:20:57 +07:00
memcache HHVM: In APC cache clear, only request the cache key in APCIterator. 2014-12-19 03:24:00 +07:00
ocs reduce OC_Preferences, OC_Config and \OCP\Config usage 2014-12-08 22:42:37 +07:00
preview Split bitmap providers into one per file 2014-11-28 09:28:33 +07:00
repair
route drop unneeded var_dump - fixes #9997 2014-11-18 22:36:42 +07:00
search
security Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +07:00
session
setup Correctly namespace DatabaseSetupException 2014-11-26 12:30:07 +07:00
share Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +07:00
tagging
template Deprecate Util::formatDate() 2014-12-10 11:58:56 +07:00
user Merge pull request #12923 from owncloud/ultra-slim-version-of-incognito-mode 2014-12-19 14:54:11 +07:00
vobject
activitymanager.php Allow extensions to specify the list of special parameters 2014-12-11 14:56:46 +07:00
allconfig.php Add type of the variables to the docs 2014-12-10 15:18:06 +07:00
api.php Merge pull request #12918 from owncloud/use-uid-instead-of-login-name 2014-12-19 10:24:52 +07:00
app.php rework api of DependencyAnalyzer 2014-12-12 12:34:53 +07:00
appconfig.php
apphelper.php
archive.php
arrayparser.php Replace exception with standard exception 2014-11-27 11:10:05 +07:00
avatar.php
avatarmanager.php
backgroundjob.php
cache.php
config.php drop unused isDebugMode and setDebugMode of OC_Config 2014-12-08 22:42:44 +07:00
contactsmanager.php Fix permissions 2014-12-06 13:58:10 +07:00
databaseexception.php Correctly namespace and autoload DatabaseException 2014-11-27 11:10:04 +07:00
databasesetupexception.php Correctly namespace DatabaseSetupException 2014-11-26 12:30:07 +07:00
datetimeformatter.php Correctly inject the language into the subcall 2014-12-12 11:00:07 +07:00
datetimezone.php Move timezone logic out of server.php 2014-12-16 16:16:22 +07:00
db.php Add tableExists to public db api 2014-12-09 17:26:53 +07:00
defaults.php Support HTML in logo claim 2014-11-03 21:14:27 +07:00
eventsource.php
filechunking.php
fileproxy.php
files.php Move constants from GET_TYPE to OC\Files so they can be autoloaded 2014-11-26 12:56:54 +07:00
forbiddenexception.php
geo.php
group.php Add REST route for user & group management 2014-12-08 12:11:01 +07:00
helper.php Improve the bitmap and vector mime icons 2014-12-02 21:11:56 +07:00
hintexception.php
hook.php
httphelper.php Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +07:00
image.php Do not call filesize(null), this function expects a string. 2014-12-18 20:57:19 +07:00
installer.php Limit blacklist to php files 2014-11-27 20:26:45 +07:00
json.php
l10n.php Correctly fallback to english, if the plural case is not translated 2014-12-11 12:42:21 +07:00
largefilehelper.php Check if open_basedir is set 2014-12-11 00:09:55 +07:00
log.php Remove changes which were inadvertently pushed to master 2014-12-08 04:03:02 +07:00
mail.php
mimetypes.list.php
naturalsort.php Move NaturalSort_DefaultCollator to its own file 2014-11-27 17:47:21 +07:00
naturalsort_defaultcollator.php Move NaturalSort_DefaultCollator to its own file 2014-11-27 17:47:21 +07:00
navigationmanager.php
needsupdateexception.php
notsquareexception.php
ocs.php
ocsclient.php
preferences.php LDAP User Cleanup: Port from stable7 without further adjustements 2014-12-19 19:47:54 +07:00
preview.php Allow disabling previews per mount 2014-12-17 14:03:50 +07:00
previewmanager.php
repair.php delete old previews 2014-11-25 15:42:02 +07:00
repairexception.php
repairstep.php
request.php Add workaround for older instances 2014-12-03 21:13:27 +07:00
response.php Allow any outgoing XHR connections 2014-10-30 00:00:40 +07:00
search.php introduce inApps[] filter for search via ajax query, make file results show up in files app only 2014-12-10 15:51:59 +07:00
server.php Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +07:00
serviceunavailableexception.php
setup.php Trim port from domain 2014-12-03 19:59:50 +07:00
subadmin.php
systemconfig.php Extract interaction with config.php into SystemConfig 2014-12-08 22:29:42 +07:00
tagmanager.php Add user parameter to tag manager 2014-12-11 12:22:28 +07:00
tags.php Add getTagsForObjects in ITags 2014-12-08 22:02:00 +07:00
template.php Fix extra quotes in custom tags in header 2014-12-18 12:40:08 +07:00
templatelayout.php Inject config 2014-12-10 01:13:38 +07:00
tempmanager.php
updater.php Inject config 2014-12-10 01:13:38 +07:00
urlgenerator.php Introduce app info xml parser including basic unit test - necessary for #10777 2014-11-25 11:53:28 +07:00
user.php Merge pull request #12923 from owncloud/ultra-slim-version-of-incognito-mode 2014-12-19 14:54:11 +07:00
util.php make sure styles and scripts are only loaded once 2014-12-16 18:26:43 +07:00
vobject.php