[SOGo] Installation from RPMS - ldap authentication

Chris Picton sogo@opengroupware.org
Fri, 07 Sep 2007 12:06:31 +0200


--=-5OucWPdJQy90dgKJoutQ
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi

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 =3D chrisp; }
### child 4179 (#1) was terminated by signal 6 (uptime=3D30s).
[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 =3D {
        CNFieldName =3D cn;
        IDFieldName =3D uid;
        UIDFieldName =3D uid;
        baseDN =3D "ou=3DUsers,o=3Dtesting";
        bindDN =3D "cn=3DAdministrator,o=3Dtesting";
        bindPassword =3D "mypass!";
        canAuthenticate =3D YES;
        hostname =3D "192.168.20.4";
        id =3D "ldap-mycompany";
        port =3D 389;
    };


Where does this go:
If I try the following:

------------------------------------
{
    NSGlobalDomain =3D {
    };
    "sogod-0.9" =3D {
        AgenorProfileURL =3D
"postgresql://sogo:sogo@127.0.0.1:5432/sogo/sogo_user_profile";
        OCSFolderInfoURL =3D
"postgresql://sogo:sogo@127.0.0.1:5432/sogo/sogo_folder_info";
        SOGoAuthentificationMethod =3D LDAP;
        SOGoDefaultMailDomain =3D tangent.co.za;
        SOGoFallbackIMAP4Server =3D 192.168.20.4;
        SOGoServerTimeZone =3D Africa/Johannesburg;
        SOGoSuperUsername =3D chrisp;
        SOGoLDAPSources =3D {
         {
           CNFieldName =3D cn;
           IDFieldName =3D uid;
           UIDFieldName =3D uid;
           baseDN =3D "ou=3DUsers,o=3Dtesting";
           bindDN =3D "cn=3DAdministrator,o=3Dtesting";
           bindPassword =3D "MyPass!";
           canAuthenticate =3D YES;
           hostname =3D "192.168.20.4";
           id =3D "ldap-mycompany";
           port =3D 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 =3D {
    };
    "sogod-0.9" =3D {
    };
}

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

Thanks

Chris
---------------------+-----------------------------------------------------=
--
        Chris Picton | PGP Key ID: 9D28A988 (wwwkeys.pgp.net)
  Technical Director | PGP Key Fingerprint:
     Tangent Systems | 2B46 29EA D530 79EC D9EA 3ED0 229D 6DD6 9D28 A988
        011 447 8096 |=20
chrisp@tangent.co.za | http://www.tangent.co.za/keys/chrisp.asc
---------------------+-----------------------------------------------------=
--

--=-5OucWPdJQy90dgKJoutQ
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBG4SKnIp1t1p0oqYgRAilhAJ4tmO7OjZgt5uDxEr8uvR9rqOvvkwCfa/LW
Zrf8mnrcQtyAWdqw2C0KeHc=
=Vxw5
-----END PGP SIGNATURE-----

--=-5OucWPdJQy90dgKJoutQ--