.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
.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
int li_envdirok;
};
-struct ldbm_backend_info {
- char *lbi_directory;
-};
-
LDAP_END_DECL
#include "proto-back-ldbm.h"
#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,
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 ));
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;
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;
}
= (struct ldbm_backend_info *) bi->bi_private;
/* initialize the underlying database system */
- rc = ldbm_initialize( lbi->lbi_directory );
+ rc = ldbm_initialize( NULL );
return rc;
}
)
{
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;
}
# ldbm database definitions
#######################################################################
-backend @BACKEND@
-# #ldbm#directory ./test-db
-
database @BACKEND@
cachesize 0
suffix "o=University of Michigan, c=US"
# ldbm database definitions
#######################################################################
-backend @BACKEND@
-# #ldbm#directory ./test-db
-
database @BACKEND@
suffix "o=University of Michigan, c=US"
directory ./test-db
# ldbm database definitions
#######################################################################
-backend @BACKEND@
-# #ldbm#directory ./test-db
-
database @BACKEND@
cachesize 0
suffix "o=University of Michigan, c=US"
referral "ldap://localhost:9009/"
-backend @BACKEND@
-# #ldbm#directory ./test-repl
-
database @BACKEND@
cachesize 0
suffix "o=University of Mich, c=US"
# ldbm database definitions
#######################################################################
-backend @BACKEND@
-# #ldbm#directory ./test-db
-
database @BACKEND@
cachesize 0
suffix "o=University of Michigan, c=US"
# ldbm database definitions
#######################################################################
-backend @BACKEND@
-# #ldbm#directory ./test-repl
-
database @BACKEND@
cachesize 0
suffix "o=University of Michigan, c=US"
# ldbm database definitions
#######################################################################
-backend @BACKEND@
-# #ldbm#directory ./test-db
-
database @BACKEND@
suffix "o=OpenLDAP Project, l=Internet"
directory ./test-db
# ldbm database definitions
#######################################################################
-backend @BACKEND@
-# #ldbm#directory ./test-db
-
database @BACKEND@
suffix "o=University of Michigan, c=US"
directory ./test-db