Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
b41e65a8
Commit
b41e65a8
authored
17 years ago
by
Guenter Knauf
Browse files
Options
Downloads
Patches
Plain Diff
fixed ldap support for winldap.
parent
be8c219e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/ldap.c
+4
-2
4 additions, 2 deletions
lib/ldap.c
with
4 additions
and
2 deletions
lib/ldap.c
+
4
−
2
View file @
b41e65a8
...
...
@@ -120,7 +120,7 @@ CURLcode Curl_ldap(struct connectdata *conn, bool *done)
LDAPMessage
*
entryIterator
;
int
num
=
0
;
struct
SessionHandle
*
data
=
conn
->
data
;
int
ldap_proto
;
int
ldap_proto
=
LDAP_VERSION3
;
int
ldap_ssl
=
0
;
char
*
val_b64
;
size_t
val_b64_sz
;
...
...
@@ -153,7 +153,6 @@ CURLcode Curl_ldap(struct connectdata *conn, bool *done)
#ifdef LDAP_OPT_NETWORK_TIMEOUT
ldap_set_option
(
NULL
,
LDAP_OPT_NETWORK_TIMEOUT
,
&
ldap_timeout
);
#endif
ldap_proto
=
LDAP_VERSION3
;
ldap_set_option
(
NULL
,
LDAP_OPT_PROTOCOL_VERSION
,
&
ldap_proto
);
if
(
ldap_ssl
)
{
...
...
@@ -289,6 +288,9 @@ CURLcode Curl_ldap(struct connectdata *conn, bool *done)
goto
quit
;
}
}
#ifdef CURL_LDAP_WIN
ldap_set_option
(
server
,
LDAP_OPT_PROTOCOL_VERSION
,
&
ldap_proto
);
#endif
rc
=
ldap_simple_bind_s
(
server
,
conn
->
bits
.
user_passwd
?
conn
->
user
:
NULL
,
...
...
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