Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4699d81d
Commit
4699d81d
authored
Aug 25, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ENCRYPTED/UNENCRYPTED control in createuser script.
parent
0927d992
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
doc/src/sgml/ref/createuser.sgml
doc/src/sgml/ref/createuser.sgml
+21
-1
src/bin/scripts/createuser
src/bin/scripts/createuser
+10
-1
No files found.
doc/src/sgml/ref/createuser.sgml
View file @
4699d81d
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createuser.sgml,v 1.1
7 2001/05/02 14:46:33
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createuser.sgml,v 1.1
8 2001/08/25 17:46:11
momjian Exp $
Postgres documentation
-->
...
...
@@ -132,6 +132,26 @@ Postgres documentation
</listitem>
</varlistentry>
<varlistentry>
<term>--encrypted</term>
<listitem>
<para>
Encrypts the user's password stored in the database. If not
specified, the default is used.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>--unencrypted</term>
<listitem>
<para>
Does not encrypt the user's password stored in the database. If
not specified, the default is used.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable class="parameter">username</replaceable></term>
<listitem>
...
...
src/bin/scripts/createuser
View file @
4699d81d
...
...
@@ -9,7 +9,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.1
7 2001/02/18 18:34:0
1 momjian Exp $
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.1
8 2001/08/25 17:46:1
1 momjian Exp $
#
# Note - this should NOT be setuid.
#
...
...
@@ -25,6 +25,7 @@ CanCreateDb=
PwPrompt
=
Password
=
PSQLOPT
=
Encrypted
=
# blank uses default
# Check for echo -n vs echo \c
...
...
@@ -103,6 +104,12 @@ do
--sysid
=
*
)
SysID
=
`
echo
"
$1
"
|
sed
's/^--sysid=//'
`
;;
--encrypted
)
Encrypted
=
t
;;
--unencrypted
)
Encrypted
=
f
;;
-i
*
)
SysID
=
`
echo
"
$1
"
|
sed
's/^-i//'
`
;;
...
...
@@ -226,6 +233,8 @@ SUBQUERY=
[
"
$CanCreateDb
"
=
f
]
&&
QUERY
=
"
$QUERY
NOCREATEDB"
[
"
$CanAddUser
"
=
t
]
&&
QUERY
=
"
$QUERY
CREATEUSER"
[
"
$CanAddUser
"
=
f
]
&&
QUERY
=
"
$QUERY
NOCREATEUSER"
[
"
$Encrypted
"
=
t
]
&&
QUERY
=
"
$QUERY
ENCRYPTED"
[
"
$Encrypted
"
=
f
]
&&
QUERY
=
"
$QUERY
UNENCRYPTED"
${
PATHNAME
}
psql
-c
"
$QUERY
"
-d
template1
$PSQLOPT
if
[
$?
-ne
0
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment