Agendav Davical: Cannot login

661 views
Skip to first unread message

Alexis

unread,
Mar 20, 2014, 7:49:02 AM3/20/14
to agendav...@googlegroups.com
Dear all,

I recently installed Agendav and Davical and I'm trying to make them communicate. Davical seems to work fine as I can access calendars from Sunbird and Outlook. I then configured Agendav to access the Davical server. Next I open the Agendav home page, fill login and password : the browser stay on the login page, without any message. When I try to fill an incorrect login/password, I get the message "Invalid username or password", so I guess some informations are received.
On the other hand, no file log is written. I set:

$config['log_path'] = '/var/log/agendav';

but nothing appear in this folder (and all users have write rights). For information, configtest.php shows all is ok.

Could someone provide informations on steps to check what could be wrond, or best provide some explainations on this issue?

Thanks

Alexis

Jorge López Pérez

unread,
Mar 21, 2014, 7:09:01 AM3/21/14
to agendav...@googlegroups.com
Hi Alexis,

On Thu, Mar 20, 2014, at 12:49, Alexis wrote:

> Could someone provide informations on steps to check what could be wrond,
> or best provide some explainations on this issue?

Information about your environment and your caldav.php configuration
file would be handy.

Does the DAViCal log show anything about this authentication?

Regards.

--
Jorge López Pérez
http://adobo.org

Alexis Barbot

unread,
Mar 21, 2014, 10:13:25 AM3/21/14
to agendav...@googlegroups.com
Hi,

Thanks for your interest. I put below the content of my caldav.php file. Davical and Agendav are installed on the same CentOs 6 server. Davical is installed in /var/www/html/davical. I initially installed Agendav in /var/www/adobo-agendav-84f869e with a symlink in /var/www/html/agendav to /var/www/adobo-agendav-84f869e/web/public, but in order to check php execution rights I re-installed it in /var/www/html/adobo-agendav-84f869e. I also put below some output of the httpd logs, as those are the only log informations I could find.

Thanks

Alexis

Content of caldav.php
<?php
$config['caldav_http_auth_method'] = CURLAUTH_BASIC;
$config['caldav_principal_url'] = 'http://localhost/davical/caldav.php/%u/';
$config['caldav_calendar_url'] = 'http://localhost/davical/caldav.php/%s/';
$config['public_caldav_url'] = 'http://localhost/davical/';
$config['enable_calendar_sharing'] = TRUE;
$config['owner_permissions'] = array('all', 'read', 'unlock', 'read-acl',
                'read-current-user-privilege-set', 'write-acl', 'C:read-free-busy',
                'write', 'write-properties', 'write-content', 'bind', 'unbind');
$config['read_profile_permissions'] = array('C:read-free-busy', 'read');
$config['read_write_profile_permissions'] = array('C:read-free-busy',
                'read', 'write');
$config['default_permissions'] = array('C:read-free-busy');



When I try to log in Agendav, here is the output of /var/log/httpd/access_log:

::1 - MY_LOGIN [21/Mar/2014:14:40:34 +0100] "OPTIONS /davical/caldav.php/MY_LOGIN/ HTTP/1.1" 200 - "-" "AgenDAV v1.2.6.2"
CLIENT_IP - - [21/Mar/2014:14:40:33 +0100] "POST /adobo-agendav-84f869e/web/public/index.php/login HTTP/1.1" 302 - "http://SERVER_IP/agendav/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
CLIENT_IP - - [21/Mar/2014:14:40:34 +0100] "GET /adobo-agendav-84f869e/web/public/index.php/main HTTP/1.1" 302 - "http://SERVER_IP/agendav/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
CLIENT_IP - - [21/Mar/2014:14:40:34 +0100] "GET /adobo-agendav-84f869e/web/public/index.php/login HTTP/1.1" 200 5763 "http://SERVER_IP/agendav/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
CLIENT_IP - - [21/Mar/2014:14:40:34 +0100] "GET /adobo-agendav-84f869e/web/public/index.php/js_generator/prefs HTTP/1.1" 200 723 "http://SERVER_IP/adobo-agendav-84f869e/web/public/index.php/login" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
CLIENT_IP - - [21/Mar/2014:14:40:34 +0100] "GET /adobo-agendav-84f869e/web/public/index.php/strings/load/1.2.6.2 HTTP/1.1" 200 6154 "http://SERVER_IP/adobo-agendav-84f869e/web/public/index.php/login" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"

and here is the output when I launch Sunbird:

CLIENT_IP - - [21/Mar/2014:14:55:58 +0100] "PROPFIND /davical/caldav.php/MY_LOGIN/calendar/ HTTP/1.1" 401 40 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091211 Sunbird/1.0b1"
CLIENT_IP - MY_LOGIN [21/Mar/2014:14:55:58 +0100] "PROPFIND /davical/caldav.php/MY_LOGIN/calendar/ HTTP/1.1" 207 550 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091211 Sunbird/1.0b1"
CLIENT_IP - - [21/Mar/2014:14:55:58 +0100] "OPTIONS /davical/caldav.php/MY_LOGIN/ HTTP/1.1" 401 40 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091211 Sunbird/1.0b1"
CLIENT_IP - MY_LOGIN [21/Mar/2014:14:55:58 +0100] "OPTIONS /davical/caldav.php/MY_LOGIN/ HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091211 Sunbird/1.0b1"
CLIENT_IP - MY_LOGIN [21/Mar/2014:14:55:58 +0100] "PROPFIND /davical/caldav.php/MY_LOGIN/ HTTP/1.1" 207 790 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091211 Sunbird/1.0b1"
CLIENT_IP - MY_LOGIN [21/Mar/2014:14:55:58 +0100] "PROPFIND /davical/caldav.php/MY_LOGIN/calendar/ HTTP/1.1" 207 1963 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091211 Sunbird/1.0b1"
CLIENT_IP - MY_LOGIN [21/Mar/2014:14:55:58 +0100] "REPORT /davical/caldav.php/MY_LOGIN/calendar/ HTTP/1.1" 207 3252 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091211 Sunbird/1.0b1"
CLIENT_IP - MY_LOGIN [21/Mar/2014:14:55:59 +0100] "PROPFIND /davical/caldav.php/MY_LOGIN/.in/ HTTP/1.1" 207 532 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091211 Sunbird/1.0b1"




