mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
Add single-letter encryption options for createuser. Update createuser --help.
This commit is contained in:
parent
5863d541ae
commit
e87a5ed1e0
@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.19 2001/08/26 03:46:58 momjian Exp $
|
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.20 2001/08/26 04:19:46 momjian Exp $
|
||||||
#
|
#
|
||||||
# Note - this should NOT be setuid.
|
# Note - this should NOT be setuid.
|
||||||
#
|
#
|
||||||
@ -104,10 +104,10 @@ do
|
|||||||
--sysid=*)
|
--sysid=*)
|
||||||
SysID=`echo "$1" | sed 's/^--sysid=//'`
|
SysID=`echo "$1" | sed 's/^--sysid=//'`
|
||||||
;;
|
;;
|
||||||
--encrypted)
|
--encrypted|-E)
|
||||||
Encrypted=t
|
Encrypted=t
|
||||||
;;
|
;;
|
||||||
--unencrypted)
|
--unencrypted|-N)
|
||||||
Encrypted=f
|
Encrypted=f
|
||||||
;;
|
;;
|
||||||
-i*)
|
-i*)
|
||||||
@ -141,6 +141,8 @@ if [ "$usage" ]; then
|
|||||||
echo " -A, --no-adduser User cannot add new users"
|
echo " -A, --no-adduser User cannot add new users"
|
||||||
echo " -i, --sysid=SYSID Select sysid for new user"
|
echo " -i, --sysid=SYSID Select sysid for new user"
|
||||||
echo " -P, --pwprompt Assign a password to new user"
|
echo " -P, --pwprompt Assign a password to new user"
|
||||||
|
echo " -E, --encrypted Encrypt stored password"
|
||||||
|
echo " -N, --unencrypted Do no encrypt stored password"
|
||||||
echo " -h, --host=HOSTNAME Database server host"
|
echo " -h, --host=HOSTNAME Database server host"
|
||||||
echo " -p, --port=PORT Database server port"
|
echo " -p, --port=PORT Database server port"
|
||||||
echo " -U, --username=USERNAME Username to connect as (not the one to create)"
|
echo " -U, --username=USERNAME Username to connect as (not the one to create)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user