Re: [SOGo] Building from Source

2019-04-26 Thread Andrey Cherepanov
25.04.2019 23:59, Robert A Wooldridge (bob.wooldri...@edm-inc.com) пишет:
> I'm trying to build SOGo v4.7 from the source code.  I've successfully
> compiled both sope and sogo but I can't seem to find sogo.conf file. 
> Where is it located when you do a manual build?
>
install -D -m 640 Scripts/sogo.conf /etc/sogo/sogo.conf

-- 
Andrey Cherepanov
c...@altlinux.org

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

Re: [SOGo] Unable to get access to SOGo for unknown reason.

2019-02-19 Thread Andrey Cherepanov

19.02.2019 22:09, Dmytro Lysytsyn (dmytro.lysyt...@gmail.com) пишет:

Hello there!
Hope you're doing well.
I'm trying to setup SOGo for the first time. And now I'm stuck with no 
visible reasons for it.

Would somebody please show me the right way?


Symptoms are: when I'm trying to log on to SOGo under any username 
('sogoadm' for example) using 'https://kntest3.ldvtest.org.ua/SOGo' 
link, this is happened:
1. it redirects me to '/SOGo/', where  is that 
what I'm trying to log on with. And it still shows me SOGo 
white-and-green login page.


2. If I try to login again (now with 
'https://kntest3.ldvtest.org.ua/SOGo/sogoadm' URL) it redirects me 
again. New URL is 'https://kntest3.ldvtest.org.ua/SOGo/so/sogoadm'.
3. If I'll still try to login it will silently redirect me on what 
last page again and again, i.g. URL will now always 
'https://kntest3.ldvtest.org.ua/SOGo/so/sogoadm' and nothing more 
happenes.




From mail from Julian Kippels at 21.09.2018 in users@sogo.nu:

Hi again,

I found the problem. It wasn't anything in the /etc/sogo/sogo.conf at
all. The problem was with the Apache configuration. When I comment out
this line


RequestHeader set "x-webobjects-server-url""https://%{HTTP_HOST}e";
env=HTTP_HOST


from /etc/httpd/conf.d/SOGo.conf everything works as it should.

Julian


See also fix in package:

http://git.altlinux.org/people/cas/packages/sogo.git?p=sogo.git;a=commit;h=6003f42429088b092ace1944d8d9b92fc48a7507

--
Andrey Cherepanov
c...@altlinux.org

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

Re: [SOGo] ANN: SOGo v3.2.6 released!

2017-01-24 Thread Andrey Cherepanov
23.01.2017 22:35, Ludovic Marcotte (lmarco...@inverse.ca) пишет:
> The Inverse Team is pleased to announce the immediate availability of
> SOGo v3.2.6. This is a minor release of SOGo which focuses on various
> enhancements and improved stability over previous versions.
Where is the tag in git?

-- 
Andrey Cherepanov
c...@altlinux.org
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Calendar time zone issue

2016-11-08 Thread Andrey Cherepanov
08.11.2016 19:02, Fulvio Parnigoni (fparnig...@videosoft.biz) пишет:
> 
> 
> Il 08/11/2016 14:39, Andrey Cherepanov (c...@altlinux.org) ha scritto:
>>> Why, in web gui, I have this issue ?
>> I have this issue. The problem is in strange result of
>> [NSTimeZone timeZoneWithAbbreviation: @"GMT"]
>> at SOPE/NGCards/NSString+NGCards.m:340 -
>>
>> for GMT - Europe/Gibraltar
>> for UTС - Antarctica/Troll
>>
>> pure gnustep-base timeZoneWithAbbreviation returns UTC in both cases.
>>
>> I build package with replacement timeZoneWithAbbreviation with
>> timeZoneWithName and it works correct:
>>
>> sed -i 's/timeZoneWithAbbreviation/timeZoneWithName/g' $(grep -Rl
>> timeZoneWithAbbreviation *)
>>
> Andrey, thanks for your reply.
> Very strange, I have five servers, four V2, only one V3, same set up and
> configuration.
> Only one shows up this issue.
> Then, I have to rebuild from sources ?
> Or, can I find the correct package online ?
I use ALT Linux and package SOGo for it. Well, we have fixed package.
See https://packages.altlinux.org/en/Sisyphus/srpms/sogo3

-- 
Andrey Cherepanov
c...@altlinux.org
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Calendar time zone issue

