s3:locking: remove unused get_share_mode_lock()
[Samba.git] / selftest / checkpassword_arg1.sh
blobecaeb2ed374900bca437ba759e3c1ffbe2792781
1 #!/bin/sh
4 set -e
5 set -u
7 ACCOUNT_NAME="${SAMBA_CPS_ACCOUNT_NAME}"
8 INVALIDPW="$1"
9 NEWPW=$(cat -)
11 echo -n "${NEWPW}" | grep -q "^${INVALIDPW}\$" && {
12 echo "Found invalid password" >&1
13 exit 1
16 echo -n "${NEWPW}" | grep -q "^${ACCOUNT_NAME}\$" && {
17 echo "Password includes ACCOUNT_NAME" >&1
18 exit 1
21 exit 0