Есть postfix+ldap, хотелось бы еще сетевой календарь. поставил davical, создаю там тестовых пользователей - работает. Но на деле нужна аунтификация через ldap. вот конфиг <?php $c->system_name = "Caldav Server"; $c->pg_connect[] = 'dbname=davical user=davical_app'; // $c->use_persistent = true; // $c->dbg["ALL"] = 1; // $c->dbg["request"] = 1; // $c->dbg['response'] = 1; // $c->dbg["component"] = 1; $c->dbg['caldav'] = 1; $c->dbg['querystring'] = 1; $c->dbg['icalendar'] = 1; $c->dbg['ics'] = 1; $c->dbg['login'] = 1; $c->dbg['options'] = 1; $c->dbg['get'] = 1; $c->dbg['put'] = 1; $c->dbg['propfind'] = 1; $c->dbg['proppatch'] = 1; $c->dbg['report'] = 1; $c->dbg['principal'] = 1; $c->dbg['user'] = 1; $c->dbg['vevent'] = 1; $c->dbg['rrule'] = 1; $c->authenticate_hook['call'] = 'LDAP_check'; $c->authenticate_hook['config'] = array( 'host' => '192.168.1.245', 'port' => '389', 'bindDN' => 'cn=admin,dc=mail', 'passDN' => 'gfhjkm', 'filterUsers' => 'objectClass=*', 'baseDNGroups' => 'ou=mailuser,dc=mail', 'protocolVersion' => 3, 'mapping_field' => array( 'username' => 'uid', 'updated' => 'modifyTimestamp', 'fullname' => 'cn', // "Common Name" 'user_no' => 'uidNumber', 'email' => 'mail'), 'format_updated'=> array('Y' => array(0,4), 'm' => array(4,2), 'd' => array(6,2), 'H' => array(8,2), 'M' => array(10,2), 'S' => array(12,2)), 'scope' => 'subtree', ); include('drivers_ldap.php'); ?>в логах: [Tue Sep 21 11:17:50 2010] [error] [client 192.168.1.67] davical: DBG: caldav: User agent: Evolution/2.28.3.1 [Tue Sep 21 11:17:50 2010] [error] [client 192.168.1.67] davical: LOG: :==========> method =OPTIONS= =http://192.168.1.224/icalc/caldav.php= =/antonpl_oit/= =/icalc= =/var= [Tue Sep 21 11:17:50 2010] [error] [client 192.168.1.67] davical: DBG: caldav:Version (0.9.7) == 9.7 [Tue Sep 21 11:17:50 2010] [error] [client 192.168.1.67] davical: LOG: always: Query: DBGQ: SELECT schema_major, schema_minor, schema_patch FROM awl_db_revision ORDER BY schema_id DESC LIMIT 1; [Tue Sep 21 11:17:50 2010] [error] [client 192.168.1.67] davical: DBG: caldav: User agent: Evolution/2.28.3.1 [Tue Sep 21 11:17:50 2010] [error] [client 192.168.1.67] davical: ***: ERROR:Couldn't contact LDAP server for authentication
|