Re: [SOGo] SOGo and CAS

2015-01-28 Thread Bruno Richard

thanks Jean-Philippe for your answer.
I tried but the browser always said that the page is not correctly 
redirected...


ans I always had the same message in the cas log :
 Response Code did not match any of the acceptable response codes. Code 
returned was 403

and bad credentials...

any clue ?
thanks in advance
Bruno

On 26/01/2015 09:35, Jean-Philippe Ghibaudo wrote:

Hi,

I guess you just need to request the REMOTE_USER header.
Where you have all your RequestHeader set, try add :

RequestHeader set x-webobjects-remote-user %{REMOTE_USER}e

Jean-Philippe

Le 21/01/2015 14:18, Bruno Richard a écrit :

Hi All,

I'm new to SOGo. I try to install it on debian jessie.
I want to authenticate users using CAS.
I had inserted in the cas keystore the cert of the apache that is in 
front of SOGo.
However, I have a cas error when I try to log in and the mailbox 
appears empty.


The cas error :
2015-01-21 10:49:25,735 DEBUG 
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Ticket 
[TGT-1-bmLPtKJbhpV5hDBdjhKsrESdgsbxSu002oIQVDmBoSITqwnJbf-cas.mydomain.fr] 
found in registry.
2015-01-21 10:49:25,742 DEBUG 
[org.jasig.cas.web.flow.CasFlowExecutionKeyFactory] - Removing flow 
execution '[Ended execution of 'login']' from repository
2015-01-21 10:49:25,742 DEBUG 
[org.jasig.cas.web.flow.CasFlowExecutionKeyFactory] - Removing flow 
execution '[Ended execution of 'login']' from repository
2015-01-21 10:49:25,959 DEBUG 
[org.jasig.cas.web.support.CasArgumentExtractor] - Extractor 
generated service for: https://webmail.mydomain.fr/SOGo/so/index
2015-01-21 10:49:25,962 DEBUG 
[org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler] 
- Attempting to resolve credentials for [callbackUrl: 
https://webmail.mydomain.fr/SOGo/casProxy]
2015-01-21 10:49:26,261 DEBUG [org.jasig.cas.util.HttpClient] - 
Response Code did not match any of the acceptable response codes. 
Code returned was 403
2015-01-21 10:49:26,262 INFO 
[org.jasig.cas.authentication.AuthenticationManagerImpl] - 
AuthenticationHandler: 
org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler 
failed to authenticate the user which provided the following 
credentials: [callbackUrl: https://webmail.mydomain.fr/SOGo/casProxy]
2015-01-21 10:49:26,263 DEBUG 
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Attempting to 
retrieve ticket [ST-1-hyppJtF9qvogghaPr9Yg-cas.mydomain.fr]
2015-01-21 10:49:26,263 DEBUG 
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Ticket 
[ST-1-hyppJtF9qvogjhaZr9Yg-cas.mydomain.fr] found in registry.
2015-01-21 10:49:26,264 ERROR 
[org.jasig.cas.web.ServiceValidateController] - TicketException 
generating ticket for: [callbackUrl: 
https://webmail.mydomain.fr/SOGo/casProxy]
org.jasig.cas.ticket.TicketCreationException: 
error.authentication.credentials.bad
at 
org.jasig.cas.CentralAuthenticationServiceImpl.delegateTicketGrantingTicket_aroundBody6(CentralAuthenticationServiceImpl.java:300)
at 
org.jasig.cas.CentralAuthenticationServiceImpl.delegateTicketGrantingTicket_aroundBody7$advice(CentralAuthenticationServiceImpl.java:44)
at 
org.jasig.cas.CentralAuthenticationServiceImpl.delegateTicketGrantingTicket(CentralAuthenticationServiceImpl.java:1)

[...]

Please help ! what can I do or test ?
thanks in advance
Bruno

Some points of my configuration :
/etc/sogo/sogo.conf
[...]
  SOGoAuthenticationType = cas;
  SOGoCASServiceURL = https://cas.mydomain.fr/cas;;
  WOWorkersCount = 10;
[...]

/etc/apache/conf-enabled/SOGo.conf
[...]
ProxyPass /SOGo/casProxy http://localhost/cgi-bin/cas-proxy-validate.py
Proxy http://localhost/cgi-bin/cas-proxy-validate.py
  Order deny,allow
  Allow from all
/Proxy

ProxyPass /SOGo http://127.0.0.1:2/SOGo retry=0

Proxy http://127.0.0.1:2/SOGo
  RequestHeader set x-webobjects-server-port 443
  RequestHeader set x-webobjects-server-name webmail.mydomain.fr
  RequestHeader set x-webobjects-server-url 
https://webmail.mydomain.fr;

  RequestHeader set x-webobjects-server-protocol HTTP/1.0

  AddDefaultCharset UTF-8

  Order allow,deny
  Allow from all
/Proxy
[...]










smime.p7s
Description: S/MIME Cryptographic Signature


[SOGo] Errors in log file: readBytes:count: may never return zero !

2015-01-28 Thread Andre Peters
Hello,

I attached a snippet of my log file and marked it.

Everything is running fine, I don't see any problems happening in the webmail 
client.

This only seems to happen sporadically, and only when someone uses the 
webmailer, but I am not sure. I am writing with the webmailer right now and the 
log is okay.

I hope that someone can help me to fix that. :-)

For IMAP I use two Dovecot servers replicated by TCP behind HAProxy in TCP mode 
(not as IMAP Proxy).


Bye,
André

IP - - [28/Jan/2015:11:42:38 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderINBOX/uids HTTP/1.1 200 1846/92 
0.060 5163 64% 0
IP - - [28/Jan/2015:11:42:38 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderINBOX/unseenCount HTTP/1.1 200 
13/0 0.317 - - 0
IP - - [28/Jan/2015:11:43:38 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderINBOX/unseenCount HTTP/1.1 200 
13/0 0.044 - - 0
IP - - [28/Jan/2015:11:43:38 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderINBOX/uids HTTP/1.1 200 1846/92 
0.095 5163 64% 0
IP - - [28/Jan/2015:11:44:08 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderDrafts/newDraft1422441547-1/save 
HTTP/1.1 200 2/189 0.197 - - 96K
IP - - [28/Jan/2015:11:44:08 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderDrafts/unseenCount HTTP/1.1 200 
13/0 0.082 - - 0
IP - - [28/Jan/2015:11:44:38 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderINBOX/uids HTTP/1.1 200 1846/92 
0.137 5163 64% 0
IP - - [28/Jan/2015:11:44:38 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderINBOX/unseenCount HTTP/1.1 200 
13/0 0.087 - - 0
IP - - [28/Jan/2015:11:45:38 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderINBOX/unseenCount HTTP/1.1 200 
13/0 0.047 - - 0
IP - - [28/Jan/2015:11:45:38 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderINBOX/uids HTTP/1.1 200 1846/92 
0.100 5163 64% 0
IP - - [28/Jan/2015:11:46:38 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderINBOX/uids HTTP/1.1 200 1846/92 
0.121 5163 64% 0
IP - - [28/Jan/2015:11:46:38 GMT] POST 
/SOGo/so/andre.pet...@debinux.de/Mail/0/folderINBOX/unseenCount HTTP/1.1 200 
13/0 0.139 - - 0

 ERRORS START HERE  

2015-01-28 11:47:00.829 sogod[7265] NGBufferedStream.m:299  Assertion failed in 
NGBufferedStream(instance), method readBytes:count:.  readBytes:count: may 
never return zero !
Jan 28 11:47:00 sogod [7265]: 0x0x7f1dc92ae9d0[NGImap4Client] 
ERROR(-[NGImap4Client _processUnknownCommandParserException:]): catched 
non-IMAP4 parsing exception NSInternalInconsistencyException: 
NGBufferedStream.m:299  Assertion failed in NGBufferedStream(instance), method 
readBytes:count:.  readBytes:count: may never return zero !
Jan 28 11:47:00 sogod [7265]: 0x0x7f1dc92ae9d0[NGImap4Client] TLS started 
successfully.
2015-01-28 11:47:07.833 sogod[7267] NGBufferedStream.m:299  Assertion failed in 
NGBufferedStream(instance), method readBytes:count:.  readBytes:count: may 
never return zero !
Jan 28 11:47:07 sogod [7267]: 0x0x7f1dc91cd130[NGImap4Client] 
ERROR(-[NGImap4Client _processUnknownCommandParserException:]): catched 
non-IMAP4 parsing exception NSInternalInconsistencyException: 
NGBufferedStream.m:299  Assertion failed in NGBufferedStream(instance), method 
readBytes:count:.  readBytes:count: may never return zero !
Jan 28 11:47:07 sogod [7267]: 0x0x7f1dc91cd130[NGImap4Client] TLS started 
successfully.
2015-01-28 11:47:18.393 sogod[7272] NGBufferedStream.m:299  Assertion failed in 
NGBufferedStream(instance), method readBytes:count:.  readBytes:count: may 
never return zero !
Jan 28 11:47:18 sogod [7272]: 0x0x7f1dc9183c50[NGImap4Client] 
ERROR(-[NGImap4Client _processUnknownCommandParserException:]): catched 
non-IMAP4 parsing exception NSInternalInconsistencyException: 
NGBufferedStream.m:299  Assertion failed in NGBufferedStream(instance), method 
readBytes:count:.  readBytes:count: may never return zero !
Jan 28 11:47:18 sogod [7272]: 0x0x7f1dc9183c50[NGImap4Client] TLS started 
successfully.
Jan 28 11:47:38 sogod [7272]: 0x0x7f1dc9183600[NGImap4Client] TLS started 
successfully.
IP - - [28/Jan/2015:11:47:38 GMT] POST 
/SOGo/so/user.n...@domain.tld/Mail/0/folderINBOX/uids HTTP/1.1 200 1846/92 
0.099 5163 64% 0
IP - - [28/Jan/2015:11:47:38 GMT] POST 
/SOGo/so/user.n...@domain.tld/Mail/0/folderINBOX/unseenCount HTTP/1.1 200 13/0 
0.315 - - 0
2015-01-28 11:47:52.195 sogod[7273] NGBufferedStream.m:299  Assertion failed in 
NGBufferedStream(instance), method readBytes:count:.  readBytes:count: may 
never return zero !
Jan 28 11:47:52 sogod [7273]: 0x0x7f1dc9173ce0[NGImap4Client] 
ERROR(-[NGImap4Client _processUnknownCommandParserException:]): catched 
non-IMAP4 parsing exception NSInternalInconsistencyException: 
NGBufferedStream.m:299  Assertion failed in NGBufferedStream(instance), method 
readBytes:count:.  readBytes:count: may never 

[SOGo] Problem on compiling Sogo Openchange Backend.

2015-01-28 Thread Nicolas Lécureuil

Hello,

i try to build the SOGo Openchange backend.

It fails to link with this error :


 Linking bundle SOGoBackend ...
./obj/SOGoBackend.obj/MAPIStoreTable.m.o:(.data.rel+0x10): undefined
reference to `__objc_class_name_EOKeyValueQualifier'
./obj/SOGoBackend.obj/MAPIStoreTable.m.o:(.data.rel+0x20): undefined
reference to `__objc_class_name_EOOrQualifier'
./obj/SOGoBackend.obj/MAPIStoreTable.m.o:(.data.rel+0x28): undefined
reference to `__objc_class_name_EOAndQualifier'
./obj/SOGoBackend.obj/MAPIStoreTable.m.o:(.data.rel+0x38): undefined
reference to `__objc_class_name_EONotQualifier'
./obj/SOGoBackend.obj/MAPIStoreDBFolder.m.o:(.data.rel+0x60): undefined
reference to `__objc_class_name_EOKeyValueQualifier'
./obj/SOGoBackend.obj/MAPIStoreDBMessageTable.m.o:(.data.rel+0x8): 
undefined

reference to `__objc_class_name_EOOrQualifier'
./obj/SOGoBackend.obj/MAPIStoreDBMessageTable.m.o:(.data.rel+0x10):
undefined reference to `__objc_class_name_EOKeyValueQualifier'
./obj/SOGoBackend.obj/MAPIStoreGCSFolder.m.o:(.data.rel+0x20): undefined
reference to `__objc_class_name_EOSortOrdering'
./obj/SOGoBackend.obj/MAPIStoreGCSFolder.m.o:(.data.rel+0x28): undefined
reference to `__objc_class_name_EOKeyValueQualifier'
./obj/SOGoBackend.obj/MAPIStoreGCSFolder.m.o:(.data.rel+0x50): undefined
reference to `__objc_class_name_EOFetchSpecification'
./obj/SOGoBackend.obj/MAPIStoreGCSFolder.m.o:(.data.rel+0x58): undefined
reference to `__objc_class_name_EOAndQualifier'
./obj/SOGoBackend.obj/MAPIStoreGCSMessageTable.m.o:(.data.rel+0x10):
undefined reference to `__objc_class_name_EOSortOrdering'
./obj/SOGoBackend.obj/MAPIStoreGCSMessageTable.m.o:(.data.rel+0x20):
undefined reference to `__objc_class_name_EOKeyValueQualifier'
./obj/SOGoBackend.obj/MAPIStoreCalendarFolder.m.o:(.data.rel+0x8): 
undefined

reference to `__objc_class_name_EOQualifier'
./obj/SOGoBackend.obj/MAPIStoreCalendarFolder.m.o:(.data.rel+0x28):
undefined reference to `__objc_class_name_SOGoAppointmentObject'
./obj/SOGoBackend.obj/MAPIStoreCalendarMessage.m.o:(.data.rel+0x10):
undefined reference to `__objc_class_name_SOGoAppointmentObject'
./obj/SOGoBackend.obj/MAPIStoreCalendarMessage.m.o:(.data.rel+0x20):
undefined reference to `__objc_class_name_EOFetchSpecification'
./obj/SOGoBackend.obj/MAPIStoreCalendarMessage.m.o:(.data.rel+0x28):
undefined reference to `__objc_class_name_EOQualifier'
./obj/SOGoBackend.obj/MAPIStoreCalendarMessageTable.m.o:(.data.rel+0x18):
undefined reference to `__objc_class_name_EOAndQualifier'
./obj/SOGoBackend.obj/MAPIStoreCalendarMessageTable.m.o:(.data.rel+0x20):
undefined reference to `__objc_class_name_EONotQualifier'
./obj/SOGoBackend.obj/MAPIStoreCalendarMessageTable.m.o:(.data.rel+0x30):
undefined reference to `__objc_class_name_EOKeyValueQualifier'
./obj/SOGoBackend.obj/MAPIStoreContactsFolder.m.o:(.data.rel+0x18):
undefined reference to `__objc_class_name_SOGoContactGCSEntry'
./obj/SOGoBackend.obj/MAPIStoreContactsMessage.m.o:(.data.rel+0x0):
undefined reference to `__objc_class_name_SOGoContactGCSEntry'
./obj/SOGoBackend.obj/MAPIStoreContactsMessageTable.m.o:(.data.rel+0x10):
undefined reference to `__objc_class_name_EOAndQualifier'
./obj/SOGoBackend.obj/MAPIStoreContactsMessageTable.m.o:(.data.rel+0x18):
undefined reference to `__objc_class_name_EOKeyValueQualifier'
./obj/SOGoBackend.obj/MAPIStoreTasksFolder.m.o:(.data.rel+0x8): 
undefined

reference to `__objc_class_name_EOQualifier'
./obj/SOGoBackend.obj/MAPIStoreTasksFolder.m.o:(.data.rel+0x20): 
undefined

reference to `__objc_class_name_SOGoTaskObject'
./obj/SOGoBackend.obj/MAPIStoreTasksMessage.m.o:(.data.rel+0x0): 
undefined

reference to `__objc_class_name_SOGoTaskObject'
./obj/SOGoBackend.obj/MAPIStoreTasksMessageTable.m.o:(.data.rel+0x10):
undefined reference to `__objc_class_name_EOKeyValueQualifier'
./obj/SOGoBackend.obj/MAPIStoreMailContext.m.o:(.data.rel+0x18): 
undefined

reference to `__objc_class_name_SOGoMailFolder'
./obj/SOGoBackend.obj/MAPIStoreMailFolder.m.o:(.data.rel+0x68): 
undefined

reference to `__objc_class_name_EOAndQualifier'
./obj/SOGoBackend.obj/MAPIStoreMailFolder.m.o:(.data.rel+0x70): 
undefined

reference to `__objc_class_name_EONotQualifier'
./obj/SOGoBackend.obj/MAPIStoreMailFolder.m.o:(.data.rel+0x80): 
undefined

reference to `__objc_class_name_EOKeyValueQualifier'
./obj/SOGoBackend.obj/MAPIStoreMailFolder.m.o:(.data.rel+0x88): 
undefined

reference to `__objc_class_name_EOQualifier'
./obj/SOGoBackend.obj/MAPIStoreMailFolder.m.o:(.data.rel+0xc0): 
undefined

reference to `__objc_class_name_SOGoMailFolder'
./obj/SOGoBackend.obj/MAPIStoreMailMessage.m.o:(.data.rel+0x0): 
undefined

reference to `__objc_class_name_SOGoMailObject'
./obj/SOGoBackend.obj/MAPIStoreMailMessageTable.m.o:(.data.rel+0x20):
undefined reference to `__objc_class_name_EOKeyValueQualifier'
collect2: error: ld returned 1 exit status


I already fixed some link errors but i don't pass to fix those ones.

Does someone have some ideas for those ones.

Thanks in 

Re: [SOGo] Add contact to addressbook from command line.

2015-01-28 Thread Rasca Gmelch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

under Ubuntu and OSX you can use the command
'uuidgen'

e.g.

#!/bin/bash

uid=`uuidgen`
file=${uid}.ics

echo $uid
echo $file

Regards,
 Rasca

Am 27.01.2015 um 22:57 schrieb Davide Bozzelli:
 Hi Abbas and thx for helping me
 
 Your idea works but does not solve the main problem: how to
 properly format the uid of the vcf entries in a way that is unique
 (that is ... not in use by other entity in SOGo db).
 
 Thx again


- -- 

Rasca Gmelch | IT | JabberID: rasca.gme...@artcom.de

OpenPGP Key ID: 8168E925, Key server: pool.sks-keyservers.net
Fingerprint 1FD0 3199 13B7 7ADC 5DF1 A8EF FA4C 4AC0 8168 E925


-BEGIN PGP SIGNATURE-

iQIcBAEBAgAGBQJUyJYMAAoJEPpMSsCBaOkl8n4QAI2QWS07Bnjv7BQ3eA9scWSl
PKH/ra5XdwG7Hoaj2gcpwF1NkGwAvzn4axaYmfFdqXTWGRpLGczEFxaoiOidxyik
tH2EUbidyhq9upSzf1vAuRayO/eiXg8roUBmNxOZSbktRzpzeVgL9JWeO8QrJsOp
IxMVZsJ8jip1Wwym0wvwTSXaptWL7blj0tjrsyWcbj0SeEwntQM4A6vANe5Rorr2
GpRSVUD3h5KG5K6w7u9PakTWmHmH2122gcxtcrp2p3hxBAloZbMYOfflSYUDtLDn
uOOYQX0eccVAAe3sv4tQQbNpcciHT9dtpIh24/T76ODo/LuzKP/CDfHPl0Ubfj3S
uYMRalow9uTL/66DVJV9ryRJo9P3mKF7zsvcUu7sTkiUXI4E7UqSU+f4vAZTo041
3RXo4fuNXThkzjf1s1F3Pa32qoQZLPLQygh8NUji81rXsGRKWqDGW8/1T3NIDj6F
R8rlBSlELvsC049SjK9hkRFmJm8cXhjpO9DJRVOqwyEImzoTsTScKatHMNwNFLoO
bAbE9691+rlxUmVlocwLGF4Xne5dZ4XqqrpiUqxPr+RbLznFYeC3q9bJoIBa57J3
n7nwgEnDPgSJdLMCMvS7cBiIaq94OTBOXHrq3XbIJkzrL7377ujbdvzrkzs8kWoB
rtwQxE68aMbi0dn+SS5d
=mUZa
-END PGP SIGNATURE-
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] BTS activities for Wednesday, January 28 2015

2015-01-28 Thread SOGo reporter
Title: BTS activities for Wednesday, January 28 2015





  
BTS Activities

  Home page: http://www.sogo.nu/bugs
  Project: SOGo
  For the period covering: Wednesday, January 28 2015

  
  
idlast updatestatus (resolution)categorysummary
	
	
	  
	
3081
	2015-01-28 06:23:24
	updated (open)
	ActiveSync
	Outlook 2013 does not send response to meeting organisers from external domain.
	
	  
	
3082
	2015-01-28 15:34:27
	updated (open)
	ActiveSync
	Meetings organised from Outlook 2013 do not get invitees RVSP updates
	
	  
	
3079
	2015-01-28 05:48:31
	updated (open)
	Apple iPhone OS
	Missing RVSP buttons when event invitation is received via CalDAV
	
	  
	
3080
	2015-01-28 05:54:23
	updated (open)
	Apple iPhone OS
	Meeting invitations not handled properly when EAS is used
	
	  
	
3069
	2015-01-28 16:44:09
	updated (open)
	Backend Calendar
	calendar crash
	
	  
	
3075
	2015-01-28 15:13:49
	updated (open)
	Web Calendar
	Imported event not editable
	
	  
	
3083
	2015-01-28 09:31:00
	updated (open)
	with SOGo
	I cannot add Google Calendar
	
	  
	
3076
	2015-01-28 15:17:03
	resolved (fixed)
	ActiveSync
	log onto Exchange ActiveSync mail server (EAS): The server cannot be found.
	
	  
	
  
  




[SOGo] EAS Push Improvements

2015-01-28 Thread Thomas Fuehrer
Hi,
a fix has been landed to improve the EAS Push behavior and eliminates several 
push related issues discusses recently on the mailing list.
Since these changes will be in the upcoming v2.2.15 release, please test the 
upcoming nightly builds and report your findings (www.sogo.nu/bugs).

Thanks,
Thomas
-- 
users@sogo.nu
https://inverse.ca/sogo/lists