Hi,

Here are my configuration files.
GNUStepDefaults is itself,
sogo_v1.conf is the apache config file
I used until today. I observed the problem
with CAS, and then gave sogo_v2.conf a try
(the one recommending the use of the python
script to act as the cas proxy).

Also, unrelated, the logo file says :
   GCSAlarmsFolder]> 'OCSEMailAlarmsFolderURL' is not set
which is set, but I don't have the sogo_alarms_folder table
in my sgbd.

Thanks,

Le 18/11/2010 16:45, Wolfgang Sourdeau a écrit :
Hi Damien,


Sogo was configured to use our cas server, but since the
upgrade, sogo is unable to forge a correct url, it redirects
to the cas server using that request :

https://xxxx/cas/%28nil%29:NO/SOGo/so/?ticket=ST-3369-wrPatNYsV3hYntbqHEpU


%28 and %29 are parenthesis.
Obviously, the cas server is not happy with that.

The CAS code has not changed between 1.3.3 and 1.3.4. Can you send us
your APache and SOGo configuration?


--
Damien MASCRE
Centre de Ressources Informatiques et Technologiques
IUT de Villetaneuse, Université Paris 13
--
[email protected]
https://inverse.ca/sogo/lists
Alias /SOGo.woa/WebServerResources/ \
      /usr/GNUstep/System/Library/SOGo/WebServerResources/
Alias /SOGo/WebServerResources/ \
      /usr/GNUstep/System/Library/SOGo/WebServerResources/
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) \
           /usr/GNUstep/System/Library/SOGo/$1.SOGo/Resources/$2

<LocationMatch 
"^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*\.(jpg|png|gif|css|js)">
  SetHandler default-handler
</LocationMatch>

## Uncomment the following to enable proxy-side authentication, you will then
## need to set the "SOGoTrustProxyAuthentication" SOGo user default to YES and
## adjust the "x-webobjects-remote-user" proxy header in the "Proxy" section
## below.
#<Location /SOGo>
#  AuthType XXX
#  Require valid-user
#  SetEnv proxy-nokeepalive 1
#  Allow from all
#</Location>

ProxyRequests Off
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On
ProxyPassInterpolateEnv On
ProxyPass /SOGo http://127.0.0.1:20000/SOGo interpolate

<Proxy http://127.0.0.1:20000/SOGo>
## adjust the following to your configuration
  RequestHeader set "x-webobjects-server-port" "80"
  RequestHeader set "x-webobjects-server-name" "mail.somedomain.fr"
  RequestHeader set "x-webobjects-server-url" "http:/mail.somedomain.fr"

## When using proxy-side autentication, you need to uncomment and
## adjust the following line:
#  RequestHeader set "x-webobjects-remote-user" "%{REMOTE_USER}e"

  RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
  RequestHeader set "x-webobjects-remote-host" "127.0.0.1"

  AddDefaultCharset UTF-8

  Order allow,deny
  Allow from all
</Proxy>
Alias /SOGo.woa/WebServerResources/ \
      /usr/GNUstep/System/Library/SOGo/WebServerResources/
Alias /SOGo/WebServerResources/ \
      /usr/GNUstep/System/Library/SOGo/WebServerResources/
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) \
           /usr/GNUstep/System/Library/SOGo/$1.SOGo/Resources/$2

<LocationMatch 
"^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*\.(jpg|png|gif|css|js)">
  SetHandler default-handler
</LocationMatch>

## Uncomment the following to enable proxy-side authentication, you will then
## need to set the "SOGoTrustProxyAuthentication" SOGo user default to YES and
## adjust the "x-webobjects-remote-user" proxy header in the "Proxy" section
## below.
#<Location /SOGo>
#  AuthType XXX
#  Require valid-user
#  SetEnv proxy-nokeepalive 1
#  Allow from all
#</Location>

ProxyRequests Off
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On

# When using CAS, you should uncomment this and install cas-proxy-validate.py
# in /usr/lib/cgi-bin to reduce server overloading
#
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 cas.somedomain.fr
</Proxy>

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

<Proxy http://127.0.0.1:20000/SOGo>
## adjust the following to your configuration
  RequestHeader set "x-webobjects-server-port" "443"
  RequestHeader set "x-webobjects-server-name" "mail.somedomain.fr"
  RequestHeader set "x-webobjects-server-url" "https://mail.somedomain.fr

## When using proxy-side autentication, you need to uncomment and
## adjust the following line:
#  RequestHeader set "x-webobjects-remote-user" "%{REMOTE_USER}e"
  RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
  RequestHeader set "x-webobjects-remote-host" %{REMOTE_HOST}e env=REMOTE_HOST

  AddDefaultCharset UTF-8

  Order allow,deny
  Allow from all
