Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dragoș Haiduc
OpenLDAP
Commits
726b5099
Commit
726b5099
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Don't unescape URL being provided to rebind proc
parent
fcba89a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/libldap/request.c
+10
-9
10 additions, 9 deletions
libraries/libldap/request.c
libraries/libldap/url.c
+4
-4
4 additions, 4 deletions
libraries/libldap/url.c
with
14 additions
and
13 deletions
libraries/libldap/request.c
+
10
−
9
View file @
726b5099
...
...
@@ -788,8 +788,7 @@ ldap_chase_referrals( LDAP *ld, LDAPRequest *lr, char **errstrp, int *hadrefp )
len
=
strlen
(
*
errstrp
);
for
(
p
=
*
errstrp
;
len
>=
LDAP_REF_STR_LEN
;
++
p
,
--
len
)
{
if
((
*
p
==
'R'
||
*
p
==
'r'
)
&&
strncasecmp
(
p
,
LDAP_REF_STR
,
LDAP_REF_STR_LEN
)
==
0
)
{
if
(
strncasecmp
(
p
,
LDAP_REF_STR
,
LDAP_REF_STR_LEN
)
==
0
)
{
*
p
=
'\0'
;
p
+=
LDAP_REF_STR_LEN
;
break
;
...
...
@@ -826,6 +825,9 @@ ldap_chase_referrals( LDAP *ld, LDAPRequest *lr, char **errstrp, int *hadrefp )
p
=
NULL
;
}
/* copy the complete referral for rebind process */
rinfo
.
ri_url
=
LDAP_STRDUP
(
ref
);
ldap_pvt_hex_unescape
(
ref
);
len
=
strlen
(
ref
);
...
...
@@ -841,12 +843,11 @@ ldap_chase_referrals( LDAP *ld, LDAPRequest *lr, char **errstrp, int *hadrefp )
"ignoring unknown referral <%s>
\n
"
,
ref
,
0
,
0
);
rc
=
ldap_append_referral
(
ld
,
&
unfollowed
,
ref
);
*
hadrefp
=
1
;
LDAP_FREE
(
rinfo
.
ri_url
);
rinfo
.
ri_url
=
NULL
;
continue
;
}
/* copy the complete referral for rebind process */
rinfo
.
ri_url
=
LDAP_STRDUP
(
ref
);
*
hadrefp
=
1
;
if
((
refdn
=
strchr
(
tmpref
,
'/'
))
!=
NULL
)
{
...
...
@@ -952,9 +953,9 @@ ldap_append_referral( LDAP *ld, char **referralsp, char *s )
static
BerElement
*
re_encode_request
(
LDAP
*
ld
,
BerElement
*
origber
,
ber_int_t
msgid
,
char
**
dnp
,
int
*
type
)
{
/*
* XXX this routine knows way too much about how the lber library works!
*/
/*
* XXX this routine knows way too much about how the lber library works!
*/
ber_int_t
along
;
ber_tag_t
tag
;
ber_int_t
ver
;
...
...
@@ -1049,7 +1050,7 @@ re_encode_request( LDAP *ld, BerElement *origber, ber_int_t msgid, char **dnp, i
LDAPRequest
*
ldap_find_request_by_msgid
(
LDAP
*
ld
,
ber_int_t
msgid
)
{
LDAPRequest
*
lr
;
LDAPRequest
*
lr
;
for
(
lr
=
ld
->
ld_requests
;
lr
!=
NULL
;
lr
=
lr
->
lr_next
)
{
if
(
lr
->
lr_status
==
LDAP_REQST_COMPLETED
)
{
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/url.c
+
4
−
4
View file @
726b5099
...
...
@@ -950,10 +950,10 @@ ldap_url_search_s(
void
ldap_pvt_hex_unescape
(
char
*
s
)
{
/*
* Remove URL hex escapes from s... done in place. The basic concept for
* this routine is borrowed from the WWW library HTUnEscape() routine.
*/
/*
* Remove URL hex escapes from s... done in place. The basic concept for
* this routine is borrowed from the WWW library HTUnEscape() routine.
*/
char
*
p
;
for
(
p
=
s
;
*
s
!=
'\0'
;
++
s
)
{
...
...
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