[OGo-Users] Installation of sogo from RPMS - ldap authentication

Chris Picton users@opengroupware.org
Mon, 10 Sep 2007 18:48:42 +0200


Hi - I sent this to the sogo list, but so far have not have any response


I am trying out sogo, using the prebuilt RPMS for centos5 - the
inverse1537 branch.

The rpms install with no problems.  The only  necessary configuration
appears to be the ~sogo/GNUstep/Defaults/.GNUstepDefaults file

I create the file with the following commands:
defaults -u sogo write sogod-0.9 OCSFolderInfoURL
"postgresql://sogo:sogo@127.0.0.1:5432/sogo/sogo_folder_info"
defaults -u sogo write sogod-0.9 AgenorProfileURL
"postgresql://sogo:sogo@127.0.0.1:5432/sogo/sogo_user_profile"
defaults -u sogo write sogod-0.9 SOGoDefaultMailDomain "tangent.co.za"
defaults -u sogo write sogod-0.9 SOGoFallbackIMAP4Server "192.168.20.4"
defaults -u sogo write sogod-0.9 SOGoAuthentificationMethod "bypass"
defaults -u sogo write sogod-0.9 SOGoSuperUsername chrisp
defaults -u sogo write sogod-0.9 SOGoServerTimeZone Africa/Johannesburg


When running defaults, I get the following errors:
----------------
2007-09-07 09:56:45.166 defaults[4064] GNUSTEP_CONFIG_FILE value ('') is
not an absolute path.  Please rebuild GNUstep-base specifying a valid
path to the config file.
2007-09-07 09:56:45.173 defaults[4064] Unknown time zone name `SAST'.
2007-09-07 09:56:45.174 defaults[4064] Using time zone with absolute
offset 0.
2007-09-07 09:56:45.165 defaults[4064] GNUSTEP_CONFIG_FILE value ('') is
not an absolute path.  Please rebuild GNUstep-base specifying a valid
path to the config file.
2007-09-07 09:56:45.186 defaults[4064] GNUSTEP_CONFIG_FILE value ('') is
not an absolute path.  Please rebuild GNUstep-base specifying a valid
path to the config file.
------------------


I can however log into the server and create calendar and address book
entries

Accessing mail gives me an apache 'Internal Server Error', with the
following in the logs
EXCEPTION: <NSException: 8b36490> NAME:NSInvalidArgumentException
REASON:Tried to add nil value for key 'email' to dictionary
INFO:{fullName = chrisp; }
### child 4179 (#1) was terminated by signal 6 (uptime=30s).
[Fri Sep 07 12:01:24 2007] [error] error during reading of response
line ..


I assume that is because I am actually bypassing authentication.



Now, I want to configure LDAP auth.
defaults -u sogo write sogod-0.9 SOGoAuthentificationMethod LDAP

The snippet to put into the .GNUstepDefaults is:
     SOGoLDAPSources = {
         CNFieldName = cn;
         IDFieldName = uid;
         UIDFieldName = uid;
         baseDN = "ou=Users,o=testing";
         bindDN = "cn=Administrator,o=testing";
         bindPassword = "mypass!";
         canAuthenticate = YES;
         hostname = "192.168.20.4";
         id = "ldap-mycompany";
         port = 389;
     };


Where does this go:
If I try the following:

------------------------------------
{
     NSGlobalDomain = {
     };
     "sogod-0.9" = {
         AgenorProfileURL =
"postgresql://sogo:sogo@127.0.0.1:5432/sogo/sogo_user_profile";
         OCSFolderInfoURL =
"postgresql://sogo:sogo@127.0.0.1:5432/sogo/sogo_folder_info";
         SOGoAuthentificationMethod = LDAP;
         SOGoDefaultMailDomain = tangent.co.za;
         SOGoFallbackIMAP4Server = 192.168.20.4;
         SOGoServerTimeZone = Africa/Johannesburg;
         SOGoSuperUsername = chrisp;
         SOGoLDAPSources = {
          {
            CNFieldName = cn;
            IDFieldName = uid;
            UIDFieldName = uid;
            baseDN = "ou=Users,o=testing";
            bindDN = "cn=Administrator,o=testing";
            bindPassword = "MyPass!";
            canAuthenticate = YES;
            hostname = "192.168.20.4";
            id = "ldap-mycompany";
            port = 389;
          };
         };
     };
}
-------------------------------------------------------
I then get the following in my logs when trying to authenticate:


Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b5caf8[SOGoWebAuthenticator]>
tried wrong password for user 'chrisp'!
2007-09-07 10:12:45.180 sogod-0.9[4286] WARNING(-[SaxXMLReaderFactory
_loadBundlePath:infoDictionary:nameMap:typeMap:]): multiple parsers
available for MIME type 'text/calendar', using 'VSCardSaxDriver' as
default for type text/calendar.
2007-09-07 10:12:45.180 sogod-0.9[4286] WARNING(-[SaxXMLReaderFactory
_loadBundlePath:infoDictionary:nameMap:typeMap:]): multiple parsers
available for MIME type 'text/x-vcard', using 'VSCardSaxDriver' as
default for type text/x-vcard.
2007-09-07 10:12:45.203 sogod-0.9[4286] WARNING: called
-[WEStringTableManager
_cachedStringForKey:inTableNamed:withDefaultValue:languages:] without
languages array (nil) !
Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b48428[WEStringTableManager]>
missing translations directory ...
Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b48428[WEStringTableManager]>
missing translations directory ...
2007-09-07 10:12:45.205 sogod-0.9[4286] WARNING: called
-[WEStringTableManager
_cachedStringForKey:inTableNamed:withDefaultValue:languages:] without
languages array (nil) !
Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b48428[WEStringTableManager]>
missing translations directory ...
Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b48428[WEStringTableManager]>
missing translations directory ...
2007-09-07 10:12:45.206 sogod-0.9[4286] WARNING: called
-[WEStringTableManager
_cachedStringForKey:inTableNamed:withDefaultValue:languages:] without
languages array (nil) !
Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b48428[WEStringTableManager]>
missing translations directory ...
Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b48428[WEStringTableManager]>
missing translations directory ...
2007-09-07 10:12:45.209 sogod-0.9[4286] WARNING: called
-[WEStringTableManager
_cachedStringForKey:inTableNamed:withDefaultValue:languages:] without
languages array (nil) !
Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b48428[WEStringTableManager]>
missing translations directory ...
Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b48428[WEStringTableManager]>
missing translations directory ...
2007-09-07 10:12:45.211 sogod-0.9[4286] WARNING: called
-[WEStringTableManager
_cachedStringForKey:inTableNamed:withDefaultValue:languages:] without
languages array (nil) !
Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b48428[WEStringTableManager]>
missing translations directory ...
Sep 07 10:12:45 sogod-0.9 [4301]: <0x0x9b48428[WEStringTableManager]>
missing translations directory ...
192.168.20.122 - - [07/Sep/2007:10:12:45 GMT] "POST /SOGo.woa/so/view
HTTP/1.1" 200 859/59 0.042 3028 71% 1M
-------------


When I stop sogo, I get then following:
Session terminated, killing shell...^[[A2007-09-07 10:13:07.243
sogod-0.9[4286] File NSDictionary.m: 594. In [GSMutableDictionary
-initWithContentsOfFile:] Contents of file
'/home/sogo/GNUstep/Defaults/.GNUstepDefaults' does not contain a
dictionary
  ...killed.


and my file then contains:
{
     NSGlobalDomain = {
     };
     "sogod-0.9" = {
     };
}

Can someone please give me some info on how to get ldap authentication
working.

Thanks

Chris