Commit e87a5ed1 authored by Bruce Momjian's avatar Bruce Momjian

Add single-letter encryption options for createuser. Update createuser --help.

parent 5863d541
...@@ -9,7 +9,7 @@ ...@@ -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 ...@@ -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 ...@@ -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)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment