pageicon Thursday May 31, 2007

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  
Comments:

Post a Comment:
Comments are closed for this entry.

« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

Feeds

Search this blog

Downloads

Download Glassfish

Download OpenOffice

Download Solaris

Download OpenSSO

Download OpenDS

Links

Weblog menu

Today's referrers

Today's Page Hits: 65

Syndication

   XML RSS

Add to Google

Subscribe in Rojo
Subscribe with Bloglines
Subscribe in NewsGator Online
Add Notes from Jo to Newsburst from CNET News.com



View My Stats