mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
16 lines
163 B
Bash
16 lines
163 B
Bash
|
#!/bin/sh
|
||
|
#
|
||
|
|
||
|
set -e
|
||
|
set -u
|
||
|
|
||
|
INVALIDPW="$1"
|
||
|
NEWPW=`cat -`
|
||
|
|
||
|
echo -n "${NEWPW}" | grep -q "^${INVALIDPW}\$" && {
|
||
|
echo "Found invalid password" >&1
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
exit 0
|