the workarund in #2 isnt working for me. but im not sure if i did the right:
------------------------------------------------------------------------------------ #! /bin/sh -e
### BEGIN INIT INFO # Provides: libnss-ldap # Required-Start: # Required-Stop: mountall.sh # Default-Start: # Default-Stop: 0 1 6 # Short-Description: Updates /etc/ldap.conf # Description: Updates nss_initgroups_ignoreusers based on # nss_initgroups_minimum_uid ### END INIT INFO
PATH="/sbin:/bin:/usr/sbin:/usr/bin" . /lib/lsb/init-functions
#case "$1" in # start) # ;; # restart|force-reload|stop) # log_action_begin_msg "Running nssldap-update-ignoreusers" # if nssldap-update-ignoreusers ; then # log_action_end_msg 0 # else # log_action_end_msg 1 # exit 1 # fi # ;; # *) # echo "Usage: $0 {start|restart|force-reload|stop}" # exit 1 # ;;
case "$1" in start) cp -f /etc/nsswitch.conf.ldap /etc/nsswitch.conf ;; stop) cp -f /etc/nsswitch.conf.local /etc/nsswitch.conf ;;
esac exit 0 ------------------------------------------------------------------------------------
Right? Please correct met!
the workarund in #2 isnt working for me. but im not sure if i did the right:
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -------
#! /bin/sh -e
### BEGIN INIT INFO ignoreusers based on minimum_ uid
# Provides: libnss-ldap
# Required-Start:
# Required-Stop: mountall.sh
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: Updates /etc/ldap.conf
# Description: Updates nss_initgroups_
# nss_initgroups_
### END INIT INFO
PATH="/ sbin:/bin: /usr/sbin: /usr/bin" init-functions
. /lib/lsb/
#case "$1" in force-reload| stop) begin_msg "Running nssldap- update- ignoreusers" update- ignoreusers ; then restart| force-reload| stop}"
# start)
# ;;
# restart|
# log_action_
# if nssldap-
# log_action_end_msg 0
# else
# log_action_end_msg 1
# exit 1
# fi
# ;;
# *)
# echo "Usage: $0 {start|
# exit 1
# ;;
case "$1" in conf.ldap /etc/nsswitch.conf conf.local /etc/nsswitch.conf
start)
cp -f /etc/nsswitch.
;;
stop)
cp -f /etc/nsswitch.
;;
esac ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -------
exit 0
-------
Right? Please correct met!