lustre_opt="--lustre=$LUSTRE"
fi
-if [ ! -f $config -o $mkconfig -nt $config ]; then
- sh $mkconfig $config || exit 1
-fi
+if [ "$LDAPURL" ]; then
+ conf_opt="--ldapurl $LDAPURL --config $NAME"
+else
+ if [ ! -f $config -o $mkconfig -nt $config ]; then
+ sh $mkconfig $config || exit 1
+ fi
+ conf_opt="$config"
+fi
+
+[ "$NODE" ] && node_opt="--node $NODE"
-${LCONF} $portals_opt $lustre_opt --gdb $config || exit 2
+${LCONF} $portals_opt $lustre_opt $node_opt --gdb $conf_opt || exit 2