Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e87a5ed

Browse files
committed
Add single-letter encryption options for createuser. Update createuser --help.
1 parent 5863d54 commit e87a5ed

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bin/scripts/createuser

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
#
1111
# IDENTIFICATION
12-
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.19 2001/08/26 03:46:58 momjian Exp $
12+
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.20 2001/08/26 04:19:46 momjian Exp $
1313
#
1414
# Note - this should NOT be setuid.
1515
#
@@ -104,10 +104,10 @@ do
104104
--sysid=*)
105105
SysID=`echo "$1" | sed 's/^--sysid=//'`
106106
;;
107-
--encrypted)
107+
--encrypted|-E)
108108
Encrypted=t
109109
;;
110-
--unencrypted)
110+
--unencrypted|-N)
111111
Encrypted=f
112112
;;
113113
-i*)
@@ -141,6 +141,8 @@ if [ "$usage" ]; then
141141
echo " -A, --no-adduser User cannot add new users"
142142
echo " -i, --sysid=SYSID Select sysid for new user"
143143
echo " -P, --pwprompt Assign a password to new user"
144+
echo " -E, --encrypted Encrypt stored password"
145+
echo " -N, --unencrypted Do no encrypt stored password"
144146
echo " -h, --host=HOSTNAME Database server host"
145147
echo " -p, --port=PORT Database server port"
146148
echo " -U, --username=USERNAME Username to connect as (not the one to create)"

0 commit comments

Comments
 (0)