Hello,

I am trying since some weeks to set up SOGo on CentOS 5.5 with sendmail,
openldap, cyrus-imapd.

I have set up fout servers but none seems to work.

My confs are as follow:

/etc/httpd/conf.d/SOGo.conf
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">
  SetHandler default-handler
</LocationMatch>

<LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*png">
  SetHandler default-handler
</LocationMatch>

<LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*gif">
  SetHandler default-handler
</LocationMatch>

<LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*css">
  SetHandler default-handler
</LocationMatch>

<LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*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>
  #Turn on IMAP Authentication
Auth_IMAP_Enabled on

#Only basic authentication is supported for now:
AuthType Basic

#Give a name to the authentication domain, whatever you want:
AuthName "INTRANET"

#If you feel like it, restrict the users or allow all "valid-user"
Require valid-user

#Make IMAP Authentication authoritative for this .htaccess file:
Auth_IMAP_Authoritative on

#Set the IMAP Server to which you want to connect (default=localhost):
Auth_IMAP_Server imap.sfa.fathi.eu.org

#Set the port on which the imap server is running (default=143) (I use a
working imap proxy thats why 1430):
Auth_IMAP_Port 1430

#Turn on some extra logging (login attempts, etc.) in Apache's Error Log
Auth_IMAP_Log on

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" "443"
  RequestHeader set "x-webobjects-server-name" "intranet.sfa.fathi.eu.org"
  RequestHeader set "x-webobjects-server-url"
"https://intranet.sfa.fathi.eu.org";

## 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>


my ~/sogo/GNUstep/Defaults/.GNUstepDefaults is built from the following lines:

defaults write sogod SOGoTimeZone "Africa/Tunis"
defaults write sogod SOGoMailDomain "sfa.fathi.eu.org"
defaults write sogod SOGoLanguage French
defaults write sogod SOGoAppointmentSendEMailNotifications YES
defaults write sogod SOGoFoldersSendEMailNotifications YES
defaults write sogod SOGoACLsSendEMailNotifications YES
defaults write sogod SOGoMailingMechanism smtp
defaults write sogod SOGoSMTPServer localhost
defaults write sogod SOGoDraftsFolderName Drafts
defaults write sogod SOGoSentFolderName Sent
defaults write sogod SOGoTrashFolderName Trash
defaults write sogod SOGoIMAPServer localhost
defaults write sogod SOGoProfileURL
"postgresql://sogo:xx...@localhost:5432/sogo/sogo_user_profile"
defaults write sogod OCSFolderInfoURL
"postgresql://sogo:xx...@localhost:5432/sogo/sogo_folder_info"
defaults write sogod SOGoSuperUsernames '(fathi.bennasr)'
defaults write sogod passwordPolicy YES
defaults write sogod SOGoTrustProxyAuthentication YES
defaults write sogod SOGoAuthenticationMethod LDAP
defaults write sogod SOGoUserSources '(
{
type = ldap;
CNFieldName = cn;
IDFieldName = uid;
UIDFiledName = uid;
IMAPHostFieldName = mailHost;
baseDN = "ou=Users,o=SNCFT,c=TN";
scope = SUB;
bindDN = "uid=sogo,ou=Users,o=SNCFT,c=TN";
bindPassword = XXXXX;
bindFields = (posixAccount);
filter = "(objectClass=posixAccount)";
canAuthenticate = YES;
hostname = "localhost";
displayName = "Carnet Adresses SFA";
id = sfa_directory;
isAddressBook = YES;
port = 389;
}
)'

I have tried with and without the following to lines:
bindDN = "uid=sogo,ou=Users,o=SNCFT,c=TN";
bindPassword = XXXXX;

And when accessing SOGo directly (port 20000) or via apache, all I get in the
sogo.log is:
Jun 07 10:05:38 sogod: SOGo watchdog [1323]: [WARN] <0x0x9bb8d28[WOWatchDog]>
'WOHttpAllowHost' is ignored in watchdog mode, use a real firewall instead
Jun 07 10:05:38 sogod: SOGo watchdog [1323]: <0x0x9bb8d28[WOWatchDog]>
listening on *:20000
Jun 07 10:05:38 sogod: SOGo watchdog [1323]: <0x0x9bb8d28[WOWatchDog]> watchdog
process pid: 1323
Jun 07 10:05:38 sogod: SOGo watchdog [1323]: <0x0x9bb8d28[WOWatchDog]>
preparing 1 children
Jun 07 10:05:38 sogod: SOGo watchdog [1324]: SNS support disabled.
Jun 07 10:05:38 sogod: SOGo watchdog [1323]: <0x0x9bb8d28[WOWatchDog]> child
spawned with pid 1324
Jun 07 10:05:39 sogod: SOGo watchdog [1324]: <0x0x9d21b00[SOGoProductLoader]>
SOGo products loaded from '/usr/GNUstep/System/Library/SOGo':
Jun 07 10:05:39 sogod: SOGo watchdog [1324]: <0x0x9d21b00[SOGoProductLoader]>  
MailPartViewers.SOGo, Mailer.SOGo, Appointments.SOGo, AdministrationUI.SOGo,
PreferencesUI.SOGo, Contacts.SOGo, MailerUI.SOGo, ContactsUI.SOGo,
CommonUI.SOGo, MainUI.SOGo, SchedulerUI.SOGo
Jun 07 10:05:39 sogod: SOGo watchdog [1324]: |SOGo| version 1.2.2 (build
[email protected] 201005041658) -- starting
Jun 07 10:05:39 sogod: SOGo watchdog [1324]: |SOGo| vmem size check enabled:
shutting down app when vmem > 384 MB
Jun 07 10:06:01 sogod: SOGo watchdog [1324]: <0x0x9e7ef30[SOGoCache]> Cache
cleanup interval set every 300.000000 seconds
Jun 07 10:06:01 sogod: SOGo watchdog [1324]: <0x0x9e7ef30[SOGoCache]> Using
host(s) 'localhost' as server(s)
2010-06-07 10:06:01.885 sogod[1324] Scanner initialised with nil string
127.0.0.1 - - [07/Jun/2010:10:06:01 GMT] "GET /SOGo HTTP/1.1" 403 12/0 0.054 -
- 580K
2010-06-07 10:10:50.334 sogod[1324] -[NGInternetSocketAddress _fillHost]: host
not found ..
2010-06-07 10:10:50.335 sogod[1324] could not get DNS name of address
10.2.13.181 in domain <InternetDomain[0x0x9bc7188]>: 1
10.2.13.181 - - [07/Jun/2010:10:10:50 GMT] "GET / HTTP/1.1" 403 12/0 0.010 - -
16K
2010-06-07 10:13:03.099 sogod[1324] -[NGInternetSocketAddress _fillHost]: host
not found ..
2010-06-07 10:13:03.100 sogod[1324] could not get DNS name of address
10.2.13.181 in domain <InternetDomain[0x0x9bc7188]>: 1
10.2.13.181 - - [07/Jun/2010:10:13:03 GMT] "GET / HTTP/1.1" 403 12/0 0.010 - -
0

and on the browser screen:
Unauthorized

TIA
Fathi B.N.
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to