How to sync Password Expiration to Solaris

  • 3650843
  • 19-Sep-2006
  • 26-Apr-2012

Environment

Novell Identity Manager Driver- Linux and UNIX - Fan Out

Situation

How can the Password Expiration time in eDirectory be synced to the Solaris expire field in /etc/shadow

Resolution

Put the PasswordExpirationTime in the filter of the fan-out driver.
Then modify theadduser.sh and moduser.shscripts on the solaris 8 box.

Put this in both scripts:

if [ "$PASSWORDEXPIRATIONTIME"]

then

EXPYEAR=`echo $PASSWORDEXPIRATIONTIME|awk '{ print substr($1,3,2) }'`

EXPMON=`echo $PASSWORDEXPIRATIONTIME|awk '{ print substr($1,5,2) }'`

EXPDAY=`echo $PASSWORDEXPIRATIONTIME|awk '{ print substr($1,7,2) }'`

COMMAND=$COMMAND""-e"""$EXPMON"/"$EXPDAY"/"$EXPYEAR"

fi

Feedback service temporarily unavailable. For content questions or problems, please contact Support.