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
openldap
OpenLDAP
Commits
64f028a6
Commit
64f028a6
authored
May 29, 2000
by
Kurt Zeilenga
Browse files
New schema code is now the default.
Use -DSLAPD_SCHEMA_COMPAT to use 1.x compatible schema (deprecated).
parent
6ec3f143
Changes
12
Hide whitespace changes
Inline
Side-by-side
include/portable.h.in
View file @
64f028a6
...
...
@@ -14,6 +14,11 @@
/* end of preamble */
#if !defined( SLAPD_SCHEMA_COMPAT ) && !defined( SLAPD_SCHEMA_NOT_COMPAT )
/* use new schema codes */
#define SLAPD_SCHEMA_NOT_COMPAT 1
#endif
/* Define if on AIX 3.
System headers sometimes define this.
...
...
include/portable.nt
View file @
64f028a6
...
...
@@ -16,6 +16,11 @@
/* end of preamble */
#if !defined( SLAPD_SCHEMA_COMPAT ) && !defined( SLAPD_SCHEMA_NOT_COMPAT )
/* use new schema codes */
#define SLAPD_SCHEMA_NOT_COMPAT 1
#endif
/* --------------------------------------------------- */
/* begin of MSVC5 specific entries */
...
...
servers/slapd/schema_init.c
View file @
64f028a6
...
...
@@ -664,6 +664,7 @@ done:
*
matchp
=
match
;
return
LDAP_SUCCESS
;
}
#endif
static
int
NumericStringNormalize
(
...
...
@@ -720,8 +721,6 @@ NumericStringNormalize(
return
LDAP_SUCCESS
;
}
#endif
struct
syntax_defs_rec
{
char
*
sd_desc
;
int
sd_flags
;
...
...
tests/Makefile.in
View file @
64f028a6
...
...
@@ -12,7 +12,8 @@ tests: bdb2 ldbm
bdb2
:
test-bdb2
test-bdb2
:
FORCE
@
-
$(LN_S)
$(srcdir)
/data
.
@
-
$(LN_S)
$(srcdir)
/data data
@
-
$(LN_S)
$(top_srcdir)
/servers/slapd/schema schema
@
if
test
"
$(BUILD_BDB2)
"
=
"yes"
;
then
\
echo
"Initiating LDAP tests..."
;
\
$(MKDIR)
test-db test-repl
||
true
;
\
...
...
@@ -23,27 +24,31 @@ test-bdb2: FORCE
ldbm
:
test-ldbm
test-ldbm
:
FORCE
@
-
$(LN_S)
$(srcdir)
/data .
@
-
$(LN_S)
$(srcdir)
/data data
@
-
$(LN_S)
$(top_srcdir)
/servers/slapd/schema schema
@
echo
"Initiating LDAP tests..."
@
-
$(MKDIR)
test-db test-repl
||
true
@
$(srcdir)
/scripts/all
$(srcdir)
ldbm
passwd
:
test-passwd
test-passwd
:
FORCE
@
-
$(LN_S)
$(srcdir)
/data .
@
-
$(LN_S)
$(srcdir)
/data data
@
-
$(LN_S)
$(top_srcdir)
/servers/slapd/schema schema
@
echo
"Initiating LDAP tests..."
@
-
$(MKDIR)
test-db test-repl
||
true
@
$(srcdir)
/scripts/passwd-search
$(srcdir)
passwd
test-nis-schema
:
test-nis-schema-ldbm
test-nis-schema-ldbm
:
@
-
$(LN_S)
$(srcdir)
/data .
@
-
$(LN_S)
$(srcdir)
/data data
@
-
$(LN_S)
$(top_srcdir)
/servers/slapd/schema schema
@
echo
"Initiating LDAP server with NIS schema & ldbm backend..."
;
\
$(MKDIR)
test-db test-repl
;
\
$(srcdir)
/scripts/startup_nis_ldap_server.sh
$(srcdir)
ldbm
test-nis-schema-bdb2
:
@
-
$(LN_S)
$(srcdir)
/data .
@
-
$(LN_S)
$(srcdir)
/data data
@
-
$(LN_S)
$(top_srcdir)
/servers/slapd/schema schema
@
echo
"Initiating LDAP server with NIS schema & DB2 backend..."
;
\
@if
test
"
$(BUILD_BDB2)
"
=
"yes"
;
then
\
echo
"Initiating LDAP tests..."
;
\
...
...
@@ -57,6 +62,6 @@ clean-local: FORCE
-
$(RM)
test-db/[!C]
*
test-repl/[!C]
*
*
leak
*
gmon
*
core
veryclean-local
:
FORCE
@
-
$(RM)
data
@
-
$(RM)
data
schema
$(RM)
-r
test-db test-repl
tests/data/slapd-acl.conf
View file @
64f028a6
...
...
@@ -2,8 +2,12 @@
#
# master slapd config -- for testing
#
include
./
data
/
slapd
.
at
.
conf
include
./
data
/
slapd
.
oc
.
conf
#include ./data/slapd.at.conf
#include ./data/slapd.oc.conf
include
./
schema
/
core
.
schema
include
./
schema
/
openldap
.
schema
include
./
schema
/
cosine
.
schema
include
./
schema
/
inetorgperson
.
schema
schemacheck
off
pidfile
./
test
-
db
/
slapd
.
pid
argsfile
./
test
-
db
/
slapd
.
args
...
...
tests/data/slapd-dnssrv.conf
View file @
64f028a6
...
...
@@ -2,12 +2,10 @@
#
# DNS SRV slapd config -- for testing
#
include
./
data
/
slapd
.
at
.
conf
include
./
data
/
slapd
.
oc
.
conf
#include ../../servers/slapd/schema/core.schema
#include ../../servers/slapd/schema/openldap.schema
#include ../../servers/slapd/schema/cosine.schema
#include ../../servers/slapd/schema/inetorgperson.schema
#include ./data/slapd.at.conf
#include ./data/slapd.oc.conf
include
./
schema
/
core
.
schema
include
./
schema
/
openldap
.
schema
schemacheck
on
pidfile
./
test
-
db
/
slapd
.
pid
argsfile
./
test
-
db
/
slapd
.
args
...
...
tests/data/slapd-master.conf
View file @
64f028a6
...
...
@@ -2,12 +2,12 @@
#
# master slapd config -- for testing
#
include
./
data
/
slapd
.
at
.
conf
include
./
data
/
slapd
.
oc
.
conf
#
include .
./../servers/slapd
/schema/core.schema
#
include .
./../servers/slapd
/schema/openldap.schema
#
include .
./../servers/slapd
/schema/cosine.schema
#
include .
./../servers/slapd
/schema/inetorgperson.schema
#
include ./data/slapd.at.conf
#
include ./data/slapd.oc.conf
include
./
schema
/
core
.
schema
include
./
schema
/
openldap
.
schema
include
./
schema
/
cosine
.
schema
include
./
schema
/
inetorgperson
.
schema
schemacheck
on
pidfile
./
test
-
db
/
slapd
.
pid
argsfile
./
test
-
db
/
slapd
.
args
...
...
tests/data/slapd-passwd.conf
View file @
64f028a6
...
...
@@ -2,8 +2,12 @@
#
# master slapd config -- for testing
#
include
./
data
/
slapd
.
at
.
conf
include
./
data
/
slapd
.
oc
.
conf
#include ./data/slapd.at.conf
#include ./data/slapd.oc.conf
include
./
schema
/
core
.
schema
include
./
schema
/
openldap
.
schema
include
./
schema
/
cosine
.
schema
include
./
schema
/
inetorgperson
.
schema
schemacheck
on
pidfile
./
test
-
db
/
slapd
.
pid
argsfile
./
test
-
db
/
slapd
.
args
...
...
tests/data/slapd-pw.conf
View file @
64f028a6
...
...
@@ -2,8 +2,12 @@
#
# master slapd config -- for testing
#
include
./
data
/
slapd
.
at
.
conf
include
./
data
/
slapd
.
oc
.
conf
#include ./data/slapd.at.conf
#include ./data/slapd.oc.conf
include
./
schema
/
core
.
schema
include
./
schema
/
openldap
.
schema
include
./
schema
/
cosine
.
schema
include
./
schema
/
inetorgperson
.
schema
schemacheck
off
pidfile
./
test
-
db
/
slapd
.
pid
argsfile
./
test
-
db
/
slapd
.
args
...
...
tests/data/slapd-ref-slave.conf
View file @
64f028a6
...
...
@@ -2,9 +2,15 @@
#
# slave slapd config -- for default referral testing
#
include
./
data
/
slapd
.
at
.
conf
include
./
data
/
slapd
.
oc
.
conf
#include ./data/slapd.at.conf
#include ./data/slapd.oc.conf
include
./
schema
/
core
.
schema
include
./
schema
/
openldap
.
schema
include
./
schema
/
cosine
.
schema
include
./
schema
/
inetorgperson
.
schema
#
schemacheck
off
#
pidfile
./
test
-
repl
/
slapd
.
pid
argsfile
./
test
-
repl
/
slapd
.
args
...
...
tests/data/slapd-repl-master.conf
View file @
64f028a6
...
...
@@ -2,9 +2,15 @@
#
# master slapd config -- for testing of replication
#
include
./
data
/
slapd
.
at
.
conf
include
./
data
/
slapd
.
oc
.
conf
#include ./data/slapd.at.conf
#include ./data/slapd.oc.conf
include
./
schema
/
core
.
schema
include
./
schema
/
openldap
.
schema
include
./
schema
/
cosine
.
schema
include
./
schema
/
inetorgperson
.
schema
#
schemacheck
off
#
pidfile
./
test
-
db
/
slapd
.
pid
argsfile
./
test
-
db
/
slapd
.
args
...
...
tests/data/slapd-repl-slave.conf
View file @
64f028a6
...
...
@@ -2,8 +2,13 @@
#
# master slapd config -- for testing of replication
#
include
./
data
/
slapd
.
at
.
conf
include
./
data
/
slapd
.
oc
.
conf
#include ./data/slapd.at.conf
#include ./data/slapd.oc.conf
include
./
schema
/
core
.
schema
include
./
schema
/
openldap
.
schema
include
./
schema
/
cosine
.
schema
include
./
schema
/
inetorgperson
.
schema
#
schemacheck
off
pidfile
./
test
-
repl
/
slapd
.
pid
argsfile
./
test
-
repl
/
slapd
.
args
...
...
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