CA SiteMinder Configuration for Ubuntu

Posted by Matt Franklin on Server Fault See other posts from Server Fault or by Matt Franklin
Published on 2009-08-31T16:58:29Z Indexed on 2012/09/28 3:40 UTC
Read the original article Hit count: 1327

Filed under:
|

I receive the following error when attempting to start apache through the init.d script:

*apache2: Syntax error on line 186 of /etc/apache2/apache2.conf: Syntax error on line 4 of /etc/apache2/mods-enabled/auth_sm.conf: Cannot load /apps/netegrity/webagent/bin/libmod_sm22.so into server: libsmerrlog.so: cannot open shared object file: No such file or directory*

SiteMinder does not officially support Ubuntu, so I am having trouble finding any configuration documentation to help me troubleshoot this issue.

I successfully installed the SiteMinder binaries and registered the trusted host with the server, but I am having trouble getting the apache mod to load correctly.

I have added the following lines to a new auth_sm.conf file in /etc/apache2/mods-available and symlinked to it in /etc/apache2/mods-enabled:

SetEnv LD_LIBRARY_PATH /apps/netegrity/webagent/bin
SetEnv PATH ${PATH}:${LD_LIBRARY_PATH}

LoadModule sm_module /apps/netegrity/webagent/bin/libmod_sm22.so
SmInitFile "/etc/apache2/WebAgent.conf"

Alias /siteminderagent/pwcgi/ "/apps/netegrity/webagent/pw/"

<Directory "/apps/netegrity/webagent/pw/">
   Options Indexes MultiViews ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>

UPDATE: Output of ldd libmod_sm22.so:

    ldd /apps/netegrity/webagent/bin/libmod_sm22.so
        linux-gate.so.1 =>  (0xb8075000)
        libsmerrlog.so => /apps/netegrity/webagent/bin/libsmerrlog.so (0xb7ec0000)
        libsmeventlog.so => /apps/netegrity/webagent/bin/libsmeventlog.so (0xb7ebb000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7e9a000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e96000)
        librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7e8d000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb7dd3000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7dad000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7d9e000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c3a000)
        libsmcommonutil.so => /apps/netegrity/webagent/bin/libsmcommonutil.so (0xb7c37000)
        /lib/ld-linux.so.2 (0xb8076000)

UPDATE:

The easiest way to set environment variables for the Apache run user in Ubuntu is to edit the /etc/apache2/envvars file and add export statements for any library paths you may need

© Server Fault or respective owner

Related posts about apache2

Related posts about ubuntu