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
François Kooman
OpenLDAP
Commits
d27b2f81
Commit
d27b2f81
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Backout recent initialization/startup changes in prep for new
frontend->backend interface.
parent
fc44d42c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
servers/slapd/backend.c
+0
-28
0 additions, 28 deletions
servers/slapd/backend.c
servers/slapd/config.c
+0
-10
0 additions, 10 deletions
servers/slapd/config.c
servers/slapd/proto-slap.h
+1
-5
1 addition, 5 deletions
servers/slapd/proto-slap.h
servers/slapd/slap.h
+16
-10
16 additions, 10 deletions
servers/slapd/slap.h
with
17 additions
and
53 deletions
servers/slapd/backend.c
+
0
−
28
View file @
d27b2f81
...
...
@@ -54,8 +54,6 @@ new_backend(
be
->
be_config
=
ldbm_back_config
;
be
->
be_init
=
ldbm_back_init
;
be
->
be_close
=
ldbm_back_close
;
be
->
be_startup
=
ldbm_back_startup
;
be
->
be_shutdown
=
ldbm_back_shutdown
;
#ifdef SLAPD_ACLGROUPS
be
->
be_group
=
ldbm_back_group
;
#endif
...
...
@@ -272,32 +270,6 @@ be_isroot_pw( Backend *be, char *ndn, struct berval *cred )
return
result
==
0
;
}
void
be_startup
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
nbackends
;
i
++
)
{
if
(
backends
[
i
].
be_startup
!=
NULL
)
{
(
*
backends
[
i
].
be_startup
)(
&
backends
[
i
]
);
}
}
}
void
be_shutdown
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
nbackends
;
i
++
)
{
if
(
backends
[
i
].
be_shutdown
!=
NULL
)
{
(
*
backends
[
i
].
be_shutdown
)(
&
backends
[
i
]
);
}
}
}
void
be_close
(
void
)
{
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/config.c
+
0
−
10
View file @
d27b2f81
...
...
@@ -33,16 +33,8 @@ static void fp_parse_line(char *line, int *argcp, char **argv);
static
char
*
strtok_quote
(
char
*
line
,
char
*
sep
);
/* the old interface for tools */
void
read_config
(
char
*
fname
,
Backend
**
bep
,
FILE
*
pfp
)
{
read_config_env
(
fname
,
bep
,
pfp
,
0
);
}
/* the new interface for slapd */
void
read_config_env
(
char
*
fname
,
Backend
**
bep
,
FILE
*
pfp
,
int
startup
)
{
FILE
*
fp
;
char
*
line
,
*
savefname
;
...
...
@@ -479,8 +471,6 @@ read_config_env( char *fname, Backend **bep, FILE *pfp, int startup )
}
}
fclose
(
fp
);
if
(
startup
)
be_startup
();
}
static
void
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/proto-slap.h
+
1
−
5
View file @
d27b2f81
...
...
@@ -65,8 +65,6 @@ int be_isroot LDAP_P(( Backend *be, char *ndn ));
int
be_isroot_pw
LDAP_P
((
Backend
*
be
,
char
*
ndn
,
struct
berval
*
cred
));
char
*
be_root_dn
LDAP_P
((
Backend
*
be
));
void
be_close
LDAP_P
((
void
));
void
be_startup
LDAP_P
((
void
));
void
be_shutdown
LDAP_P
((
void
));
/*
* ch_malloc.c
...
...
@@ -93,7 +91,6 @@ char ** str2charray LDAP_P(( char *str, char *brkstr ));
*/
void
read_config
LDAP_P
((
char
*
fname
,
Backend
**
bep
,
FILE
*
pfp
));
void
read_config_env
LDAP_P
((
char
*
fname
,
Backend
**
bep
,
FILE
*
pfp
,
int
up
));
/*
* connection.c
...
...
@@ -124,6 +121,7 @@ void entry_free LDAP_P(( Entry *e ));
int
entry_rdwr_lock
LDAP_P
((
Entry
*
e
,
int
rw
));
int
entry_rdwr_rlock
LDAP_P
((
Entry
*
e
));
int
entry_rdwr_wlock
LDAP_P
((
Entry
*
e
));
int
entry_rdwr_trylock
LDAP_P
((
Entry
*
e
,
int
rw
));
int
entry_rdwr_unlock
LDAP_P
((
Entry
*
e
,
int
rw
));
int
entry_rdwr_runlock
LDAP_P
((
Entry
*
e
));
int
entry_rdwr_wunlock
LDAP_P
((
Entry
*
e
));
...
...
@@ -314,8 +312,6 @@ extern void ldbm_back_close LDAP_P((Backend *be));
extern
int
ldbm_back_group
LDAP_P
((
Backend
*
be
,
Entry
*
target
,
char
*
gr_ndn
,
char
*
op_ndn
,
char
*
objectclassValue
,
char
*
groupattrName
));
extern
void
ldbm_back_startup
LDAP_P
((
Backend
*
be
));
extern
void
ldbm_back_shutdown
LDAP_P
((
Backend
*
be
));
#endif
#ifdef SLAPD_PASSWD
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/slap.h
+
16
−
10
View file @
d27b2f81
...
...
@@ -51,10 +51,6 @@ LDAP_BEGIN_DECL
extern
int
slap_debug
;
#ifdef SLAPD_BDB2
extern
int
bdb2i_do_timing
;
#endif
struct
slap_op
;
struct
slap_conn
;
...
...
@@ -137,18 +133,30 @@ typedef unsigned long ID;
* represents an entry in core
*/
typedef
struct
entry
{
ldap_pvt_thread_rdwr_t
e_rdwr
;
/* reader/writer lock */
char
*
e_dn
;
/* DN of this entry */
char
*
e_ndn
;
/* normalized DN of this entry */
Attribute
*
e_attrs
;
/* list of attributes + values */
/*
* The ID field should only be changed before entry is
* inserted into a cache. The ID value is backend
* specific.
*/
ID
e_id
;
/* id of this entry - this should */
/* really be private to back-ldbm */
char
e_state
;
/* for the cache */
ldap_pvt_thread_rdwr_t
e_rdwr
;
/* reader/writer lock */
#define ENTRY_STATE_DELETED 1
/*
* remaining fields require backend cache lock to access
* These items are specific to the LDBM backend and should
* and should be hidden.
*/
char
e_state
;
/* for the cache */
#define ENTRY_STATE_DELETED 1
#define ENTRY_STATE_CREATING 2
int
e_refcnt
;
/* # threads ref'ing this entry */
struct
entry
*
e_lrunext
;
/* for cache lru list */
struct
entry
*
e_lruprev
;
...
...
@@ -275,8 +283,6 @@ struct backend {
void
(
*
be_config
)
LDAP_P
((
Backend
*
be
,
char
*
fname
,
int
lineno
,
int
argc
,
char
**
argv
));
void
(
*
be_init
)
LDAP_P
((
Backend
*
be
));
void
(
*
be_startup
)
LDAP_P
((
Backend
*
be
));
void
(
*
be_shutdown
)
LDAP_P
((
Backend
*
be
));
void
(
*
be_close
)
LDAP_P
((
Backend
*
be
));
#ifdef SLAPD_ACLGROUPS
...
...
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