source: npl/fileserver/samba_conf/root/service/smbd/run @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 327 bytes
Line 
1#!/bin/bash
2#Make sure we have the right SID:
3source /etc/smbldap-tools/smbldap.conf || exit 1
4/usr/bin/net setlocalsid "$SID" || exit 1
5
6ldap_pass="`cat /etc/webint/LDAP_MASTER_PASSWD`"
7if ! /usr/sbin/smbldap-usershow administrator || [ "$ldap_pass" == "" ]; then
8        exit 1
9fi
10       
11/usr/bin/smbpasswd -w "$ldap_pass"
12exec smbd -F
13
Note: See TracBrowser for help on using the repository browser.