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
Howard Chu
OpenLDAP
Commits
a5e7fdce
Commit
a5e7fdce
authored
3 years ago
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ITS#9762 slapo-dyngroup: Maintain values in order of insertion
parent
a8467b8b
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
servers/slapd/overlays/dyngroup.c
+7
-3
7 additions, 3 deletions
servers/slapd/overlays/dyngroup.c
with
7 additions
and
3 deletions
servers/slapd/overlays/dyngroup.c
+
7
−
3
View file @
a5e7fdce
...
...
@@ -90,7 +90,7 @@ static int dgroup_cf( ConfigArgs *c )
case
SLAP_CONFIG_ADD
:
case
LDAP_MOD_ADD
:
{
adpair
ap
=
{
NULL
,
NULL
,
NULL
},
*
a2
;
adpair
ap
=
{
NULL
,
NULL
,
NULL
},
**
app
,
*
a2
;
const
char
*
text
;
if
(
slap_str2ad
(
c
->
argv
[
1
],
&
ap
.
ap_mem
,
&
text
)
)
{
snprintf
(
c
->
cr_msg
,
sizeof
(
c
->
cr_msg
),
"%s attribute description unknown:
\"
%s
\"
"
,
...
...
@@ -110,10 +110,14 @@ static int dgroup_cf( ConfigArgs *c )
* anything this instance of the overlay needs.
*/
a2
=
ch_malloc
(
sizeof
(
adpair
)
);
a2
->
ap_next
=
on
->
on_bi
.
bi_private
;
for
(
app
=
&
on
->
on_bi
.
bi_private
;
*
app
;
app
=
&
(
*
app
)
->
ap_next
)
/* Get to the end */
;
a2
->
ap_mem
=
ap
.
ap_mem
;
a2
->
ap_uri
=
ap
.
ap_uri
;
on
->
on_bi
.
bi_private
=
a2
;
a2
->
ap_next
=
*
app
;
*
app
=
a2
;
rc
=
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