Commit Graph

82 Commits (d36ea2aa86f9b5dfdbf39f3b8e1cf0c0025056d6)

Author SHA1 Message Date
Aleksander Machniak 8932abd2e7 CS fixes 6 years ago
Aleksander Machniak 57c67db029 Remove year(s) from copyright headers + some cleanup 6 years ago
Aleksander Machniak a35699637d Fix PHP error when using Net_LDAP3 from master
get_entry() method signature has changed. We don't really needed
that override in rcube_ldap_generic, so it's now removed.
6 years ago
Aleksander Machniak c1aa2169f6 Plugin API: Added 'ldap_connected' hook 6 years ago
Aleksander Machniak 03fef0d6ca New_user_identity: Fix %fu/%u vars substitution in user specific LDAP params (#6419) 6 years ago
Aleksander Machniak a2875cdda9 - Fix searching contacts by address in LDAP source (#6084) 7 years ago
Aleksander Machniak 97bf251dc6 Don't use create_function() deprecated in PHP 7.2 7 years ago
Aleksander Machniak 336a0cd87b strncasecmp() -> strcasecmp() 8 years ago
Aleksander Machniak 253aac5d9e Fix var name 8 years ago
Aleksander Machniak 0a7a95b714 Support LDAP GSSAPI authentication (#5703)
Requires https://git.kolab.org/rPNL1d87f98d300645e15b7ad2819fcffb19010a060f
8 years ago
Aleksander Machniak 712875bde1 Fix bug where base_dn setting was ignored inside group_filters (#5720) 8 years ago
Aleksander Machniak 19fcc35a55 Fix regression in LDAP fuzzy search where it always used prefix search instead (#5713) 8 years ago
Aleksander Machniak a99e479cb4 Fix variable substitution in ldap host for some use-cases, e.g. new_user_identity (#5544) 8 years ago
Aleksander Machniak 55cdf1569e Support contact+group searches in all relevant places (T1360)
Before the search worked only in Addressbook, not also in Compose.
The point of the change is also to align group searches with contact searches
in that it now uses the same set of attributes. Previously groups
in Compose were searched by name only.
8 years ago
Aleksander Machniak 53b5ccfb0c Fix regression where LDAP results could be counted incorrectly when using VLV
... broken by d08bd0a51f where we added searching in users+groups in one request
8 years ago
dsoares 8e7e22c656 Avoid PHP fatal error
After last change to file `rcube_ldap.php`, my roundcube instance was getting this error:
```
PHP Fatal error:  Cannot use object of type Net_LDAP3_Result as array in ...
```
In
```php
protected function extended_search($count = false)
```
`$result = $this->ldap->search()` returns a LDAP object (whatever package we use).
If the search returns no results (and if `$is_extended_search` is false), then it gets to line 971 trying to do a `usort()` and then a `count()` on an object, instead of an array.
9 years ago
Aleksander Machniak d08bd0a51f Searching in both contacts and groups when LDAP addressbook with group_filters option is used 9 years ago
Aleksander Machniak 7e3298753a Use ternary operator where aplicable 9 years ago
Aleksander Machniak c8c4cafb1f Add possibility to define date format in write operations for ldap attributes (#1488741) 9 years ago
Aleksander Machniak 1b39d9a6c7 PHP7: Fixed some E_WARNING errors that previously were E_STRICT 9 years ago
Aleksander Machniak 212e332cef Get rid of array_walk() when simple foreach() can be used 10 years ago
Aleksander Machniak d2890372c1 Fix Fatal error after last commit 10 years ago
Aleksander Machniak 6a8c4fc73b Fix issue when first search() argument is not an array 10 years ago
Aleksander Machniak a958748947 CS fixes 10 years ago
Thomas Bruederli 0f63418b7e Use Net_LDAP3::domain_root_dn() to resolve the domain DN for the %dc variable; replaces PR #268 10 years ago
Aleksander Machniak 6cdffbf1b6 Fix "PHP Fatal error: Using $this when not in object context" 10 years ago
Thomas Bruederli 36ee2c8427 Improve LDAP search by ignoring words order in fuzzy substring matching mode 10 years ago
Aleksander Machniak 5aa1d2005b Fix parsing ldap URI for cases where hostname is non-empty 10 years ago
Aleksander Machniak bf99c50cc1 Fix bug where empty fieldmap config entries caused empty results of ldap search (#1490229) 10 years ago
Aleksander Machniak aafccefb88 Properly set fuzzy_search for vlv searches 10 years ago
Aleksander Machniak 9e4246d957 Code improvements and fixes (mostly unused variables and methods) 10 years ago
Thomas Bruederli 028734b25c Make LDAP errors available to the application 10 years ago
Thomas Bruederli 834fb6858e Allow to search for LDAP groups with 'group_filter' enabled 10 years ago
Jeroen van Meeuwen (Kolab Systems) 8ee8be9b86 Correct reference to old function get_dn() 10 years ago
Jeroen van Meeuwen (Kolab Systems) 6ac9395fbd Use Net_LDAP3 10 years ago
Thomas Bruederli a2cf7c41b9 Fix accidental key replacements 11 years ago
Thomas Bruederli 1e9a59ab89 Don't remove messages from list when moving to another folder in multi-folder search mode, just update the list 11 years ago
Thomas Bruederli 532c10669b Support structured data for autocompletion results; map 'type' attribute to CSS class for autocomplete list items 11 years ago
Thomas Bruederli 8fc49e51a4 Use the right base_dn for listing records of the selected group 11 years ago
Aleksander Machniak 6b2b2eca5f Remove deprecated functions (these listed in bc.php file) usage 11 years ago
Aleksander Machniak 18b40c1a32 Fix issue where groups were not deleted when "Replace entire addressbook" option on contacts import was used (#1489420) 11 years ago
Thomas Bruederli 4c02ef0c5c Fix function calls after refactoring 11 years ago
Thomas Bruederli 3ce7c56826 Applied the (modified) patch to extend configuration possibilities of LDAP address books as suggested in #1488753:
- Add option to specify arbitrary replacements of config options with attributes from the bound user
- Allow mapping of group object class => member attribute used in these objects
- Describe the 'member_filter' property for groups config
11 years ago
Aleksander Machniak e426ae262c Search for user DN only if one of bind_dn, base_dn, groups_base_dn settings
contains %dn variable
11 years ago
Thomas Bruederli 79367a5631 Save groups membership in VCard export (#1488509) 11 years ago
Aleksander Machniak 4287c9a2f9 Fix replacement variables in user-specific base_dn in some LDAP requests (#1489279) 11 years ago
Aleksander Machniak 3e7b9be05c Store group objectclass to member attribute mapping in one place, cs fixes 12 years ago
Aleksander Machniak 42b9ce6415 Fix groups list in contact info page - get_record_groups() result
is a ID=>Name hash and cannot be merged with list_groups() result
12 years ago
Aleksander Machniak 1b52cfc45f Support 'univentiongroup' objectclass, small code improvements 12 years ago
Aleksander Machniak 4feb8eb575 Refactoring in groups cache handling code, CS fixes 12 years ago