summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/connection.php
Commit message (Collapse)AuthorAgeFilesLines
* Move Connection to PSR-4Joas Schilling2016-05-251-612/+0
|
* Move interface to PSR-4Joas Schilling2016-05-251-0/+1
|
* Move LDAP Utility to PSR-4Joas Schilling2016-05-251-0/+1
|
* Merge pull request #24052 from owncloud/fix-ldap-cache-race-conditionsThomas Müller2016-04-251-19/+0
|\ | | | | Fix LDAP race conditions
| * Fix LDAP race conditionsMorris Jobke2016-04-201-19/+0
| | | | | | | | | | | | | | | | * getFromCache is wrapped in isCached * inbetween the two calls the cache entry hits it's TTL * getFromCache returns null * this fix only checkes if the returned value is null and return only non-null values
* | on clone Connection, do not take over the existing LDAP resourceArthur Schiwon2016-04-221-8/+2
|/ | | | | | | For one, it solves potential conflicts when using the resource. For the other, one on the login check (the only place where a clone happens currently) we do not need to rebind after confirming the user's login was successful.
* disable Paged Search when chunksize is set to 0, fixes #21136Arthur Schiwon2016-03-231-2/+3
|
* fix writing to cache when fallback server should be used immediatelyArthur Schiwon2016-03-161-2/+12
|
* improve log output when no LDAP user was found on login attemptArthur Schiwon2016-03-051-0/+2
|
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-011-1/+0
|
* Port of test_ldap_2nddispname to masterArthur Schiwon2016-02-031-0/+1
|
* [user_ldap] properly decode cached objectsMorris Jobke2016-01-291-1/+1
| | | | * fixes #21896
* Happy new year!Thomas Müller2016-01-121-2/+2
|
* wizard should also detect protocol errors, as side effect enforces LDAPv3Arthur Schiwon2015-12-051-0/+3
|
* always use an LDAP URL when connecting to LDAPArthur Schiwon2015-12-051-4/+0
|
* LDAP: attempt to connect to backup server again, if main server is not ↵Arthur Schiwon2015-11-031-20/+31
| | | | available. Fixes #18701
* Use "json_encode" and "json_decode" instead of unserializeLukas Reschke2015-09-021-2/+2
|
* remove unused varblizzz2015-07-291-2/+0
|
* Remove Log info when no group filter is set, fixes #17921blizzz2015-07-281-6/+0
| | | The log message is superfluous and too noisy. If an admin decides not to use groups, he does not need to be reminded about it on almost every request.
* update license headers and authorsMorris Jobke2015-06-251-1/+0
|
* if possible, getUserGroups should get memberships using memberOf virtual ↵Arthur Schiwon2015-06-031-0/+5
| | | | attribute
* drop global file cache support, fixes #15621Arthur Schiwon2015-05-071-6/+9
|
* fix cherrypickingJörn Friedrich Dreyer2015-04-101-1/+1
|
* fix typo and commentMorris Jobke2015-04-101-2/+2
|
* throw exception if setup is incompleteMorris Jobke2015-04-101-1/+3
|
* do not hide exception when ldap server has a hiccupJörn Friedrich Dreyer2015-04-101-1/+2
|
* Update license headersJenkins for ownCloud2015-03-261-13/+20
|
* Revert "Updating license headers"Morris Jobke2015-02-261-20/+14
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Merge pull request #13740 from owncloud/fix-12190-2Lukas Reschke2015-02-241-0/+1
|\ | | | | Include primary groups in user and login filter when restricting group access and also fix user counting in primary groups
| * and escape the search termArthur Schiwon2015-01-291-0/+1
| |
* | Updating license headersJenkins for ownCloud2015-02-231-14/+20
| |
* | Reduce log level of bind failed to WARN - fixes #11624Morris Jobke2015-02-031-1/+1
|/
* fix retrieval of user groupsArthur Schiwon2015-01-121-1/+3
|
* Merge pull request #12984 from owncloud/ldap-user-cleanup-masterLukas Reschke2015-01-091-1/+2
|\ | | | | Ldap user cleanup master
| * LDAP User Cleanup: Port from stable7 without further adjustementsArthur Schiwon2014-12-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Be less verbose when disabling SSL cert validationLyonel Vincent2014-12-241-1/+1
|/ | | change log level from WARN to DEBUG
* Split mapping from Access and Helper classes into it's own. Fully test them, ↵Arthur Schiwon2014-12-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | too. remove unused methods split mapping methods off from Access class fix DB query handling move 'clear mapping' methods from static helper to new mapping class add tests test directly with DB finishing tests and fix return value from setDNbyUUID add corresponding class for groups and make abstract test class neutral. helper tests is now obsolete as the tested functions were moved to the new mapper class. add missing info to PHPDoc add unmap method fix namespaces fix test inheritance PHPDoc and a small code restructure for scrutinizer, no effective changes PostgreSQL does not accept LIMIT in DELETE queries phpdoc fixes, no code changes
* support for AD primary groupsArthur Schiwon2014-07-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | support for primary groups actually the problem is only known on AD, it is only needed to take care of their attributes adjust to ADs special behaviour this change was not intended cache the SID value so it is not requested over and over again theres only one, use singular we are access add tests for new Access methods add tests for new Group methods address scrutinizer findings, mostly doc call ldap_explode_dn from ldap wrapper, enables tests without php5-ldap PHP Doc yo dawg, i heard you like backslashes … php doc fix PHPDoc updated and typos fixed while reviewing
* Port of LDAP Wizard: get correct total no of users, groups and complete ↵Arthur Schiwon2014-06-251-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | list of groups on big setups #9002 fix PHPdoc Conflicts: apps/user_ldap/lib/connection.php add method to count groups on LDAP Conflicts: apps/user_ldap/lib/access.php LDAP Wizard: count users and groups with the power of paged search Conflicts: apps/user_ldap/lib/wizard.php consolidate requirement check fix PHPdoc Conflicts: apps/user_ldap/lib/access.php Wizard: get really all groups from LDAP by power of Paged Search Conflicts: apps/user_ldap/lib/wizard.php make all this work in an early configuration state in the wizard by marking the config active and ignoring the validation state. Conflicts: apps/user_ldap/lib/connection.php simplify two methods a bit, because they are not used for group search anymore Conflicts: apps/user_ldap/lib/wizard.php remove unused vars; increase scrutinizer happiness
* Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-191-9/+9
| | | | * test case added to avoid adding them later
* Fix whitespace issuesRobin McCorkell2014-05-161-1/+1
|
* Fix PHPDoc in /appsRobin McCorkell2014-05-161-11/+11
|
* Merge pull request #8556 from owncloud/kill-legacy-code-masterThomas Müller2014-05-121-1/+1
|\ | | | | Kill legacy code master
| * remove legacy aka deprecated code: OC_CacheThomas Müller2014-05-121-1/+1
| |
* | That's bool and not always trueLukas Reschke2014-05-111-1/+1
| |
* | Use @return instead of @returnsLukas Reschke2014-05-111-1/+1
| |
* | Use proper PHPDoc and variable names in the LDAP libLukas Reschke2014-05-111-17/+36
|/ | | | My IDE was so sad about this that it marked the whole file in red and yellow and forced me to fix this.
* Fix PHPdoc in user_ldapBart Visscher2014-04-151-0/+3
| | | | using scrutinizer patch
* On clone create a new instance of the ConfigurationArthur Schiwon2014-03-211-0/+2
| | | | | To avide effects on the original instance of Connection when the clone is modified, for instance on authentication checks.
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2014-02-191-0/+3
| | | | | | | | | | | This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720 Enabled analysis tools: - PHP Analyzer - JSHint - PHP Copy/Paste Detector - PHP PDepend