Sun Identity Manager on Mac OS X

Earlier I blogged about installling OpenDS on Mac OS X.
Installing Sun Identity Manager 7.1 is just as easy with a minor tweak.

The “lh” script that sets up an environment for subsequent Java commands, is only aware of Unix, Linux and Windows.

A minor edit, in red font below, is required for the lh script to recognize the Macintosh Operating System ‘Darwin’

OS=`uname -s`
if [ “$OS” = “Darwin” ]; then
    ARCH=linux
    ARCH_DIR=linux

elif [ “$OS” = “SunOS” ]; then
    SPECIFIC_OS=`arch`
    if [ “$SPECIFIC_OS” = “i86pc” ]; then
        ARCH=solaris/x86
        ARCH_DIR=solaris/x86
    else
        ARCH=solaris/sparc
        ARCH_DIR=solaris/sparc
    fi
elif [ “$OS” = “AIX” ]; then
    ARCH=aix
    ARCH_DIR=aix
elif [ “$OS” = “HP-UX” ]; then
    ARCH=hpux
    ARCH_DIR=hpux
else
    ARCH=winnt
    ARCH_DIR=win
fi

Thus, the standard procedure to install is as follows:

unzip IDM_7_1_0.zip                                            unzip the download
cd IDM_7_1_0          
cd db_scripts                                                       setup the database tables
mysql -u root < create_waveset_tables.mysql

( copy the mysql driver to WEB-INF/lib )

mkdir idm                                                           create a staging directory
mv idm.war idm
cd idm
jar -xvf idm.war                                                   unjar the .war file
export WSHOME=/Applications/idm                         set WSHOME
cd bin

( edit the “lh” script as per below )

chmod +x lh
./lh setup                                                              run setup
./lh setRepo -tMysql -ujdbc:mysql://localhost/waveset  run setrepo
cd ../sample
../bin/lh import init.xml                                            import init.xml
jar -cvf /Applications/idm.war *                                 create a new .war file

./asadmin deploy /Applications/idm.war                      deploy to the application server  

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s