2016-11-08 Thread Andrey Cherepanov
08.11.2016 13:20, Fulvio Parnigoni (fparnig...@videosoft.biz) пишет:
> Hi all,
> Server side:
> - Sogo 2.3.17.20161108-1 (on Debian 7 + MySql + OpenDj )
> - dpkg-reconfigure tzdata
> Current default time zone: 'Europe/Rome'
> Local time is now:  Tue Nov  8 10:11:07 CET 2016.
> Universal Time is now:  Tue Nov  8 09:11:07 UTC 2016.
> - in /etc/sogo.conf:
> ..
> SOGoTimeZone = Europe/Rome;
> ...
> 
> Client side:
> - the clock is set properly
> - in the web gui I have in Preferences -> General -> Current Time Zone:
> Europe/Rome
>  - I create a new task, for example, From : 11:00 to 12:00, and save.
>  - in the web gui the new task is displayed From: 09:00 to 10:00
> - In Thunderbird (set as Caldav client) the task above is displayed
> From: 09:00, too.
> 
> If I create a new task through Thunderbirdeverything works fine.
> 
> Why, in web gui, I have this issue ?
I have this issue. The problem is in strange result of
[NSTimeZone timeZoneWithAbbreviation: @"GMT"]
at SOPE/NGCards/NSString+NGCards.m:340 -

for GMT - Europe/Gibraltar
for UTС - Antarctica/Troll

pure gnustep-base timeZoneWithAbbreviation returns UTC in both cases.

I build package with replacement timeZoneWithAbbreviation with
timeZoneWithName and it works correct:

sed -i 's/timeZoneWithAbbreviation/timeZoneWithName/g' $(grep -Rl
timeZoneWithAbbreviation *)

-- 
Andrey Cherepanov
c...@altlinux.org
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] GMT-0100 for Europe/Moscow

2016-09-29 Thread Andrey Cherepanov
26.09.2016 19:00, Andrey Cherepanov (c...@altlinux.org) пишет:
> I install SOGo at system with localtime MSK (Europe/Moscow, GMT+3).
> There is all task filled with correct local time in web ui saved with -4
> hours in database. And show with incorrect value. User has Europe/Moscow
> in her settings.
>
> For example, create new task with From: 18:57
> Save and click to task. From: 14:57.
>
> All timezones (tzdata, timezone from gnustep-base, Moscow.ics from SOGo,
> database entry from pg_timezone_names) are correct - +0300
>
> How to debug it?
Answer to myself:
There is strange result of [NSTimeZone timeZoneWithAbbreviation: @"GMT"]
at SOPE/NGCards/NSString+NGCards.m:340 -

for GMT - Europe/Gibraltar
for UTС - Antarctica/Troll

pure gnustep-base timeZoneWithAbbreviation returns UTC in both cases.

I build package with replacement timeZoneWithAbbreviation with
timeZoneWithName and it works correct:

sed -i 's/timeZoneWithAbbreviation/timeZoneWithName/g' $(grep -Rl
timeZoneWithAbbreviation *)

-- 
Andrey Cherepanov
c...@altlinux.org
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] GMT-0100 for Europe/Moscow

2016-09-26 Thread Andrey Cherepanov
I install SOGo at system with localtime MSK (Europe/Moscow, GMT+3).
There is all task filled with correct local time in web ui saved with -4
hours in database. And show with incorrect value. User has Europe/Moscow
in her settings.

For example, create new task with From: 18:57
Save and click to task. From: 14:57.

All timezones (tzdata, timezone from gnustep-base, Moscow.ics from SOGo,
database entry from pg_timezone_names) are correct - +0300

How to debug it?

-- 
Andrey Cherepanov
c...@altlinux.org
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] Small script for mass import vCard to SOGo

2016-08-01 Thread Andrey Cherepanov
I publish my small script to import from vCard files (extracted from
Microsoft Exchange PST by libpst) directly to SOGo database:

https://github.com/sibskull/import-contacts-to-sogo

Script uses Python3 module vobject, recommended version 1.9.2 built with
upstream commit fe78218: "vcard: Fix ORG fields with multiple components"

Usage:
./import-contacts-to-sogo -v \
--db "postgresql://sogo@/sogo2" \
--location "postgresql://sogo:1234@localhost:5432/sogo2" \
user_dod

I hope it will be useful for someone.

-- 
Andrey Cherepanov
c...@altlinux.org
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Unable to update to sogo 3.1.4

