Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
af41101a
Commit
af41101a
authored
23 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Prevent failed passwords from being echoed to server logs, for security.
parent
16d6615b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/libpq/auth.c
+4
-2
4 additions, 2 deletions
src/backend/libpq/auth.c
with
4 additions
and
2 deletions
src/backend/libpq/auth.c
+
4
−
2
View file @
af41101a
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.7
8
2002/03/05 0
6
:5
2:0
5 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.7
9
2002/03/05 0
7
:5
7:4
5 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -663,7 +663,9 @@ pam_passwd_conv_proc(int num_msg, const struct pam_message ** msg, struct pam_re
initStringInfo
(
&
buf
);
pq_getstr
(
&
buf
);
elog
(
DEBUG5
,
"received PAM packet with len=%d, pw=%s"
,
len
,
buf
.
data
);
/* Do not echo failed password to logs, for security. */
elog
(
DEBUG5
,
"received PAM packet"
);
if
(
strlen
(
buf
.
data
)
==
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment