#
# chkconfig: 345 91 35
# description: Starts and stops the Samba winbind daemon to provide\
-# user and group information from a NT domain controller to linux.
+# user and group information from a NT domain controller to linux.
#
# config: /etc/samba/smb.conf
# Check that smb.conf exists.
[ -f /etc/samba/smb.conf ] || exit 0
-# return true if 'idmap uid' or 'idmap gid' is set in samba config
-configtest() {
- egrep -qvi '^idmap [ug]id' /etc/samba/smb.conf
-}
-
start() {
if [ ! -f /var/lock/subsys/winbind ]; then
- if configtest; then
- msg_starting winbindd
- daemon /usr/sbin/winbindd
- RETVAL=$?
- if [ $RETVAL -eq 0 ]; then
- touch /var/lock/subsys/winbind
- RETVAL=1
- fi
- else
- nls "Winbind is not configured in /etc/samba/smb.conf, not starting"
+ msg_starting winbindd
+ daemon /usr/sbin/winbindd
+ RETVAL=$?
+ if [ $RETVAL -eq 0 ]; then
+ touch /var/lock/subsys/winbind
+ RETVAL=1
fi
else
msg_already_running winbindd