2016-07-15 Thread Andrey Cherepanov
15.07.2016 16:00, Patrice Levesque (pleves...@inverse.ca) пишет:
> 
> Hi,
> 
> 
>> sogo-openchange : Dépend: sogo (= 3.1.3-1) mais 3.1.4-1 devra être
>> installé
> 
>> What's going on ?
> 
> For all distributions of SOGo except Ubuntu Xenial, OpenChange support
> is being dropped.  So please `apt-get remove sogo-openchange` then
> proceed to the upgrade.
> 
> If you still need OpenChange support, please consider installing SOGo on
> Ubuntu Xenial.
> 
> (OpenChange support has been a hot topic on this list in the last weeks,
> but to give a quick explanation, current OpenChange needs Samba >= 4.4
> and from the set of distributions Inverse supports, only Xenial
> currently ships with Samba >= 4.4.)
Not for all distribuition. I package sogo{2,3}-openchange in ALT Linux.

-- 
Andrey Cherepanov
c...@altlinux.org



signature.asc
Description: OpenPGP digital signature


Re: [SOGo] RPM Building

2016-04-16 Thread Andrey Cherepanov

15.04.2016 19:00, Keith Williams (ke...@blue-hat.co.za) пишет:

Hi there,

Can someone point me to any RPM build docs/instructions for Sogo?
(3.0.x) I am not running git on production servers, so would be good to
get to bug fixes in git and build rpms/upgrades.

I build RPM with SOGo both for 2.x and 3.x:
http://git.altlinux.org/gears/s/sogo2.git
http://git.altlinux.org/gears/s/sogo3.git

or in
https://packages.altlinux.org/en/Sisyphus/srpms/sogo2
https://packages.altlinux.org/en/Sisyphus/srpms/sogo3
if you need spec file and patches.


I build from upstream git repository with spec using 
http://altlinux.org/Gear


Fist, you should build openchange and sope (2.x and 3.x). Look for spec 
file in repository.


--
Andrey Cherepanov
c...@altlinux.org
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Openchange + Samba 4.4.0

2016-04-13 Thread Andrey Cherepanov

12.04.2016 23:15, Rowland Penny (rpenny241...@gmail.com) пишет:

You don't need to remove that commit from samba, you can use something
like this
https://github.com/blaxter/openchange/commit/5f5783711d2c2496a824e66c8aa439781cac67fa
and it will compile just fine
--
users@sogo.nu
https://inverse.ca/sogo/lists


OK, I can now tell you, do not use Samba 4.1.18 with Openchange unless
you can backport the badlock patches or if Openchange does so, Samba
will not backport these packages.

There are various problems covered by the patches, chiefly there is a
risk of 'man in the middle' attacks.
That's true. But sogo2/sogo3 with openchange support cannot built with 
Samba 4.4.2 because try to include private library dlinklist.h and it 
include file change expected definition:


As result:
MAPIStoreContext.m: In function '+[MAPIStoreContext 
listAllContextsForUser:withIndexing:inMemCtx:]':
MAPIStoreContext.m:126:46: error: macro "DLIST_CONCATENATE" passed 3 
arguments, but takes just 2

 DLIST_CONCATENATE(list, current, void);
MAPIStoreContext.m:126:9: error: 'DLIST_CONCATENATE' undeclared (first 
use in this function)



--
Andrey Cherepanov
c...@altlinux.org
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Openchange + Samba 4.4.0

2016-03-25 Thread Andrey Cherepanov

25.03.2016 14:43, Rowland Penny (rpenny241...@gmail.com) пишет:

On 25/03/16 10:44, Andrey Cherepanov (c...@altlinux.org) wrote:

Can anybody compile openchange with samba 4.4.0? Now samba contains

commit 218f96f2bf10f7f03ec964c4515f6e248fc31ad8
Author: Jelmer Vernooij 
Date:   Mon Jan 4 00:56:10 2016 +

libcli: Make headers for private libraries private.

Signed-off-by: Jelmer Vernooij 
Reviewed-By: Andrew Bartlett 
Reviewed-By: Stefan Metzmacher 

ldap_ndr.h is now private header and is not available for openchange:
Compiling libmapiadmin/mapiadmin_user.c with -fPIC
libmapiadmin/mapiadmin_user.c:33:22: fatal error: ldap_ndr.h: No such
file or directory

OpenChange 2.4-zentyal22 is still use it:
$ git grep 'ldap_ndr.h>' | cat
libmapiadmin/mapiadmin_user.c:#include 
mapiproxy/servers/default/emsmdb/emsmdbp.c:#include 

I try to subscribe de...@lists.openchange.org and create issue on
https://github.com/zentyal/openchange but without any result.



As far as I am aware, you can only compile Openchange with Samba 4.1.18
and the 4.1.x series went EOL last Tuesday and I don't think the Samba
4.1.x series *will get any further updates*

