diff options
author | Alexander Fisher <alex@linfratech.co.uk> | 2016-01-22 15:32:28 +0000 |
---|---|---|
committer | Alexander Fisher <alex@linfratech.co.uk> | 2016-01-22 15:38:12 +0000 |
commit | 9d63c7be3fa57e4af93c787f8b740658ec14f1f6 (patch) | |
tree | 17641909f729f4980bc5ff10f241f032f98dfa4f /templates/check_samba_user | |
parent | 037949461d7b064adc0b041207bc026cdabf8a27 (diff) | |
download | puppet-samba-9d63c7be3fa57e4af93c787f8b740658ec14f1f6.tar.gz puppet-samba-9d63c7be3fa57e4af93c787f8b740658ec14f1f6.tar.bz2 |
Remove check_samba_user and add_samba_user scripts
Call the pdbedit commands directly from samba::server::user instead
Diffstat (limited to 'templates/check_samba_user')
-rw-r--r-- | templates/check_samba_user | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/templates/check_samba_user b/templates/check_samba_user deleted file mode 100644 index 431c3c4..0000000 --- a/templates/check_samba_user +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -# This script checks to see if a given user account exists on samba -# if so, it returns 0 -# otherwise it returns 1 - -sudo /usr/bin/pdbedit -L | egrep -q "^$1:" -exists=$? - -if [ $exists = 0 ]; then - echo "'$1' is a samba user" -else - echo "no samba account matching '$1'" -fi - -exit $exists |