Projects
Kolab:Winterfell
kolab-autoconf
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 7
View file
kolab-autoconf.spec
Changed
@@ -23,8 +23,8 @@ %global _ap_sysconfdir %{_sysconfdir}/%{httpd_name} Name: kolab-autoconf -Version: 0.1 -Release: 0.20150702.git5399081%{?dist} +Version: 0.2 +Release: 1%{?dist} Summary: Autodiscovery for clients of Kolab Groupware Group: Applications/Internet @@ -69,5 +69,8 @@ %attr(0750,%{httpd_user},%{httpd_group}) %{_var}/log/%{name} %changelog +* Tue Sep 26 2017 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.2-1 +- Release of version 0.2 + * Tue Sep 9 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.1-1 - Initial version
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +kolab-autoconf (0.2-1) unstable; urgency=medium + + * Release of version 0.2. + + -- Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Tue, 26 Sep 2017 16:24:02 +0100 + kolab-autoconf (0.1-1) trusty; urgency=medium * Initial release.
View file
kolab-autoconf-0.1.tar.gz/docs/README -> kolab-autoconf-0.2.tar.gz/docs/README
Changed
@@ -23,12 +23,12 @@ 1. Apache # for https://domain.tld (and https://autodiscover.domain.tld) -Alias /autodiscover/autodiscover.xml /usr/share/kolab-autodiscover/public_html -Alias /Autodiscover/Autodiscover.xml /usr/share/kolab-autodiscover/public_html -Alias /AutoDiscover/AutoDiscover.xml /usr/share/kolab-autodiscover/public_html +Alias /autodiscover/autodiscover.xml /usr/share/kolab-autoconf/public_html/index.php +Alias /Autodiscover/Autodiscover.xml /usr/share/kolab-autoconf/public_html/index.php +Alias /AutoDiscover/AutoDiscover.xml /usr/share/kolab-autoconf/public_html/index.php # for http://autoconfig.domain.tld -Alias /mail/config-v1.1.xml /usr/share/kolab-autodiscover/public_html -# for http://domain.tld -Alias /.well-known/autoconfig/mail/config-v1.1.xml /usr/share/kolab-autodiscover/public_html +Alias /mail/config-v1.1.xml /usr/share/kolab-autoconf/public_html/index.php +# for http://domain.tld/index.php +Alias /.well-known/autoconfig/mail/config-v1.1.xml /usr/share/kolab-autoconf/public_html/index.php 2. Add [autodiscover] section in /etc/kolab/kolab.conf (see sample kolab.conf.sample)
View file
kolab-autoconf-0.1.tar.gz/docs/kolab-autoconf.conf -> kolab-autoconf-0.2.tar.gz/docs/kolab-autoconf.conf
Changed
@@ -1,11 +1,11 @@ # for https://domain.tld (and https://autodiscover.domain.tld) -Alias /autodiscover/autodiscover.xml /usr/share/kolab-autoconf/public_html -Alias /Autodiscover/Autodiscover.xml /usr/share/kolab-autoconf/public_html -Alias /AutoDiscover/AutoDiscover.xml /usr/share/kolab-autoconf/public_html +Alias /autodiscover/autodiscover.xml /usr/share/kolab-autoconf/public_html/index.php +Alias /Autodiscover/Autodiscover.xml /usr/share/kolab-autoconf/public_html/index.php +Alias /AutoDiscover/AutoDiscover.xml /usr/share/kolab-autoconf/public_html/index.php # for http://autoconfig.domain.tld -Alias /mail/config-v1.1.xml /usr/share/kolab-autoconf/public_html +Alias /mail/config-v1.1.xml /usr/share/kolab-autoconf/public_html/index.php # for http://domain.tld -Alias /.well-known/autoconfig/mail/config-v1.1.xml /usr/share/kolab-autoconf/public_html +Alias /.well-known/autoconfig/mail/config-v1.1.xml /usr/share/kolab-autoconf/public_html/index.php <Directory "/usr/share/kolab-autoconf/public_html"> AllowOverride None
View file
kolab-autoconf-0.1.tar.gz/lib/AutodiscoverMicrosoft.php -> kolab-autoconf-0.2.tar.gz/lib/AutodiscoverMicrosoft.php
Changed
@@ -40,9 +40,7 @@ protected function handle_request() { $post = $_SERVER['REQUEST_METHOD'] == 'POST' ? file_get_contents('php://input') : null; -//$this->email = 'alec@alec.pl'; -//$this->type = 'mobilesync'; -//return; + Log::debug('Request [microsoft]: ' . $post); if (empty($post)) { @@ -52,12 +50,19 @@ // parse XML try { $xml = new SimpleXMLElement($post); + $ns = $xml->getDocNamespaces(); + + if (empty($ns) || empty($ns[''])) { + $this->error("Invalid input. Missing XML request schema"); + } - if ($email = $xml->xpath('/Autodiscover/Request/EMailAddress')) { + $xml->registerXPathNamespace('request', $ns['']); + + if ($email = $xml->xpath('//request:EMailAddress')) { $this->email = (string) array_shift($email); } - if ($schema = $xml->xpath('/Autodiscover/Request/AcceptableResponseSchema')) { + if ($schema = $xml->xpath('//request:AcceptableResponseSchema')) { $schema = (string) array_shift($schema); if (strpos($schema, 'mobilesync')) { @@ -105,10 +110,10 @@ $xml = new DOMDocument('1.0', Autodiscover::CHARSET); // create main elements (tree) - $doc = $xml->createElementNS(self::MOBILESYNC_NS, 'Autodiscover'); + $doc = $xml->createElementNS(self::NS, 'Autodiscover'); $doc = $xml->appendChild($doc); - $response = $xml->createElement('Response'); + $response = $xml->createElementNS(self::MOBILESYNC_NS, 'Response'); $response = $doc->appendChild($response); $user = $xml->createElement('User'); @@ -124,14 +129,14 @@ $server = $settings->appendChild($server); // configuration -/* + $dispname = $xml->createElement('DisplayName'); $dispname = $user->appendChild($dispname); - $dispname->appendChild($xml->createTextNode($this->config['user'])); -*/ + $dispname->appendChild($xml->createTextNode($this->config['username'])); + $email = $xml->createElement('EMailAddress'); $email = $user->appendChild($email); - $email->appendChild($xml->createTextNode($this->config['email'])); + $email->appendChild($xml->createTextNode($this->config['login'] ?: $this->config['email'])); $element = $xml->createElement('Type'); $element = $server->appendChild($element); @@ -177,11 +182,11 @@ $action->appendChild($xml->createTextNode('settings')); // configuration -/* + $dispname = $xml->createElement('DisplayName'); $dispname = $user->appendChild($dispname); - $dispname->appendChild($xml->createTextNode($this->config['user'])); -*/ + $dispname->appendChild($xml->createTextNode($this->config['username'])); + $email = $xml->createElement('AutoDiscoverSMTPAddress'); $email = $user->appendChild($email); $email->appendChild($xml->createTextNode($this->config['email']));
View file
kolab-autoconf.dsc
Changed
@@ -2,7 +2,7 @@ Source: kolab-autoconf Binary: kolab-autoconf Architecture: all -Version: 0.1-1~kolab1 +Version: 0.2-1 Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Tobias Brunner <tobias.brunner@vshn.ch> Homepage: http://www.kolab.org/ @@ -13,5 +13,5 @@ Package-List: kolab-autoconf deb admin extra Files: - 00000000000000000000000000000000 0 kolab-autoconf-0.1.tar.gz + 00000000000000000000000000000000 0 kolab-autoconf-0.2.tar.gz 00000000000000000000000000000000 0 debian.tar.gz
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.