Skip to content
Snippets Groups Projects
Commit df388118 authored by Haarst, Jan van's avatar Haarst, Jan van
Browse files

Convert username and supervisor to lower case.

parent 86d5355a
Branches
No related tags found
No related merge requests found
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment