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
daebd525
Commit
daebd525
authored
Aug 22, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ooops, ldap fix for win32 broke the non-win32 case.
parent
04b84f5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/backend/libpq/auth.c
src/backend/libpq/auth.c
+5
-6
No files found.
src/backend/libpq/auth.c
View file @
daebd525
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.14
0 2006/08/21 19:21:38
tgl Exp $
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.14
1 2006/08/22 02:23:45
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -68,8 +68,7 @@ static Port *pam_port_cludge; /* Workaround for passing "Port *port" into
#ifdef USE_LDAP
#ifndef WIN32
/* We use a deprecated function to keep the codepaths the same as the
* win32 one. */
/* We use a deprecated function to keep the codepath the same as win32. */
#define LDAP_DEPRECATED 1
#include <ldap.h>
#else
...
...
@@ -710,8 +709,6 @@ CheckPAMAuth(Port *port, char *user, char *password)
static
int
CheckLDAPAuth
(
Port
*
port
)
{
static
__ldap_start_tls_sA
_ldap_start_tls_sA
=
NULL
;
char
*
passwd
;
char
server
[
128
];
char
basedn
[
128
];
...
...
@@ -807,8 +804,10 @@ CheckLDAPAuth(Port *port)
if
(
ssl
)
{
#ifndef WIN32
if
((
r
=
ldap_start_tls_s
(
ldap
,
NULL
,
NULL
))
!=
LDAP_SUCCESS
)
if
((
r
=
ldap_start_tls_s
(
ldap
,
NULL
,
NULL
))
!=
LDAP_SUCCESS
)
#else
static
__ldap_start_tls_sA
_ldap_start_tls_sA
=
NULL
;
if
(
_ldap_start_tls_sA
==
NULL
)
{
/*
...
...
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