[+] CalDav support
[*] fix caldav option [*] review fixes [*] review fixes
This commit is contained in:
parent
8ccef14a7c
commit
99b0078b18
6 changed files with 50 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
require_once 'ldap.cfg.php';
|
||||
require_once 'ldap.defaults.php';
|
||||
require_once 'ldap.siga.php';
|
||||
require_once 'caldav.php';
|
||||
|
||||
if(empty($_GET['user'])) {
|
||||
exit('Error: user not present');
|
||||
|
|
@ -20,7 +21,7 @@ if(!$ldap_bind) {
|
|||
exit('Error (' . ldap_errno($link) . '): ' . $ldap_error . "\n");
|
||||
}
|
||||
|
||||
$result_uid = ldap_search($link, $ldap_base, $ldap_filter);
|
||||
$result_uid = ldap_search($link, $ldap_base, $ldap_filter, $ldap_attributes);
|
||||
$entry_uid = ldap_first_entry($link, $result_uid);
|
||||
|
||||
if($entry_uid == false) {
|
||||
|
|
@ -82,6 +83,10 @@ else {
|
|||
}
|
||||
}
|
||||
|
||||
if ($caldav_enable == true) {
|
||||
$caldav_settings = makeCaldavSettings($caldav_entries, $caldav_base_url, $ldap_entryuuid);
|
||||
}
|
||||
|
||||
ldap_unbind($link);
|
||||
require_once 'ldap.settings.php';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue