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
Jaak Ristioja
OpenLDAP
Commits
79f3ea6e
Commit
79f3ea6e
authored
22 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
BDB_HIER was defined by accident, undef
Fix up for SLAP_NVALUES_ON_DISK
parent
2d78fafe
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/back-bdb/back-bdb.h
+1
-1
1 addition, 1 deletion
servers/slapd/back-bdb/back-bdb.h
servers/slapd/back-bdb/id2entry.c
+6
-5
6 additions, 5 deletions
servers/slapd/back-bdb/id2entry.c
with
7 additions
and
6 deletions
servers/slapd/back-bdb/back-bdb.h
+
1
−
1
View file @
79f3ea6e
...
...
@@ -14,7 +14,7 @@
LDAP_BEGIN_DECL
#define BDB_HIER 1
/*
#define BDB_HIER 1
*/
#define DN_BASE_PREFIX SLAP_INDEX_EQUALITY_PREFIX
#define DN_ONE_PREFIX '%'
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-bdb/id2entry.c
+
6
−
5
View file @
79f3ea6e
...
...
@@ -24,13 +24,14 @@ int bdb_id2entry_put(
struct
berval
bv
;
int
rc
;
#ifdef BDB_HIER
char
*
odn
,
*
ondn
;
struct
berval
odn
,
ondn
;
/* We only store rdns, and they go in the id2parent database. */
odn
=
e
->
e_
d
n
;
ondn
=
e
->
e_n
d
n
;
odn
=
e
->
e_n
ame
;
ondn
=
e
->
e_nn
ame
;
e
->
e_dn
=
""
;
e
->
e_ndn
=
""
;
e
->
e_name
=
slap_empty_bv
;
e
->
e_nname
=
slap_empty_bv
;
#endif
DBTzero
(
&
key
);
key
.
data
=
(
char
*
)
&
e
->
e_id
;
...
...
@@ -38,7 +39,7 @@ int bdb_id2entry_put(
rc
=
entry_encode
(
e
,
&
bv
);
#ifdef BDB_HIER
e
->
e_
d
n
=
odn
;
e
->
e_n
d
n
=
ondn
;
e
->
e_n
ame
=
odn
;
e
->
e_nn
ame
=
ondn
;
#endif
if
(
rc
!=
LDAP_SUCCESS
)
{
return
-
1
;
...
...
@@ -204,7 +205,7 @@ int bdb_entry_return(
if
(
(
void
*
)
e
->
e_attrs
!=
(
void
*
)
(
e
+
1
))
{
attrs_free
(
e
->
e_attrs
);
}
#ifdef
SLAP_NVALUES
#if
def
ined(SLAP_NVALUES) && !defined(
SLAP_NVALUES
_ON_DISK)
else
{
/* nvals are not contiguous with the rest. oh well. */
Attribute
*
a
;
...
...
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