Commit df388118 authored by Haarst, Jan van's avatar Haarst, Jan van
Browse files

Convert username and supervisor to lower case.

parent 86d5355a
#!/bin/bash
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
set -o nounset
set -o errexit
......@@ -12,6 +13,7 @@ fi
# Variables
NEW_USER=${1}
NEW_USER="${NEW_USER,,}"
ADMINPASSWORD=''
binddn=${SUDO_USER}@wurnet.nl
declare -A DN_ARRAY
......@@ -125,6 +127,7 @@ fi
if [ "$STUDENT" == "Y" ]
then
read -p "Who is the supervisor of $NEW_USER ? " SUPERVISOR
SUPERVISOR="${SUPERVISOR,,}"
read -p "What is the end date for access for $NEW_USER ? [${DEFAULT_END_DATE}] " END_DATE
END_DATE=${END_DATE:-${DEFAULT_END_DATE}}
echo
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment