Commit Graph

44 Commits

Author SHA1 Message Date
Thomas Bruederli
8fc49e51a4 Use the right base_dn for listing records of the selected group 2014-01-16 08:49:19 +01:00
Aleksander Machniak
6b2b2eca5f Remove deprecated functions (these listed in bc.php file) usage 2013-12-22 14:12:15 +01:00
Aleksander Machniak
18b40c1a32 Fix issue where groups were not deleted when "Replace entire addressbook" option on contacts import was used (#1489420) 2013-12-04 13:58:43 +01:00
Thomas Bruederli
4c02ef0c5c Fix function calls after refactoring 2013-10-30 16:52:54 +01:00
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
2013-10-25 16:54:58 +02:00
Aleksander Machniak
e426ae262c Search for user DN only if one of bind_dn, base_dn, groups_base_dn settings
contains %dn variable
2013-10-04 11:51:59 +02:00
Thomas Bruederli
79367a5631 Save groups membership in VCard export (#1488509) 2013-09-08 15:36:05 +02:00
Aleksander Machniak
4287c9a2f9 Fix replacement variables in user-specific base_dn in some LDAP requests (#1489279) 2013-08-13 09:16:48 +02:00
Aleksander Machniak
3e7b9be05c Store group objectclass to member attribute mapping in one place, cs fixes 2013-07-03 14:22:17 +02:00
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
2013-07-03 12:00:25 +02:00
Aleksander Machniak
1b52cfc45f Support 'univentiongroup' objectclass, small code improvements 2013-06-26 15:09:22 +02:00
Aleksander Machniak
4feb8eb575 Refactoring in groups cache handling code, CS fixes 2013-06-26 10:51:29 +02:00
Thomas Bruederli
b373ac82e4 Don't query cache if static group_filter list is used 2013-06-26 09:53:42 +02:00
Thomas Bruederli
9eaf681b6b Describe group filter's name_attr in sample config; defaults to 'cn' if not specified 2013-06-26 09:10:41 +02:00
Aleksander Machniak
b200258d5a Fixed so ldap cache can be disabled
Fixed issue where ldap groups cache wasn't used correctly
2013-06-19 19:32:48 +02:00
Thomas Bruederli
8862f67513 Use the right attribute to display group names 2013-06-19 16:22:51 +02:00
Aleksander Machniak
5a6c3a169b Cache LDAP's user_specific search and use vlv for better performance (#1489186) 2013-06-19 14:05:30 +02:00
Aleksander Machniak
fae90da582 Fix debug setting in ldap classes 2013-06-19 09:11:06 +02:00
Aleksander Machniak
c64beed6bb Unify LDAP debug messages 2013-06-18 18:10:04 +02:00
Thomas Bruederli
4500b2f79b Consolidate quote_string() method usage; don't add additional filter if required field is already in search query 2013-06-18 14:33:11 +02:00
Thomas Bruederli
dd54725b21 Merge branch 'dev-advanced-ldap-groups':
- Refactoring: separated address book implementation from generic LDAP wrapper class
- Auto-detect and use VLV indices for all search operations
- Additional group configuration options for LDAP address books
- Allow address books to display a multi-level group hierarchy in the contacts list
2013-06-18 13:49:19 +02:00
Aleksander Machniak
b07426f0c5 Make LDAP cache engine configurable via ldap_cache and ldap_cache_ttl options 2013-06-06 08:58:59 +02:00
Aleksander Machniak
3725cfb245 Avoid uninitialized/unused variables 2013-05-07 15:12:22 +02:00
Aleksander Machniak
4741d17c77 Use create_function() instead of eval() 2013-05-01 13:56:35 +02:00
Thomas Bruederli
c2e1ab4765 Escape user input values when used in eval() 2013-05-01 13:26:07 +02:00
Aleksander Machniak
ec43311423 Fix so addressbook_search_mode works also for group search (#1489079) 2013-05-01 09:46:29 +02:00
Aleksander Machniak
40d419d994 Fix removal of a contact from a group in LDAP addressbook (#1489081) 2013-04-30 19:28:07 +02:00
Thomas Bruederli
807c3d0d97 Optimmize memory usage by only fetching the necessary attributes used for contacts listing 2013-02-14 11:58:28 +01:00
Thomas Bruederli
c8a714cca4 Various fixes in contact groups handling with LDAP directories 2013-02-14 09:54:06 +01:00
Thomas Bruederli
772b732068 Fix autocompletion search with VLV support 2013-02-13 18:02:55 +01:00
Thomas Bruederli
f924f5f0aa Improve group members listing + fix VLV index usage 2013-02-13 16:57:16 +01:00
Thomas Bruederli
49cb6984ed Don't save 'internal' or empty serialized values 2013-02-13 15:18:32 +01:00
Thomas Bruederli
004f866f20 Prepare for VLV auto-detection (requries 'config_root_dn' config option) 2013-02-13 13:58:55 +01:00
Thomas Bruederli
203323ba85 Refactored the LDAP address book into a generic LDAP wrapper class and an address book implementation (as already started in the devel-ldap-refactoring branch) 2013-02-13 12:27:51 +01:00
Thomas Bruederli
86552ffc8f Finish hierarchical groups browsing in LDAP address books; add according UI elements and styles to the skins; adapt habavior of the compose address book widget 2013-02-07 15:35:30 +01:00
Thomas Bruederli
ec2185a1cb Add special config attribute 'group_filters' to specify a fixed list of groups to be listed in the leftmost pane, each having individual base-dn/filter parameters for contact listing 2013-02-05 16:12:37 +01:00
Thomas Bruederli
c5a5f989a9 Allow to list contact groups in (paged) list (yet incomplete) 2013-02-01 15:24:33 +01:00
Thomas Bruederli
e114a60406 Use LDAP fallback hosts on connect + bind because with OpenLDAP 2.x ldap_connect() always succeeds but ldap_bind() will fail if host isn't reachable.
Add option for LDAP bind timeout (sets LDAP_OPT_NETWORK_TIMEOUT on PHP > 5.3.0)
2013-01-23 18:01:02 +01:00
Aleksander Machniak
83f7077ec9 Fix searching by date in address book (#1488888) 2013-01-07 14:21:25 +01:00
Aleksander Machniak
d2534c63f2 Cleanup, remove file paths from doc 2012-12-18 09:07:00 +01:00
Aleksander Machniak
1aaa4bc393 Fix PHP Warning: ldap_parse_virtuallist_control() expects parameter 2 to be
resource, null given. This happens on Administrative Limit Exceeded error when
using VLV.
2012-12-10 12:42:45 +01:00
Aleksander Machniak
5b06e24265 Cleaner way of handling user password in framework-based programs with no session 2012-11-26 10:27:19 +01:00
Aleksander Machniak
789e5988aa Clarify rcube::get_user_name() usage, add rcube::get_user_email() 2012-11-26 10:08:40 +01:00
Aleksander Machniak
ba6f21caeb Framework files moved to lib/Roundcube 2012-11-21 19:52:03 +01:00