gcc484perl-5.22
|
Last change
on this file since 6782bd4 was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 9 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: |
|---|
| 3 | source /etc/smbldap-tools/smbldap.conf || exit 1 |
|---|
| 4 | /usr/bin/net setlocalsid "$SID" || exit 1 |
|---|
| 5 | |
|---|
| 6 | ldap_pass="`cat /etc/webint/LDAP_MASTER_PASSWD`" |
|---|
| 7 | if ! /usr/sbin/smbldap-usershow administrator || [ "$ldap_pass" == "" ]; then |
|---|
| 8 | exit 1 |
|---|
| 9 | fi |
|---|
| 10 | |
|---|
| 11 | /usr/bin/smbpasswd -w "$ldap_pass" |
|---|
| 12 | exec smbd -F |
|---|
| 13 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.