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
Oren Tirosh
OpenLDAP
Commits
873be21a
Commit
873be21a
authored
21 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
add referral check to functions elaborated by overlays
parent
0b37fb4e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
servers/slapd/backover.c
+30
-3
30 additions, 3 deletions
servers/slapd/backover.c
servers/slapd/slap.h
+3
-3
3 additions, 3 deletions
servers/slapd/slap.h
with
33 additions
and
6 deletions
servers/slapd/backover.c
+
30
−
3
View file @
873be21a
...
...
@@ -146,9 +146,21 @@ over_back_response ( Operation *op, SlapReply *rs )
return
rc
;
}
enum
op_which
{
op_bind
=
0
,
op_unbind
,
op_search
,
op_compare
,
op_modify
,
op_modrdn
,
op_add
,
op_delete
,
op_abandon
,
op_cancel
,
op_extended
};
enum
op_which
{
op_bind
=
0
,
op_unbind
,
op_search
,
op_compare
,
op_modify
,
op_modrdn
,
op_add
,
op_delete
,
op_abandon
,
op_cancel
,
op_extended
,
op_aux_chk_referrals
,
op_last
};
static
int
over_op_func
(
...
...
@@ -257,6 +269,12 @@ over_op_extended( Operation *op, SlapReply *rs )
return
over_op_func
(
op
,
rs
,
op_extended
);
}
static
int
over_chk_referrals
(
Operation
*
op
,
SlapReply
*
rs
)
{
return
over_op_func
(
op
,
rs
,
op_aux_chk_referrals
);
}
int
overlay_register
(
slap_overinst
*
on
...
...
@@ -325,8 +343,17 @@ overlay_config( BackendDB *be, const char *ov )
bi
->
bi_op_delete
=
over_op_delete
;
bi
->
bi_op_abandon
=
over_op_abandon
;
bi
->
bi_op_cancel
=
over_op_cancel
;
bi
->
bi_extended
=
over_op_extended
;
/*
* this is fine because it has the same
* args of the operations; we need to rework
* all the hooks to share the same args
* of the operations...
*/
bi
->
bi_chk_referrals
=
over_chk_referrals
;
be
->
bd_info
=
bi
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/slap.h
+
3
−
3
View file @
873be21a
...
...
@@ -1412,9 +1412,9 @@ struct slap_backend_db {
#define be_extended bd_info->bi_extended
#define be_chk_referrals bd_info->bi_chk_referrals
#define be_fetch bd_info->bi_entry_get_rw
#define be_release bd_info->bi_entry_release_rw
#define be_chk_referrals bd_info->bi_chk_referrals
#define be_group bd_info->bi_acl_group
#define be_attribute bd_info->bi_acl_attribute
#define be_operational bd_info->bi_operational
...
...
@@ -1689,10 +1689,10 @@ typedef int (BI_op_delete) LDAP_P(( struct slap_op *op, struct slap_rep *rs ));
typedef
int
(
BI_op_abandon
)
LDAP_P
((
struct
slap_op
*
op
,
struct
slap_rep
*
rs
));
typedef
int
(
BI_op_cancel
)
LDAP_P
((
struct
slap_op
*
op
,
struct
slap_rep
*
rs
));
typedef
int
(
BI_op_extended
)
LDAP_P
((
struct
slap_op
*
op
,
struct
slap_rep
*
rs
));
typedef
int
(
BI_chk_referrals
)
LDAP_P
((
struct
slap_op
*
op
,
struct
slap_rep
*
rs
));
typedef
int
(
BI_entry_release_rw
)
LDAP_P
((
struct
slap_op
*
op
,
Entry
*
e
,
int
rw
));
typedef
int
(
BI_entry_get_rw
)
LDAP_P
((
struct
slap_op
*
op
,
struct
berval
*
ndn
,
ObjectClass
*
oc
,
AttributeDescription
*
at
,
int
rw
,
Entry
**
e
));
typedef
int
(
BI_chk_referrals
)
LDAP_P
((
struct
slap_op
*
op
,
struct
slap_rep
*
rs
));
typedef
int
(
BI_operational
)
LDAP_P
((
struct
slap_op
*
op
,
struct
slap_rep
*
rs
,
int
opattrs
,
Attribute
**
ap
));
typedef
int
(
BI_has_subordinates
)
LDAP_P
((
struct
slap_op
*
op
,
Entry
*
e
,
int
*
hasSubs
));
...
...
@@ -1787,9 +1787,9 @@ struct slap_backend_info {
BI_op_extended
*
bi_extended
;
/* Auxilary Functions */
BI_chk_referrals
*
bi_chk_referrals
;
BI_entry_get_rw
*
bi_entry_get_rw
;
BI_entry_release_rw
*
bi_entry_release_rw
;
BI_chk_referrals
*
bi_chk_referrals
;
BI_operational
*
bi_operational
;
BI_has_subordinates
*
bi_has_subordinates
;
...
...
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