The problem was that Openchange relied on Samba internal headers that
should never have been public (because they can and do change). You will
need to take this up with Openchange, but development of this seems to
have stalled.
Thanks for explanations. I simply revert this commit from Jelmer Vernooij 
and rebuild Samba. :)


--
Andrey Cherepanov
c...@altlinux.org
--
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] Openchange + Samba 4.4.0

2016-03-25 Thread Andrey Cherepanov

Can anybody compile openchange with samba 4.4.0? Now samba contains

commit 218f96f2bf10f7f03ec964c4515f6e248fc31ad8
Author: Jelmer Vernooij 
Date:   Mon Jan 4 00:56:10 2016 +

libcli: Make headers for private libraries private.

Signed-off-by: Jelmer Vernooij 
Reviewed-By: Andrew Bartlett 
Reviewed-By: Stefan Metzmacher 

ldap_ndr.h is now private header and is not available for openchange:
Compiling libmapiadmin/mapiadmin_user.c with -fPIC
libmapiadmin/mapiadmin_user.c:33:22: fatal error: ldap_ndr.h: No such 
file or directory


OpenChange 2.4-zentyal22 is still use it:
$ git grep 'ldap_ndr.h>' | cat
libmapiadmin/mapiadmin_user.c:#include 
mapiproxy/servers/default/emsmdb/emsmdbp.c:#include 

I try to subscribe de...@lists.openchange.org and create issue on 
https://github.com/zentyal/openchange but without any result.


--
Andrey Cherepanov
c...@altlinux.org
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Build SOGo+OpenChange failed

2015-12-17 Thread Andrey Cherepanov
14.12.2015 15:59, Andrey Cherepanov пишет:
> Try to compile SOGo 2.3.3 with Openchange 2.4-zentyal16 support.
> Use clang (llvm 3.7.0) as compiler.
> ...
> - (int) getProperties: (struct mapistore_property_data *) data
>^
> MAPIStorePropertySelectors.m:66519:3: error: initializer element is not
> a compile-time constant
> 
> Any idea how to fix it?
I fix it. Just use gcc instead of clang for gnustep-make, gnustep-base
and SOGo.

See
http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20100201/027157.html
for details.

-- 
Andrey Cherepanov
c...@altlinux.org
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] Build SOGo+OpenChange failed

2015-12-14 Thread Andrey Cherepanov
Try to compile SOGo 2.3.3 with Openchange 2.4-zentyal16 support.
Use clang (llvm 3.7.0) as compiler.

Build failed:
clang MAPIStorePropertySelectors.m -c \
  -MMD -MP -DSAML2_CONFIG=1 -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing
-fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS
-fobjc-nonfragile-abi -D_NONFRAGILE_ABI -pthread -fPIC -g -DDEBUG
-fno-omit-frame-pointer -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -pipe
-Wall -g -pipe -Wall -g -march=athlon -mtune=generic -pipe -Wall -g -O2
-fobjc-runtime=gnustep-1.7 -fobjc-nonfragile-abi -DGNUSTEP -DGNU_RUNTIME
-mtune=i586 -fgnu-runtime -fconstant-string-class=NSConstantString -Wall
-fobjc-exceptions -DSAMBA_PRIVATE_DIR=@"\"/var/lib/samba/private\""
-DHAVE_IMMEDIATE_STRUCTURES=1 -D_GNU_SOURCE=1 -I/usr/include/samba-4.0
-DHAVE_IMMEDIATE_STRUCTURES=1 -D_GNU_SOURCE=1 -I/usr/include/samba-4.0
-DSAMBA_PREFIX="\"/usr\"" -I../SoObjects -I../SOPE
-DBACKEND_BUNDLE_NAME="@\"SOGoBackend.MAPIStore\""
-DSOGO_BUNDLES_DIR="@\"/usr/lib/GNUstep/SOGo\"" -I.
-I/usr/src/GNUstep/Headers -I/usr/include -I/usr/include -I/usr/include
-I/usr/include -fgnu-runtime -x objective-c -I/usr/include/libxml2 \
   -o obj/SOGoBackend.obj/MAPIStorePropertySelectors.m.o
In file included from MAPIStorePropertySelectors.m:6:
In file included from ./MAPIStorePropertySelectors.h:19:
./MAPIStoreObject.h:71:32: warning: declaration of 'struct
mapistore_property_data' will not be visible outside of this function
[-Wvisibility]
- (int) getProperties: (struct mapistore_property_data *) data
   ^
MAPIStorePropertySelectors.m:66519:3: error: initializer element is not
a compile-time constant

Any idea how to fix it?

-- 
Andrey Cherepanov
c...@altlinux.org
-- 
users@sogo.nu
https://inverse.ca/sogo/lists