--
You received this message because you are subscribed to a topic in the Google Groups "AgenDAV general" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/agendav-general/SOZ5vecJtIw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to agendav-gener...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Claude Duvergier

unread,
Mar 21, 2014, 7:37:57 PM3/21/14
to agendav...@googlegroups.com
I think using localhost in caldav.php config is the problem.


This this is what I use:

agendav-dir/web/config/caldav.php (other $config elements are the same):
$config['caldav_http_auth_method'] = CURLAUTH_BASIC;
$config['caldav_principal_url'] = 'http://davical.example.com/caldav.php/%u/';
$config['caldav_calendar_url'] = 'http://davical.example.com/caldav.php/%s/';
$config['public_caldav_url'] = 'http://davical.example.com/caldav.php/%s/';

Hope it helps

--
Claude


--
You received this message because you are subscribed to the Google Groups "AgenDAV general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agendav-gener...@googlegroups.com.

Jorge López Pérez

unread,
Mar 23, 2014, 3:01:08 PM3/23/14
to agendav...@googlegroups.com
Hi Alexis,

On Fri, Mar 21, 2014, at 15:13, Alexis Barbot wrote:
> ::1 - MY_LOGIN [21/Mar/2014:14:40:34 +0100] "OPTIONS
> /davical/caldav.php/MY_LOGIN/ HTTP/1.1" 200 - "-" "AgenDAV v1.2.6.2"

What does the following curl call print?

curl -u YOUR_LOGIN -v -X OPTIONS
http://localhost/davical/caldav.php/YOUR_LOGIN/ ?

Perhaps it's not an AgenDAV <-> DAViCal communication issue, but a
session issue. What are your cookie_* settings? Do they match the URL
you use to access AgenDAV?

Alexis Barbot

unread,
Mar 24, 2014, 4:36:45 AM3/24/14
to agendav...@googlegroups.com
Hi,

Thanks for your help. First: I changed localhost for the ip server, but this didn't change anything.
Second, here is the curl command output (after replaced my login by MY_LOGIN the the server ip by SERVER_IP:

curl -u MY_LOGIN -v -X OPTIONS http://SERVER_IP/davical/caldav.php/MY_LOGIN

Enter host password for user 'MY_LOGIN':
* timeout on name lookup is not supported
* About to connect() to SERVER_IP port 80 (#0)
*   Trying SERVER_IP...
* connected
* Connected to SERVER_IP (SERVER_IP) port 80 (#0)
* Server auth using Basic with user 'MY_LOGIN'
> OPTIONS /davical/caldav.php/MY_LOGIN HTTP/1.1
> Authorization: Basic YWxleGlzLmJhcmJvdDo9TU9UMnBhc3NlPQ==
> User-Agent: curl/7.26.0
> Host: SERVER_IP
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Mon, 24 Mar 2014 08:17:22 GMT
< Server: Apache/2.2.15 (CentOS)
< X-Powered-By: PHP/5.3.3
< DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
< DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
< Content-Location: /davical/caldav.php/MY_LOGIN/
< Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, HEAD, MKCOL, MKCALENDAR, PROPPATCH, BIND, ACL
< X-DAViCal-Version: DAViCal/1.1.1; DB/1.2.11
< Content-Length: 0
< Connection: close
< Content-Type: text/plain; charset="utf-8"
<
* Closing connection #0


Alexis



Jorge López Pérez

unread,
Mar 26, 2014, 6:51:55 AM3/26/14
to agendav...@googlegroups.com
Hi Alexis,

did you check your cookie_* settings?

Regards.

On Mon, Mar 24, 2014, at 9:36, Alexis Barbot wrote:
> Hi,
>
> Thanks for your help. First: I changed localhost for the ip server, but
> this didn't change anything.
> Second, here is the curl command output (after replaced my login by
> MY_LOGIN the the server ip by SERVER_IP:
> [...]

Alexis Barbot

unread,
Mar 26, 2014, 11:21:39 AM3/26/14
to agendav...@googlegroups.com
Hi,

Thanks for your help. It seems I almost solved my problems: that was a mix of 1) pg_hba.conf parameters not set correctly and 2) skipping the database upgrade step in agendav installation. I'll let you know if I'm still having problems. So I beg your pardon for investigating this newb issue and thanks again.

Alexis

Jorge López Pérez

unread,
Mar 27, 2014, 5:38:25 AM3/27/14
to agendav...@googlegroups.com
Hi Alexis,

On Wed, Mar 26, 2014, at 16:21, Alexis Barbot wrote:
> So I beg your pardon for investigating this newb issue and
> thanks
> again.

No worries, shit happens :-)

Regards.
Reply all
Reply to author
Forward
0 new messages