Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Dimitar Stoychev
OpenLDAP
Commits
7348603a
Commit
7348603a
authored
20 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
fix ITS#3484
parent
ba6e6b46
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
servers/slapd/back-ldap/chain.c
+6
-0
6 additions, 0 deletions
servers/slapd/back-ldap/chain.c
servers/slapd/passwd.c
+5
-0
5 additions, 0 deletions
servers/slapd/passwd.c
tests/scripts/test032-chain
+22
-0
22 additions, 0 deletions
tests/scripts/test032-chain
with
33 additions
and
0 deletions
servers/slapd/back-ldap/chain.c
+
6
−
0
View file @
7348603a
...
...
@@ -362,6 +362,12 @@ end_of_searchref:;
break
;
case
LDAP_REQ_EXTENDED
:
rc
=
lback
->
bi_extended
(
op
,
rs
);
/* FIXME: ldap_back_extended() by design
* doesn't send result; frontend is expected
* to send it... */
if
(
rc
!=
SLAPD_ABANDON
)
{
send_ldap_extended
(
op
,
rs
);
}
break
;
default:
rc
=
SLAP_CB_CONTINUE
;
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/passwd.c
+
5
−
0
View file @
7348603a
...
...
@@ -113,6 +113,11 @@ int passwd_extop(
goto
error_return
;
}
/* check for referrals */
if
(
backend_check_referrals
(
op
,
rs
)
!=
LDAP_SUCCESS
)
{
rc
=
rs
->
sr_err
;
goto
error_return
;
}
#ifndef SLAPD_MULTIMASTER
/* This does not apply to multi-master case */
...
...
This diff is collapsed.
Click to expand it.
tests/scripts/test032-chain
+
22
−
0
View file @
7348603a
...
...
@@ -217,6 +217,28 @@ for P in $PORT1 $PORT2 ; do
fi
done
NEWPW
=
newsecret
echo
"Using ldappasswd on second server with scope on first server..."
$LDAPPASSWD
-h
$LOCALHOST
-p
$PORT2
\
-w
secret
-s
$NEWPW
\
-D
"
$MANAGERDN
"
"
$BJORNSDN
"
>>
$TESTOUT
2>&1
RC
=
$?
if
test
$RC
!=
0
;
then
echo
"ldappasswd failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
fi
echo
"Binding with newly changed password on first server..."
$LDAPWHOAMI
-h
$LOCALHOST
-p
$PORT1
\
-D
"
$BJORNSDN
"
-w
$NEWPW
RC
=
$?
if
test
$RC
!=
0
;
then
echo
"ldapwhoami failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
fi
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
echo
">>>>> Test succeeded"
...
...
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