</Proxy>

## We use mod_rewrite to pass remote address to the SOGo proxy.
# The remote address will appear in SOGo's log files and in the X-Forward
# header of emails.
RewriteEngine On
RewriteRule ^/SOGo/(.*)$ /SOGo/$1 [env=REMOTE_HOST:%{REMOTE_ADDR},PT]
{
    NSGlobalDomain = {
    };
    sogod = {
        GCSFolderDebugEnabled = NO;
        GCSFolderStoreDebugEnabled = NO;
        LDAPDebugEnabled = NO;
        NGImap4ConnectionStringSeparator = "/";
        NGImap4DisableIMAP4Pooling = YES;
        NGUseUTF8AsURLEncoding = YES;
        OCSEmailAlarmsFolderURL = 
"postgresql://user:p...@localhost:5432/sogo/sogo_alarms_folder";
        OCSFolderInfoURL = 
"postgresql://user:p...@localhost:5432/sogo/sogo_folder_info";
        OCSFolderManagerSQLDebugEnabled = NO;
        PGDebugEnabled = NO;
        SOGoACLsSendEMailNotifications = YES;
        SOGoAppointmentSendEMailNotifications = YES;
        SOGoAuthenticationType = cas;
        SOGoCASServiceURL = "https://cas.somedomain.fr/cas";;
        SOGoDayEndTime = 20;
        SOGoDayStartTime = 7;
        SOGoDebugRequests = NO;
        SOGoDraftsFolderName = Drafts;
        SOGoEnableEMailAlarms = YES;
        SOGoFirstDayOfWeek = 1;
        SOGoFirstWeekOfYear = First4DayWeek;
        SOGoFoldersSendEMailNotifications = YES;
        SOGoForceIMAPLoginWithEmail = NO;
        SOGoForwardEnabled = YES;
        SOGoIMAPAclConformsToIMAPExt = YES;
        SOGoIMAPAclStyle = rfc4314;
        SOGoIMAPServer = "imap://mail.somedomain.fr:143/notls";
        SOGoLDAPContactInfoAttribute = displayName;
        SOGoLanguage = French;
        SOGoLoginModule = Mail;
        SOGoMailAuxiliaryUserAccountsEnabled = YES;
        SOGoMailComposeMessageType = text;
        SOGoMailDomain = "somedomain.fr";
        SOGoMailKeepDraftsAfterSend = NO;
        SOGoMailListViewColumnsOrder = (
            Flagged,
            Priority,
            Unread,
            From,
            Subject,
            Date,
            Size,
            Attachment
        );
        SOGoMailMessageCheck = every_5_minutes;
        SOGoMailMessageForwarding = inline;
        SOGoMailPollingIntervals = (
            5,
            10,
            20,
            30
        );
        SOGoMailReplyPlacement = above;
        SOGoMailShowSubscribedFoldersOnly = NO;
        SOGoMailSignaturePlacement = below;
        SOGoMailSpoolPath = "/tmp";
        SOGoMailingMechanism = sendmail;
        SOGoMemcachedHost = localhost;
        SOGoPasswordChangeEnabled = NO;
        SOGoProfileURL = 
"postgresql://user:p...@localhost:5432/sogo/sogo_user_profile";
        SOGoSMTPServer = localhost;
        SOGoSentFolderName = Sent;
        SOGoSieveScriptsEnabled = YES;
        SOGoSupportedLanguages = (
            French
        );
        SOGoTimeFormat = "%Hh%M";
        SOGoTimeZone = Europe/Paris;
        SOGoTrashFolderName = Trash;
        SOGoUIxDebugEnabled = NO;
        SOGoUserSources = (
            {
                CNFieldName = displayName;
                IDFieldName = uid;
                UIDFieldName = uid;
                baseDN = "o=info";
                bindDN = "cn=user,ou=somecontainer";
                bindFields = cn;
                bindPassword = hispassword;
                canAuthenticate = YES;
                displayName = "Adresses Partagees";
                filter = "(objectClass=someClass AND cevifEtat=E)";
                hostname = localhost;
                id = public;
                isAddressBook = YES;
                passwordPolicy = NO;
                port = 389;
            }
        );
        SOGoVacationEnabled = YES;
        SoDebugObjectTraversal = NO;
        SoSecurityManagerDebugEnabled = NO;
        WOApplicationRedirectURL = NO;
        WODebugZipResponse = NO;
        WODontZipResponse = YES;
        WOMessageUseUTF8 = YES;
        WOParsersUseUTF8 = YES;
        WOSendMail = "/usr/sbin/sendmail";
    };
}

Reply via email to