52.2 Applying Software Update for an Identity Manager Driver

This section contains information about installing a software update (commonly known as patch) for an Identity Manager driver.

52.2.1 Applying the Identity Manager Driver Patch as a Root User

In a root installation, the driver patch installs the driver RPMs in the default locations in the /opt/novell/eDirectory path.

52.2.2 Applying the Identity Manager Driver Patch as a Non-Root User

  1. Verify that </local/home/bshidm/base/bshappl/edir> directory exists and contains the file, _db.000.

    The _db.000 file is created during a non-root installation of the Identity Manager engine. Absence of this file might indicate that Identity Manager is not properly installed. Reinstall Identity Manager to correctly place the file in the directory.

  2. To set the root directory to non-root eDirectory location, enter the following command in the command prompt:

    ROOTDIR=/local/home/bshidm/base/bshappl/edir

    This will set the environmental variables to the directory where eDirectory is installed as a non-root user.

  3. Download the driver patch and untar or unzip the downloaded file.

  4. To install the driver files, run the following script in a command prompt:

    ***************************************************************
    #!/bin/sh
    #set -x
    #© 2017 NetIQ Corporation and its affiliates. All Rights Reserved
    
    clear
    
    echo "======================================================================"
    echo " Installing packages... "
    echo "======================================================================"
    
    if [ "$1" == "" ] ; then
            exit
    fi
    
    pkgfile=$1
    ROOTDIR="/local/home/bshidm/base/bshappl/edir"
    RPMDB=$ROOTDIR/rpm
    
    if [ ! -d "$RPMDB" ] ; then
            mkdir $RPMDB
    fi
            # create rpm database if it doesn't exist
            if [ ! -f $RPMDB/__db.000 ]
            then
    #                mkdir -p $RPMDB
                    rpm  --dbpath "$RPMDB" --initdb
            fi
    
     
    RPM_FLAGS="--dbpath $RPMDB -Uvh --relocate=/etc=$ROOTDIR/etc --relocate=/opt=$ROOTDIR/opt --relocate=/opt/novell/eDirectory/lib64=$ROOTDIR/opt/novell/eDirectory/lib64 --relocate=/var=$ROOTDIR/var --badreloc --nodeps --replacefiles --force"
    
    rpm  $RPM_FLAGS $pkgfile