diff options
| author | Martin Schwenke <martin@meltin.net> | 2011-10-25 17:08:02 +1100 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2011-10-25 17:08:02 +1100 |
| commit | b694a3fefed93448e4281c8d2958abb1546ce39b (patch) | |
| tree | d2d818f7829123cd906b874593c0974982d84a78 /base | |
| parent | b1c6d9a020f94c13f8b9e899a4fec6b64b18e58a (diff) | |
Make setup_cluster.sh extract $auth_type from config file
Edit the config file if you want to change the authentication type to
"winbind".
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'base')
| -rwxr-xr-x | base/all/root/scripts/setup_cluster.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/all/root/scripts/setup_cluster.sh b/base/all/root/scripts/setup_cluster.sh index 24db232..34fe068 100755 --- a/base/all/root/scripts/setup_cluster.sh +++ b/base/all/root/scripts/setup_cluster.sh @@ -20,7 +20,6 @@ Usage: setup_samba.sh [OPTION] options: -x enable script debugging -c config_file config file to load - -a auth_type authentication type (local, ads) -U username%password domain authentication EOF exit 1 @@ -36,13 +35,14 @@ while true ; do case "$1" in -x) set -x; shift ;; -c) conf_file="$2" ; shift 2 ;; - -a) auth_type="$2" ; shift 2;; -U) domain_auth="$2" ; shift 2 ;; --) shift ; break ;; -h|--help|*) usage ;; esac done +auth_type=$(sed -r -n -e 's@^auth_method[[:space:]]*=[[:space:]]*(files|winbind)[[:space:]]*$@\1@p' "$conf_file") + case "$auth_type" in winbind|files) : ;; *) |
