]> git.pld-linux.org Git - packages/samba.git/blobdiff - winbind.init
- release 1, R: python-samba/python3-samba based on bcond value
[packages/samba.git] / winbind.init
old mode 100644 (file)
new mode 100755 (executable)
index 2904f98..c33bcca
@@ -2,7 +2,7 @@
 #
 # 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
 
@@ -32,23 +32,14 @@ TMPDIR="/tmp"; export TMPDIR
 # 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
This page took 0.282326 seconds and 4 git commands to generate.