Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lukas However
OpenLDAP
Commits
1229cfcc
Commit
1229cfcc
authored
Jun 22, 2001
by
Kurt Zeilenga
Browse files
Backout directory config option
parent
f58c3a58
Changes
13
Hide whitespace changes
Inline
Side-by-side
doc/man/man5/slapd.conf.5
View file @
1229cfcc
...
...
@@ -57,7 +57,7 @@ backslash character.
.LP
The specific configuration options available are discussed below in the
Global Configuration Options, General Backend Options, General Database
Options, LDBM Backend-Specific
Options, LDBM Database-Specific Options,
Options, LDBM Database-Specific Options,
Shell Database-Specific Options, and Password
Database-Specific Options sections. Refer to the "OpenLDAP
Administrator's Guide" for more details on the slapd configuration
...
...
@@ -617,17 +617,12 @@ Specify the referral to pass back when
.BR slapd (8)
is asked to modify a replicated local database.
If specified multiple times, each url is provided.
.SH LDBM BACKEND-SPECIFIC OPTIONS
Options in this category only apply to the LDBM backend. That is,
they must follow "backend ldbm" line and come before any subsequent
"backend" or "database" lines. The LDBM backend is a high-performance
database that makes extensive use of indexing and caching to speed
data access.
.TP
.B directory <directory>
Specify the directory where shared LDBM files, namely those associated
with a BerkeleyDB environment, for all LDBM databases are kept.
The default is unset.
.\" .SH LDBM BACKEND-SPECIFIC OPTIONS
.\" Options in this category only apply to the LDBM backend. That is,
.\" they must follow "backend ldbm" line and come before any subsequent
.\" "backend" or "database" lines. The LDBM backend is a high-performance
.\" database that makes extensive use of indexing and caching to speed
.\" data access.
.SH LDBM DATABASE-SPECIFIC OPTIONS
Options in this category only apply to the LDBM databases. That is,
they must follow "database ldbm" line and come before any subsequent
...
...
servers/slapd/back-ldbm/back-ldbm.h
View file @
1229cfcc
...
...
@@ -121,10 +121,6 @@ struct ldbminfo {
int
li_envdirok
;
};
struct
ldbm_backend_info
{
char
*
lbi_directory
;
};
LDAP_END_DECL
#include
"proto-back-ldbm.h"
...
...
servers/slapd/back-ldbm/config.c
View file @
1229cfcc
...
...
@@ -15,48 +15,6 @@
#include
"slap.h"
#include
"back-ldbm.h"
int
ldbm_back_config
(
BackendInfo
*
bi
,
const
char
*
fname
,
int
lineno
,
int
argc
,
char
**
argv
)
{
struct
ldbm_backend_info
*
lbi
=
(
struct
ldbm_backend_info
*
)
bi
->
bi_private
;
if
(
lbi
==
NULL
)
{
fprintf
(
stderr
,
"%s: line %d: ldbm backend info is null!
\n
"
,
fname
,
lineno
);
return
1
;
}
/* directory where database files live */
if
(
strcasecmp
(
argv
[
0
],
"directory"
)
==
0
)
{
if
(
argc
<
2
)
{
fprintf
(
stderr
,
"%s: line %d: missing dir in
\"
directory <dir>
\"
line
\n
"
,
fname
,
lineno
);
return
(
1
);
}
if
(
lbi
->
lbi_directory
)
{
free
(
lbi
->
lbi_directory
);
}
lbi
->
lbi_directory
=
ch_strdup
(
argv
[
1
]
);
/* anything else */
}
else
{
fprintf
(
stderr
,
"%s: line %d: unknown directive
\"
%s
\"
in ldbm backend definition (ignored)
\n
"
,
fname
,
lineno
,
argv
[
0
]
);
}
return
0
;
}
int
ldbm_back_db_config
(
Backend
*
be
,
...
...
servers/slapd/back-ldbm/external.h
View file @
1229cfcc
...
...
@@ -13,9 +13,6 @@ extern int ldbm_back_initialize LDAP_P(( BackendInfo *bi ));
extern
int
ldbm_back_open
LDAP_P
((
BackendInfo
*
bi
));
extern
int
ldbm_back_close
LDAP_P
((
BackendInfo
*
bi
));
extern
int
ldbm_back_destroy
LDAP_P
((
BackendInfo
*
bi
));
extern
int
ldbm_back_config
LDAP_P
((
BackendInfo
*
bi
,
const
char
*
fname
,
int
lineno
,
int
argc
,
char
**
argv
));
extern
int
ldbm_back_db_init
LDAP_P
((
BackendDB
*
bd
));
extern
int
ldbm_back_db_open
LDAP_P
((
BackendDB
*
bd
));
...
...
servers/slapd/back-ldbm/init.c
View file @
1229cfcc
...
...
@@ -43,7 +43,7 @@ ldbm_back_initialize(
bi
->
bi_controls
=
controls
;
bi
->
bi_open
=
ldbm_back_open
;
bi
->
bi_config
=
ldbm_back_config
;
bi
->
bi_config
=
NULL
;
bi
->
bi_close
=
ldbm_back_close
;
bi
->
bi_destroy
=
ldbm_back_destroy
;
...
...
@@ -86,14 +86,6 @@ ldbm_back_initialize(
bi
->
bi_connection_init
=
0
;
bi
->
bi_connection_destroy
=
0
;
{
struct
ldbm_backend_info
*
lbi
=
malloc
(
sizeof
(
struct
ldbm_backend_info
)
);
bi
->
bi_private
=
lbi
;
lbi
->
lbi_directory
=
NULL
;
}
return
0
;
}
...
...
@@ -116,7 +108,7 @@ ldbm_back_open(
=
(
struct
ldbm_backend_info
*
)
bi
->
bi_private
;
/* initialize the underlying database system */
rc
=
ldbm_initialize
(
lbi
->
lbi_directory
);
rc
=
ldbm_initialize
(
NULL
);
return
rc
;
}
...
...
@@ -186,8 +178,8 @@ ldbm_back_db_open(
)
{
struct
ldbminfo
*
li
=
(
struct
ldbminfo
*
)
be
->
be_private
;
li
->
li_dbenv
=
ldbm_initialize_env
(
li
->
li_directory
,
li
->
li_dbcachesize
,
&
li
->
li_envdirok
);
li
->
li_dbenv
=
ldbm_initialize_env
(
li
->
li_directory
,
li
->
li_dbcachesize
,
&
li
->
li_envdirok
);
return
0
;
}
...
...
tests/data/slapd-acl.conf
View file @
1229cfcc
...
...
@@ -14,9 +14,6 @@ argsfile ./test-db/slapd.args
# ldbm database definitions
#######################################################################
backend
@
BACKEND
@
# #ldbm#directory ./test-db
database
@
BACKEND
@
cachesize
0
suffix
"o=University of Michigan, c=US"
...
...
tests/data/slapd-master.conf
View file @
1229cfcc
...
...
@@ -14,9 +14,6 @@ argsfile ./test-db/slapd.args
# ldbm database definitions
#######################################################################
backend
@
BACKEND
@
# #ldbm#directory ./test-db
database
@
BACKEND
@
suffix
"o=University of Michigan, c=US"
directory
./
test
-
db
...
...
tests/data/slapd-pw.conf
View file @
1229cfcc
...
...
@@ -16,9 +16,6 @@ argsfile ./test-db/slapd.args
# ldbm database definitions
#######################################################################
backend
@
BACKEND
@
# #ldbm#directory ./test-db
database
@
BACKEND
@
cachesize
0
suffix
"o=University of Michigan, c=US"
...
...
tests/data/slapd-ref-slave.conf
View file @
1229cfcc
...
...
@@ -18,9 +18,6 @@ argsfile ./test-repl/slapd.args
referral
"ldap://localhost:9009/"
backend
@
BACKEND
@
# #ldbm#directory ./test-repl
database
@
BACKEND
@
cachesize
0
suffix
"o=University of Mich, c=US"
...
...
tests/data/slapd-repl-master.conf
View file @
1229cfcc
...
...
@@ -16,9 +16,6 @@ argsfile ./test-db/slapd.args
# ldbm database definitions
#######################################################################
backend
@
BACKEND
@
# #ldbm#directory ./test-db
database
@
BACKEND
@
cachesize
0
suffix
"o=University of Michigan, c=US"
...
...
tests/data/slapd-repl-slave.conf
View file @
1229cfcc
...
...
@@ -17,9 +17,6 @@ argsfile ./test-repl/slapd.args
# ldbm database definitions
#######################################################################
backend
@
BACKEND
@
# #ldbm#directory ./test-repl
database
@
BACKEND
@
cachesize
0
suffix
"o=University of Michigan, c=US"
...
...
tests/data/slapd-schema.conf
View file @
1229cfcc
...
...
@@ -25,9 +25,6 @@ argsfile ./test-db/slapd.args
# ldbm database definitions
#######################################################################
backend
@
BACKEND
@
# #ldbm#directory ./test-db
database
@
BACKEND
@
suffix
"o=OpenLDAP Project, l=Internet"
directory
./
test
-
db
...
...
tests/data/slapd.conf
View file @
1229cfcc
...
...
@@ -15,9 +15,6 @@ argsfile ./test-db/slapd.args
# ldbm database definitions
#######################################################################
backend
@
BACKEND
@
# #ldbm#directory ./test-db
database
@
BACKEND
@
suffix
"o=University of Michigan, c=US"
directory
./
test
-
db
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment