aboutsummaryrefslogtreecommitdiff
path: root/templates/add_samba_user
diff options
context:
space:
mode:
authorAlexander Fisher <alex@linfratech.co.uk>2016-01-22 15:32:28 +0000
committerAlexander Fisher <alex@linfratech.co.uk>2016-01-22 15:38:12 +0000
commit9d63c7be3fa57e4af93c787f8b740658ec14f1f6 (patch)
tree17641909f729f4980bc5ff10f241f032f98dfa4f /templates/add_samba_user
parent037949461d7b064adc0b041207bc026cdabf8a27 (diff)
downloadpuppet-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/add_samba_user')
-rw-r--r--templates/add_samba_user16
1 files changed, 0 insertions, 16 deletions
diff --git a/templates/add_samba_user b/templates/add_samba_user
deleted file mode 100644
index cc1d56b..0000000
--- a/templates/add_samba_user
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-# This script adds a samba account for a given user and password
-# call as:
-# > add_samba_user "USERNAME" "PASSWORD"
-
-/bin/echo -e "$2\n$2\n" | sudo /usr/bin/pdbedit -a "$1" -t 1>/dev/null
-results=$?
-
-if [ $results = 0 ]; then
- echo "added samba account for '$1'"
-else
- echo "could not add samba account for '$1'"
-fi
-
-exit $results