#!/usr/bin/ksh # # Copyright 12/01/99 Sun Microsystems, Inc. All Rights Reserved # # This command will call dsypdecl to synchronize the LDAP entries # and the NIS binary maps # unset ENV BASEDIR=$(pkgparam SUNWdsnis BASEDIR) MAPPING_FILE=/etc/opt/SUNWconn/ldap/current/mapping/nis.mapping USAGE="Usage :\ndsypsync [-d domain-name] [map-name]" FLAGS="" set -- `getopt d: $*` if [ $? != 0 ] then echo $USAGE exit 2 fi for i in $* do case $i in -d) DOMAIN_NAME=$2; FLAGS=$FLAGS" -d "$2; shift 2;; --) shift; break;; esac done MAP_NAME=$* if [ "$DOMAIN_NAME" = "" ] then DOMAIN_NAME=`domainname` fi $BASEDIR/SUNWconn/ldap/lib/dsypdecl -L $FLAGS $MAP_NAME exit $?