#
# 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
start() {
if [ ! -f /var/lock/subsys/winbind ]; then
- if [ "`grep -i 'idmap uid' /etc/samba/smb.conf | egrep -v [\#\;]`" -a "`grep -i 'idmap gid' /etc/samba/smb.conf | egrep -v [\#\;]`" ]; then
- msg_starting winbindd
- daemon winbindd
- RETVAL=$?
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/winbind || \
+ msg_starting winbindd
+ daemon /usr/sbin/winbindd
+ RETVAL=$?
+ if [ $RETVAL -eq 0 ]; then
+ touch /var/lock/subsys/winbind
RETVAL=1
- else
- nls "Winbind is not configured in /etc/samba/smb.conf, not starting"
fi
else
msg_already_running winbindd