win/Makefile win/VERSION.mak
by Richard Allen Megginson
win/Makefile | 2 +-
win/VERSION.mak | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 057e78a8d8a7550659f878fd08dec13bc5cfd371
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Thu Feb 25 15:55:46 2010 -0700
make sure bitsadmin.exe path is quoted
the default path for bitsadmin.exe has spaces, so it must be quoted
bump version to 1.1.4.a2
diff --git a/win/Makefile b/win/Makefile
index c381a21..281b3d2 100644
--- a/win/Makefile
+++ b/win/Makefile
@@ -78,7 +78,7 @@ BITSADMIN=c:\program files\support tools\bitsadmin.exe
!ELSE
BITSADMIN=bitsadmin
!ENDIF
-DOWNLOAD=$(BITSADMIN) /wrap /transfer consolebuild /download /priority normal
+DOWNLOAD="$(BITSADMIN)" /wrap /transfer consolebuild /download /priority normal
!IFNDEF SBC
SBC=http://filer/components
!ENDIF
diff --git a/win/VERSION.mak b/win/VERSION.mak
index db9d0d5..4263206 100644
--- a/win/VERSION.mak
+++ b/win/VERSION.mak
@@ -7,7 +7,7 @@ BRANDNOSPACE=389
# this is the vendor or manufacturer
VENDOR=389 Project
# the version
-VERSION=1.1.4.a1
+VERSION=1.1.4.a2
# the name of the product - this is used in the title of the
# installer, in the name of the folder, and in the name
# of the shortcuts
14 years, 1 month
Branch 'Directory_Server_8_2_Branch' - ldap/admin ltmain.sh Makefile.am Makefile.in wrappers/migratecred.in wrappers/mmldif.in wrappers/pwdhash.in
by Richard Allen Megginson
Makefile.am | 2 ++
Makefile.in | 2 ++
ldap/admin/src/scripts/start-dirsrv.in | 4 ++--
wrappers/migratecred.in | 2 +-
wrappers/mmldif.in | 2 +-
wrappers/pwdhash.in | 2 +-
6 files changed, 9 insertions(+), 5 deletions(-)
New commits:
commit 3d27198f45b4b25df667d3f86dce66a44f4bc65d
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Thu Feb 25 11:10:53 2010 -0700
Bug 568196 - Install DS8.2 on Solaris fails
https://bugzilla.redhat.com/show_bug.cgi?id=568196
Resolves: bug 568196
Bug Description: Install DS8.2 on Solaris fails
Reviewed by: nhosoi (Thanks!)
Branch: Directory_Server_8_2_Branch
Fix Description: Add pcre_libdir to script wrappers for programs that use pcre
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
diff --git a/Makefile.am b/Makefile.am
index 15645e5..98c6544 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1246,6 +1246,7 @@ fixupcmd = sed \
-e 's,@sasl_libdir\@,$(libdir),g' \
-e 's,@sasl_path\@,$(libdir)/sasl2,g' \
-e 's,@netsnmp_libdir\@,$(libdir),g' \
+ -e 's,@pcre_libdir\@,$(libdir),g' \
-e 's,@propertydir\@,$(propertydir),g' \
-e 's,@datadir\@,$(datadir),g' \
-e 's,@schemadir\@,$(schemadir),g' \
@@ -1298,6 +1299,7 @@ fixupcmd = sed \
-e 's,@sasl_libdir\@,$(sasl_libdir),g' \
-e 's,@sasl_path\@,@sasl_path@,g' \
-e 's,@netsnmp_libdir\@,$(netsnmp_libdir),g' \
+ -e 's,@pcre_libdir\@,$(pcre_libdir),g' \
-e 's,@propertydir\@,$(propertydir),g' \
-e 's,@datadir\@,$(datadir),g' \
-e 's,@schemadir\@,$(schemadir),g' \
diff --git a/Makefile.in b/Makefile.in
old mode 100755
new mode 100644
index 6b4464f..4a10ac0
--- a/Makefile.in
+++ b/Makefile.in
@@ -2210,6 +2210,7 @@ rsearch_bin_LDADD = $(NSPR_LINK) $(NSS_LINK) $(LDAPSDK_LINK) $(SASL_LINK) $(LIBS
@BUNDLE_FALSE@ -e 's,@sasl_libdir\@,$(sasl_libdir),g' \
@BUNDLE_FALSE@ -e 's,@sasl_path\@,@sasl_path@,g' \
@BUNDLE_FALSE@ -e 's,@netsnmp_libdir\@,$(netsnmp_libdir),g' \
+@BUNDLE_FALSE@ -e 's,@pcre_libdir\@,$(pcre_libdir),g' \
@BUNDLE_FALSE@ -e 's,@propertydir\@,$(propertydir),g' \
@BUNDLE_FALSE@ -e 's,@datadir\@,$(datadir),g' \
@BUNDLE_FALSE@ -e 's,@schemadir\@,$(schemadir),g' \
@@ -2272,6 +2273,7 @@ rsearch_bin_LDADD = $(NSPR_LINK) $(NSS_LINK) $(LDAPSDK_LINK) $(SASL_LINK) $(LIBS
@BUNDLE_TRUE@ -e 's,@sasl_libdir\@,$(libdir),g' \
@BUNDLE_TRUE@ -e 's,@sasl_path\@,$(libdir)/sasl2,g' \
@BUNDLE_TRUE@ -e 's,@netsnmp_libdir\@,$(libdir),g' \
+@BUNDLE_TRUE@ -e 's,@pcre_libdir\@,$(libdir),g' \
@BUNDLE_TRUE@ -e 's,@propertydir\@,$(propertydir),g' \
@BUNDLE_TRUE@ -e 's,@datadir\@,$(datadir),g' \
@BUNDLE_TRUE@ -e 's,@schemadir\@,$(schemadir),g' \
diff --git a/ldap/admin/src/scripts/start-dirsrv.in b/ldap/admin/src/scripts/start-dirsrv.in
index fb9bfdb..46c48d7 100755
--- a/ldap/admin/src/scripts/start-dirsrv.in
+++ b/ldap/admin/src/scripts/start-dirsrv.in
@@ -22,9 +22,9 @@ start_instance() {
fi
prefix="$DS_ROOT"
- LD_LIBRARY_PATH=$prefix$SERVER_DIR:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+ LD_LIBRARY_PATH=$prefix$SERVER_DIR:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@:@pcre_libdir@
export LD_LIBRARY_PATH
- SHLIB_PATH=$prefix$SERVER_DIR:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+ SHLIB_PATH=$prefix$SERVER_DIR:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@:@pcre_libdir@
export SHLIB_PATH
DS_CONFIG_DIR=$CONFIG_DIR
diff --git a/ltmain.sh b/ltmain.sh
old mode 100755
new mode 100644
diff --git a/wrappers/migratecred.in b/wrappers/migratecred.in
index c1aeabf..dd44800 100755
--- a/wrappers/migratecred.in
+++ b/wrappers/migratecred.in
@@ -4,7 +4,7 @@
## (1) Specify variables used by this script. ##
###############################################################################
-LIB_DIR=@serverdir@:@nss_libdir@:@nspr_libdir@:@ldapsdk_libdir@:@sasl_libdir@
+LIB_DIR=@serverdir@:@nss_libdir@:@nspr_libdir@:@ldapsdk_libdir@:@sasl_libdir@:@pcre_libdir@
BIN_DIR=@bindir@
COMMAND=migratecred-bin
diff --git a/wrappers/mmldif.in b/wrappers/mmldif.in
index 3a89ce4..a11932e 100755
--- a/wrappers/mmldif.in
+++ b/wrappers/mmldif.in
@@ -4,7 +4,7 @@
## (1) Specify variables used by this script. ##
###############################################################################
-LIB_DIR=@serverdir@:@nss_libdir@:@nspr_libdir@:@ldapsdk_libdir@:@sasl_libdir@
+LIB_DIR=@serverdir@:@nss_libdir@:@nspr_libdir@:@ldapsdk_libdir@:@sasl_libdir@:@pcre_libdir@
BIN_DIR=@bindir@
COMMAND=mmldif-bin
diff --git a/wrappers/pwdhash.in b/wrappers/pwdhash.in
index ab84914..b3ef3fa 100755
--- a/wrappers/pwdhash.in
+++ b/wrappers/pwdhash.in
@@ -4,7 +4,7 @@
## (1) Specify variables used by this script. ##
###############################################################################
-LIB_DIR=@serverdir@:@nss_libdir@:@nspr_libdir@:@ldapsdk_libdir@:@sasl_libdir@
+LIB_DIR=@serverdir@:@nss_libdir@:@nspr_libdir@:@ldapsdk_libdir@:@sasl_libdir@:@pcre_libdir@
BIN_DIR=@bindir@
COMMAND=pwdhash-bin
14 years, 1 month
Branch 'Directory_Server_8_2_Branch' - ldap/servers
by Noriko Hosoi
ldap/servers/slapd/dse.c | 13 ++++++++-----
ldap/servers/slapd/schema.c | 8 +++++---
2 files changed, 13 insertions(+), 8 deletions(-)
New commits:
commit 9f3536c44e0b2270242a2ff27b8dda39ddf4b290
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Thu Feb 25 09:58:35 2010 -0800
548115 - memory leak in schema reload
https://bugzilla.redhat.com/show_bug.cgi?id=548115
Description:
dse.c: 1) dse_add_entry_pb is supposed to free the given
the schema entry e. Although the function never consumes the
entry, it was only freeing it when the entry was added. (If
it was merged or rejected, it was not freed.)
schema.c: 1) when allocating a work buffer with sizedbuffer_allocate,
the space for the NULL termination was not counted.
2) DSE returned from slapi_validate_schema_files must have been
freed regardless of the return value.
diff --git a/ldap/servers/slapd/dse.c b/ldap/servers/slapd/dse.c
index f0d124c..e51ea7d 100644
--- a/ldap/servers/slapd/dse.c
+++ b/ldap/servers/slapd/dse.c
@@ -447,6 +447,10 @@ int
dse_destroy(struct dse *pdse)
{
int nentries = 0;
+
+ if (NULL == pdse) {
+ return 0; /* no one checks this return value */
+ }
if (pdse->dse_rwlock)
PR_RWLock_Wlock(pdse->dse_rwlock);
slapi_ch_free((void **)&(pdse->dse_filename));
@@ -1144,11 +1148,10 @@ dse_add_entry_pb(struct dse* pdse, Slapi_Entry *e, Slapi_PBlock *pb)
slapi_entry_free(schemacheckentry);
}
- /* Callers expect e (SLAPI_ADD_ENTRY) to be freed or otherwise
- * consumed if the add was successful. */
- if (rc == 0) {
- slapi_entry_free(e);
- }
+ /* Callers expect e (SLAPI_ADD_ENTRY) to be freed */
+ /* This function duplicates 'e' for dse_node 'n' and schemacheckentry.
+ * 'e' should not have been consumed */
+ slapi_entry_free(e);
return rc;
}
diff --git a/ldap/servers/slapd/schema.c b/ldap/servers/slapd/schema.c
index 98224df..45cfa5f 100644
--- a/ldap/servers/slapd/schema.c
+++ b/ldap/servers/slapd/schema.c
@@ -2824,7 +2824,7 @@ read_oc_ldif ( const char *input, struct objclass **oc, char *errorbuf,
/* look for the NAME */
if ( (pstart = (*keyword_strstr_fn)(nextinput, "NAME '")) != NULL ) {
pstart += 6;
- sizedbuffer_allocate(psbOcName,strlen(pstart));
+ sizedbuffer_allocate(psbOcName,strlen(pstart)+1);
if ( sscanf ( pstart, "%s", psbOcName->buffer ) > 0 ) {
/* strip the trailing single quote */
if ( psbOcName->buffer[strlen(psbOcName->buffer)-1] == '\'' ) {
@@ -3294,7 +3294,7 @@ read_at_ldif(const char *input, struct asyntaxinfo **asipp, char *errorbuf,
/* look for the optional DESCription */
if ( (pStart = (*keyword_strstr_fn) ( nextinput, "DESC '")) != NULL ) {
pStart += 6;
- sizedbuffer_allocate(psbAttrDesc,strlen(pStart));
+ sizedbuffer_allocate(psbAttrDesc,strlen(pStart)+1);
strcpy ( psbAttrDesc->buffer, pStart);
if ( (pEnd = strchr (psbAttrDesc->buffer, '\'' )) != NULL ){
*pEnd ='\0';
@@ -4069,6 +4069,7 @@ init_schema_dse_ext(char *schemadir, Slapi_Backend *be,
return 0; /* cannot proceed; return failure */
}
+ *local_pschemadse = NULL;
slapi_sdn_init_dn_byref(&schema,"cn=schema");
/* get schemadir if not given */
@@ -4893,8 +4894,9 @@ slapi_validate_schema_files(char *schemadir)
struct dse *my_pschemadse = NULL;
int rc = init_schema_dse_ext(schemadir, NULL, &my_pschemadse,
DSE_SCHEMA_NO_LOAD | DSE_SCHEMA_NO_BACKEND);
+ dse_destroy(my_pschemadse); /* my_pschemadse was created just to
+ validate the schema */
if (rc) {
- dse_destroy(my_pschemadse);
return LDAP_SUCCESS;
} else {
slapi_log_error( SLAPI_LOG_FATAL, "schema_reload",
14 years, 1 month
ldap/servers
by Noriko Hosoi
ldap/servers/slapd/dse.c | 13 ++++++++-----
ldap/servers/slapd/schema.c | 8 +++++---
2 files changed, 13 insertions(+), 8 deletions(-)
New commits:
commit 2c285270cca9cc4b05bb1423da69e559cd7e7fd9
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Thu Feb 25 09:58:35 2010 -0800
548115 - memory leak in schema reload
https://bugzilla.redhat.com/show_bug.cgi?id=548115
Description:
dse.c: 1) dse_add_entry_pb is supposed to free the given
the schema entry e. Although the function never consumes the
entry, it was only freeing it when the entry was added. (If
it was merged or rejected, it was not freed.)
schema.c: 1) when allocating a work buffer with sizedbuffer_allocate,
the space for the NULL termination was not counted.
2) DSE returned from slapi_validate_schema_files must have been
freed regardless of the return value.
diff --git a/ldap/servers/slapd/dse.c b/ldap/servers/slapd/dse.c
index f0d124c..e51ea7d 100644
--- a/ldap/servers/slapd/dse.c
+++ b/ldap/servers/slapd/dse.c
@@ -447,6 +447,10 @@ int
dse_destroy(struct dse *pdse)
{
int nentries = 0;
+
+ if (NULL == pdse) {
+ return 0; /* no one checks this return value */
+ }
if (pdse->dse_rwlock)
PR_RWLock_Wlock(pdse->dse_rwlock);
slapi_ch_free((void **)&(pdse->dse_filename));
@@ -1144,11 +1148,10 @@ dse_add_entry_pb(struct dse* pdse, Slapi_Entry *e, Slapi_PBlock *pb)
slapi_entry_free(schemacheckentry);
}
- /* Callers expect e (SLAPI_ADD_ENTRY) to be freed or otherwise
- * consumed if the add was successful. */
- if (rc == 0) {
- slapi_entry_free(e);
- }
+ /* Callers expect e (SLAPI_ADD_ENTRY) to be freed */
+ /* This function duplicates 'e' for dse_node 'n' and schemacheckentry.
+ * 'e' should not have been consumed */
+ slapi_entry_free(e);
return rc;
}
diff --git a/ldap/servers/slapd/schema.c b/ldap/servers/slapd/schema.c
index dadc307..56c1b54 100644
--- a/ldap/servers/slapd/schema.c
+++ b/ldap/servers/slapd/schema.c
@@ -2824,7 +2824,7 @@ read_oc_ldif ( const char *input, struct objclass **oc, char *errorbuf,
/* look for the NAME */
if ( (pstart = (*keyword_strstr_fn)(nextinput, "NAME '")) != NULL ) {
pstart += 6;
- sizedbuffer_allocate(psbOcName,strlen(pstart));
+ sizedbuffer_allocate(psbOcName,strlen(pstart)+1);
if ( sscanf ( pstart, "%s", psbOcName->buffer ) > 0 ) {
/* strip the trailing single quote */
if ( psbOcName->buffer[strlen(psbOcName->buffer)-1] == '\'' ) {
@@ -3294,7 +3294,7 @@ read_at_ldif(const char *input, struct asyntaxinfo **asipp, char *errorbuf,
/* look for the optional DESCription */
if ( (pStart = (*keyword_strstr_fn) ( nextinput, "DESC '")) != NULL ) {
pStart += 6;
- sizedbuffer_allocate(psbAttrDesc,strlen(pStart));
+ sizedbuffer_allocate(psbAttrDesc,strlen(pStart)+1);
strcpy ( psbAttrDesc->buffer, pStart);
if ( (pEnd = strchr (psbAttrDesc->buffer, '\'' )) != NULL ){
*pEnd ='\0';
@@ -4069,6 +4069,7 @@ init_schema_dse_ext(char *schemadir, Slapi_Backend *be,
return 0; /* cannot proceed; return failure */
}
+ *local_pschemadse = NULL;
slapi_sdn_init_dn_byref(&schema,"cn=schema");
/* get schemadir if not given */
@@ -4893,8 +4894,9 @@ slapi_validate_schema_files(char *schemadir)
struct dse *my_pschemadse = NULL;
int rc = init_schema_dse_ext(schemadir, NULL, &my_pschemadse,
DSE_SCHEMA_NO_LOAD | DSE_SCHEMA_NO_BACKEND);
+ dse_destroy(my_pschemadse); /* my_pschemadse was created just to
+ validate the schema */
if (rc) {
- dse_destroy(my_pschemadse);
return LDAP_SUCCESS;
} else {
slapi_log_error( SLAPI_LOG_FATAL, "schema_reload",
14 years, 1 month
2 commits - configure configure.ac include/i18n.h ldap/servers lib/libsi18n ltmain.sh Makefile.am Makefile.in
by Richard Allen Megginson
Makefile.am | 49 ++-
Makefile.in | 184 ++++++------
configure | 11
configure.ac | 5
include/i18n.h | 115 --------
ldap/servers/slapd/back-ldbm/ldif2ldbm.c | 2
ldap/servers/slapd/bind.c | 76 -----
ldap/servers/slapd/ldaputil.c | 75 +++++
lib/libsi18n/coreres.c | 141 ---------
lib/libsi18n/coreres.h | 52 ---
lib/libsi18n/getlang.c | 330 -----------------------
lib/libsi18n/getstrmem.c | 160 -----------
lib/libsi18n/getstrprop.c | 85 -----
lib/libsi18n/propset.c | 442 -------------------------------
lib/libsi18n/propset.h | 80 -----
15 files changed, 236 insertions(+), 1571 deletions(-)
New commits:
commit 2cc5ac4e6de01c75d3b974146fde7f41a77b0268
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Thu Feb 25 08:46:32 2010 -0700
problems linking with -z defs
https://bugzilla.redhat.com/show_bug.cgi?id=506206
Resolves: bug 506206
Bug Description: problems linking with -z defs
Reviewed by: nhosoi (Thanks!)
Branch: HEAD
Fix Description: Some platforms (debian) and some build checking tools
(rpmlint, others) link with -z defs to look for any undefined references at
link time. We had several of these in various directory server objects.
1) all of the plugins need to link against libslapd.la
2) most of the plugins need to link against ldapcsdk and nspr
3) the pwdstorage plugin needs to link against LIBCRYPT, which is platform
dependent
4) various other link fixes
Platforms tested: RHEL5 x86_64
Flag Day: yes - autotool file changes
Doc impact: no
diff --git a/Makefile.am b/Makefile.am
index aef110f..671bb1c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,6 +35,8 @@ PLUGIN_CPPFLAGS = $(AM_CPPFLAGS) @openldap_inc@ @ldapsdk_inc@ @nss_inc@ @nspr_in
# We need to make sure that libpthread is linked before libc on HP-UX.
if HPUX
AM_LDFLAGS = -lpthread
+#else
+#AM_LDFLAGS = -Wl,-z,defs
endif
#------------------------
@@ -62,6 +64,7 @@ LIBDL=@LIBDL@
LIBCSTD=@LIBCSTD@
LIBCRUN=@LIBCRUN@
THREADLIB=@THREADLIB@
+LIBCRYPT=@LIBCRYPT@
#------------------------
# Generated Sources
@@ -530,16 +533,13 @@ libns_dshttpd_la_SOURCES = lib/libaccess/access_plhash.cpp \
lib/base/system.cpp \
lib/base/systhr.cpp \
lib/base/util.cpp \
- lib/libsi18n/coreres.c \
lib/libsi18n/getstrprop.c \
- lib/libsi18n/getlang.c \
- lib/libsi18n/propset.c \
lib/libsi18n/reshash.c \
lib/libsi18n/txtfile.c \
$(libldaputil_a_SOURCES)
libns_dshttpd_la_CPPFLAGS = -I$(srcdir)/include/base $(AM_CPPFLAGS) -I$(srcdir)/lib/ldaputil @openldap_inc@ @ldapsdk_inc@ @nss_inc@ @nspr_inc@
-libns_dshttpd_la_LIBADD = $(LDAPSDK_LINK) $(SASL_LINK) $(NSS_LINK) $(NSPR_LINK)
+libns_dshttpd_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(SASL_LINK) $(NSS_LINK) $(NSPR_LINK)
#------------------------
# libslapd
@@ -643,7 +643,7 @@ if SOLARIS
libslapd_la_SOURCES += ldap/servers/slapd/slapi_counter_sunos_sparcv9.S
endif
-libslapd_la_LIBADD = $(LDAPSDK_LINK) $(SASL_LINK) $(SVRCORE_LINK) $(NSS_LINK) $(NSPR_LINK) $(KERBEROS_LINK) $(PCRE_LINK)
+libslapd_la_LIBADD = $(LDAPSDK_LINK) $(SASL_LINK) $(SVRCORE_LINK) $(NSS_LINK) $(NSPR_LINK) $(KERBEROS_LINK) $(PCRE_LINK) $(THREADLIB)
#////////////////////////////////////////////////////////////////
@@ -717,7 +717,7 @@ libback_ldbm_la_SOURCES = ldap/servers/slapd/back-ldbm/ancestorid.c \
ldap/servers/slapd/back-ldbm/vlv_srch.c
libback_ldbm_la_CPPFLAGS = $(PLUGIN_CPPFLAGS) @db_inc@
-libback_ldbm_la_LIBADD = libslapd.la $(DB_LINK)
+libback_ldbm_la_LIBADD = libslapd.la $(DB_LINK) $(LDAPSDK_LINK) $(NSPR_LINK)
libback_ldbm_la_LDFLAGS = -avoid-version
#------------------------
@@ -737,7 +737,7 @@ libacl_plugin_la_SOURCES = ldap/servers/plugins/acl/acl.c \
ldap/servers/plugins/acl/aclutil.c
libacl_plugin_la_CPPFLAGS = -I$(srcdir)/include/libaccess $(PLUGIN_CPPFLAGS)
-libacl_plugin_la_LIBADD = libns-dshttpd.la $(LIBCSTD) $(LIBCRUN)
+libacl_plugin_la_LIBADD = libslapd.la libns-dshttpd.la $(LDAPSDK_LINK) $(NSPR_LINK) $(LIBCSTD) $(LIBCRUN)
libacl_plugin_la_LDFLAGS = -avoid-version
libacl_plugin_la_LINK = $(CXXLINK) -avoid-version
@@ -749,6 +749,7 @@ libattr_unique_plugin_la_SOURCES = ldap/servers/plugins/uiduniq/7bit.c \
ldap/servers/plugins/shared/utils.c
libattr_unique_plugin_la_CPPFLAGS = -I$(srcdir)/ldap/servers/plugins/shared $(PLUGIN_CPPFLAGS)
+libattr_unique_plugin_la_LIBADD = libslapd.la $(NSPR_LINK)
libattr_unique_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -757,6 +758,7 @@ libattr_unique_plugin_la_LDFLAGS = -avoid-version
libbitwise_plugin_la_SOURCES = ldap/servers/plugins/bitwise/bitwise.c
libbitwise_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libbitwise_plugin_la_LIBADD = libslapd.la
libbitwise_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -789,6 +791,7 @@ libchainingdb_plugin_la_SOURCES = ldap/servers/plugins/chainingdb/cb_abandon.c \
ldap/servers/plugins/chainingdb/cb_utils.c
libchainingdb_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libchainingdb_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libchainingdb_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -799,7 +802,7 @@ libcollation_plugin_la_SOURCES = ldap/servers/plugins/collation/collate.c \
ldap/servers/plugins/collation/orfilter.c
libcollation_plugin_la_CPPFLAGS = @icu_inc@ $(PLUGIN_CPPFLAGS)
-libcollation_plugin_la_LIBADD = $(ICU_LINK) $(LIBCSTD) $(LIBCRUN)
+libcollation_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK) $(ICU_LINK) $(LIBCSTD) $(LIBCRUN)
libcollation_plugin_la_LDFLAGS = -avoid-version
libcollation_plugin_la_LINK = $(CXXLINK) -avoid-version
@@ -810,6 +813,7 @@ libcos_plugin_la_SOURCES = ldap/servers/plugins/cos/cos.c \
ldap/servers/plugins/cos/cos_cache.c
libcos_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libcos_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libcos_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -818,6 +822,7 @@ libcos_plugin_la_LDFLAGS = -avoid-version
libderef_plugin_la_SOURCES = ldap/servers/plugins/deref/deref.c
libderef_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libderef_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libderef_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -827,6 +832,7 @@ libdes_plugin_la_SOURCES = ldap/servers/plugins/rever/des.c \
ldap/servers/plugins/rever/rever.c
libdes_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS) @svrcore_inc@
+libdes_plugin_la_LIBADD = libslapd.la $(NSS_LINK)
libdes_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -835,6 +841,7 @@ libdes_plugin_la_LDFLAGS = -avoid-version
libdistrib_plugin_la_SOURCES = ldap/servers/plugins/distrib/distrib.c
libdistrib_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libdistrib_plugin_la_LIBADD = libslapd.la
libdistrib_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -843,6 +850,7 @@ libdistrib_plugin_la_LDFLAGS = -avoid-version
libdna_plugin_la_SOURCES = ldap/servers/plugins/dna/dna.c
libdna_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libdna_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libdna_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -852,6 +860,7 @@ libhttp_client_plugin_la_SOURCES = ldap/servers/plugins/http/http_client.c \
ldap/servers/plugins/http/http_impl.c
libhttp_client_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libhttp_client_plugin_la_LIBADD = libslapd.la $(NSS_LINK) $(NSPR_LINK)
libhttp_client_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -861,6 +870,7 @@ liblinkedattrs_plugin_la_SOURCES = ldap/servers/plugins/linkedattrs/fixup_task.c
ldap/servers/plugins/linkedattrs/linked_attrs.c
liblinkedattrs_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+liblinkedattrs_plugin_la_LIBADD = libslapd.la $(NSPR_LINK)
liblinkedattrs_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -870,6 +880,7 @@ libmemberof_plugin_la_SOURCES= ldap/servers/plugins/memberof/memberof.c \
ldap/servers/plugins/memberof/memberof_config.c
libmemberof_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libmemberof_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libmemberof_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -881,7 +892,7 @@ libpam_passthru_plugin_la_SOURCES = ldap/servers/plugins/pam_passthru/pam_ptconf
ldap/servers/plugins/pam_passthru/pam_ptpreop.c
libpam_passthru_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
-libpam_passthru_plugin_la_LIBADD = $(PAM_LINK)
+libpam_passthru_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK) $(PAM_LINK)
libpam_passthru_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -895,6 +906,7 @@ libpassthru_plugin_la_SOURCES = ldap/servers/plugins/passthru/ptbind.c \
ldap/servers/plugins/passthru/ptutil.c
libpassthru_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libpassthru_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libpassthru_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -903,6 +915,7 @@ libpassthru_plugin_la_LDFLAGS = -avoid-version
libpresence_plugin_la_SOURCES = ldap/servers/plugins/presence/presence.c
libpresence_plugin_la_CPPFLAGS = -I$(srcdir)/ldap/servers/plugins/http $(PLUGIN_CPPFLAGS)
+libpresence_plugin_la_LIBADD = libslapd.la
libpresence_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -920,6 +933,7 @@ libpwdstorage_plugin_la_SOURCES = ldap/servers/plugins/pwdstorage/clear_pwd.c \
ldap/servers/plugins/pwdstorage/ssha_pwd.c
libpwdstorage_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libpwdstorage_plugin_la_LIBADD = libslapd.la $(NSS_LINK) $(NSPR_LINK) $(LIBCRYPT)
libpwdstorage_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -928,6 +942,7 @@ libpwdstorage_plugin_la_LDFLAGS = -avoid-version
libreferint_plugin_la_SOURCES = ldap/servers/plugins/referint/referint.c
libreferint_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libreferint_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libreferint_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -989,7 +1004,7 @@ libreplication_plugin_la_SOURCES = ldap/servers/plugins/replication/cl5_api.c \
ldap/servers/plugins/replication/windows_tot_protocol.c
libreplication_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS) @icu_inc@ @db_inc@
-libreplication_plugin_la_LIBADD = $(ICU_LINK) $(DB_LINK)
+libreplication_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSS_LINK) $(NSPR_LINK) $(ICU_LINK) $(DB_LINK)
libreplication_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1003,6 +1018,7 @@ libretrocl_plugin_la_SOURCES = ldap/servers/plugins/retrocl/retrocl.c \
ldap/servers/plugins/retrocl/retrocl_trim.c
libretrocl_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libretrocl_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libretrocl_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1012,6 +1028,7 @@ libroles_plugin_la_SOURCES = ldap/servers/plugins/roles/roles_cache.c \
ldap/servers/plugins/roles/roles_plugin.c
libroles_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libroles_plugin_la_LIBADD = libslapd.la $(NSPR_LINK)
libroles_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1020,6 +1037,7 @@ libroles_plugin_la_LDFLAGS = -avoid-version
libschemareload_plugin_la_SOURCES = ldap/servers/plugins/schema_reload/schema_reload.c
libschemareload_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libschemareload_plugin_la_LIBADD = libslapd.la $(NSPR_LINK)
libschemareload_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1028,6 +1046,7 @@ libschemareload_plugin_la_LDFLAGS = -avoid-version
libstatechange_plugin_la_SOURCES = ldap/servers/plugins/statechange/statechange.c
libstatechange_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libstatechange_plugin_la_LIBADD = libslapd.la
libstatechange_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1057,6 +1076,7 @@ libsyntax_plugin_la_SOURCES = ldap/servers/plugins/syntaxes/bin.c \
ldap/servers/plugins/syntaxes/value.c
libsyntax_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libsyntax_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libsyntax_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1066,6 +1086,7 @@ libusn_plugin_la_SOURCES = ldap/servers/plugins/usn/usn.c \
ldap/servers/plugins/usn/usn_cleanup.c
libusn_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libusn_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libusn_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1074,6 +1095,7 @@ libusn_plugin_la_LDFLAGS = -avoid-version
libviews_plugin_la_SOURCES = ldap/servers/plugins/views/views.c
libviews_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libviews_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libviews_plugin_la_LDFLAGS = -avoid-version
diff --git a/Makefile.in b/Makefile.in
index 8f6a585..e8523d2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -108,8 +108,9 @@ serverLTLIBRARIES_INSTALL = $(INSTALL)
serverpluginLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(server_LTLIBRARIES) $(serverplugin_LTLIBRARIES)
am__DEPENDENCIES_1 =
-libacl_plugin_la_DEPENDENCIES = libns-dshttpd.la $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
+libacl_plugin_la_DEPENDENCIES = libslapd.la libns-dshttpd.la \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
am_libacl_plugin_la_OBJECTS = \
ldap/servers/plugins/acl/libacl_plugin_la-acl.lo \
ldap/servers/plugins/acl/libacl_plugin_la-acl_ext.lo \
@@ -124,14 +125,16 @@ am_libacl_plugin_la_OBJECTS = \
ldap/servers/plugins/acl/libacl_plugin_la-aclproxy.lo \
ldap/servers/plugins/acl/libacl_plugin_la-aclutil.lo
libacl_plugin_la_OBJECTS = $(am_libacl_plugin_la_OBJECTS)
-libattr_unique_plugin_la_LIBADD =
+libattr_unique_plugin_la_DEPENDENCIES = libslapd.la \
+ $(am__DEPENDENCIES_1)
am_libattr_unique_plugin_la_OBJECTS = \
ldap/servers/plugins/uiduniq/libattr_unique_plugin_la-7bit.lo \
ldap/servers/plugins/uiduniq/libattr_unique_plugin_la-uid.lo \
ldap/servers/plugins/shared/libattr_unique_plugin_la-utils.lo
libattr_unique_plugin_la_OBJECTS = \
$(am_libattr_unique_plugin_la_OBJECTS)
-libback_ldbm_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1)
+libback_ldbm_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
am_libback_ldbm_la_OBJECTS = \
ldap/servers/slapd/back-ldbm/libback_ldbm_la-ancestorid.lo \
ldap/servers/slapd/back-ldbm/libback_ldbm_la-archive.lo \
@@ -195,13 +198,14 @@ am_libback_ldbm_la_OBJECTS = \
ldap/servers/slapd/back-ldbm/libback_ldbm_la-vlv_key.lo \
ldap/servers/slapd/back-ldbm/libback_ldbm_la-vlv_srch.lo
libback_ldbm_la_OBJECTS = $(am_libback_ldbm_la_OBJECTS)
-libbitwise_plugin_la_LIBADD =
+libbitwise_plugin_la_DEPENDENCIES = libslapd.la
am_libbitwise_plugin_la_OBJECTS = \
ldap/servers/plugins/bitwise/libbitwise_plugin_la-bitwise.lo
libbitwise_plugin_la_OBJECTS = $(am_libbitwise_plugin_la_OBJECTS)
@enable_bitwise_TRUE@am_libbitwise_plugin_la_rpath = -rpath \
@enable_bitwise_TRUE@ $(serverplugindir)
-libchainingdb_plugin_la_LIBADD =
+libchainingdb_plugin_la_DEPENDENCIES = libslapd.la \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
am_libchainingdb_plugin_la_OBJECTS = ldap/servers/plugins/chainingdb/libchainingdb_plugin_la-cb_abandon.lo \
ldap/servers/plugins/chainingdb/libchainingdb_plugin_la-cb_acl.lo \
ldap/servers/plugins/chainingdb/libchainingdb_plugin_la-cb_add.lo \
@@ -229,50 +233,58 @@ am_libchainingdb_plugin_la_OBJECTS = ldap/servers/plugins/chainingdb/libchaining
ldap/servers/plugins/chainingdb/libchainingdb_plugin_la-cb_utils.lo
libchainingdb_plugin_la_OBJECTS = \
$(am_libchainingdb_plugin_la_OBJECTS)
-libcollation_plugin_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
+libcollation_plugin_la_DEPENDENCIES = libslapd.la \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libcollation_plugin_la_OBJECTS = ldap/servers/plugins/collation/libcollation_plugin_la-collate.lo \
ldap/servers/plugins/collation/libcollation_plugin_la-config.lo \
ldap/servers/plugins/collation/libcollation_plugin_la-orfilter.lo
libcollation_plugin_la_OBJECTS = $(am_libcollation_plugin_la_OBJECTS)
-libcos_plugin_la_LIBADD =
+libcos_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libcos_plugin_la_OBJECTS = \
ldap/servers/plugins/cos/libcos_plugin_la-cos.lo \
ldap/servers/plugins/cos/libcos_plugin_la-cos_cache.lo
libcos_plugin_la_OBJECTS = $(am_libcos_plugin_la_OBJECTS)
-libderef_plugin_la_LIBADD =
+libderef_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libderef_plugin_la_OBJECTS = \
ldap/servers/plugins/deref/libderef_plugin_la-deref.lo
libderef_plugin_la_OBJECTS = $(am_libderef_plugin_la_OBJECTS)
-libdes_plugin_la_LIBADD =
+libdes_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1)
am_libdes_plugin_la_OBJECTS = \
ldap/servers/plugins/rever/libdes_plugin_la-des.lo \
ldap/servers/plugins/rever/libdes_plugin_la-rever.lo
libdes_plugin_la_OBJECTS = $(am_libdes_plugin_la_OBJECTS)
-libdistrib_plugin_la_LIBADD =
+libdistrib_plugin_la_DEPENDENCIES = libslapd.la
am_libdistrib_plugin_la_OBJECTS = \
ldap/servers/plugins/distrib/libdistrib_plugin_la-distrib.lo
libdistrib_plugin_la_OBJECTS = $(am_libdistrib_plugin_la_OBJECTS)
-libdna_plugin_la_LIBADD =
+libdna_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libdna_plugin_la_OBJECTS = \
ldap/servers/plugins/dna/libdna_plugin_la-dna.lo
libdna_plugin_la_OBJECTS = $(am_libdna_plugin_la_OBJECTS)
@enable_dna_TRUE@am_libdna_plugin_la_rpath = -rpath $(serverplugindir)
-libhttp_client_plugin_la_LIBADD =
+libhttp_client_plugin_la_DEPENDENCIES = libslapd.la \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
am_libhttp_client_plugin_la_OBJECTS = ldap/servers/plugins/http/libhttp_client_plugin_la-http_client.lo \
ldap/servers/plugins/http/libhttp_client_plugin_la-http_impl.lo
libhttp_client_plugin_la_OBJECTS = \
$(am_libhttp_client_plugin_la_OBJECTS)
-liblinkedattrs_plugin_la_LIBADD =
+liblinkedattrs_plugin_la_DEPENDENCIES = libslapd.la \
+ $(am__DEPENDENCIES_1)
am_liblinkedattrs_plugin_la_OBJECTS = ldap/servers/plugins/linkedattrs/liblinkedattrs_plugin_la-fixup_task.lo \
ldap/servers/plugins/linkedattrs/liblinkedattrs_plugin_la-linked_attrs.lo
liblinkedattrs_plugin_la_OBJECTS = \
$(am_liblinkedattrs_plugin_la_OBJECTS)
-libmemberof_plugin_la_LIBADD =
+libmemberof_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libmemberof_plugin_la_OBJECTS = ldap/servers/plugins/memberof/libmemberof_plugin_la-memberof.lo \
ldap/servers/plugins/memberof/libmemberof_plugin_la-memberof_config.lo
libmemberof_plugin_la_OBJECTS = $(am_libmemberof_plugin_la_OBJECTS)
-libns_dshttpd_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
+libns_dshttpd_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
am__objects_1 = lib/ldaputil/libns_dshttpd_la-cert.lo \
@@ -327,14 +339,13 @@ am_libns_dshttpd_la_OBJECTS = \
lib/base/libns_dshttpd_la-system.lo \
lib/base/libns_dshttpd_la-systhr.lo \
lib/base/libns_dshttpd_la-util.lo \
- lib/libsi18n/libns_dshttpd_la-coreres.lo \
lib/libsi18n/libns_dshttpd_la-getstrprop.lo \
- lib/libsi18n/libns_dshttpd_la-getlang.lo \
- lib/libsi18n/libns_dshttpd_la-propset.lo \
lib/libsi18n/libns_dshttpd_la-reshash.lo \
lib/libsi18n/libns_dshttpd_la-txtfile.lo $(am__objects_1)
libns_dshttpd_la_OBJECTS = $(am_libns_dshttpd_la_OBJECTS)
-libpam_passthru_plugin_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
+libpam_passthru_plugin_la_DEPENDENCIES = libslapd.la \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libpam_passthru_plugin_la_OBJECTS = ldap/servers/plugins/pam_passthru/libpam_passthru_plugin_la-pam_ptconfig.lo \
ldap/servers/plugins/pam_passthru/libpam_passthru_plugin_la-pam_ptdebug.lo \
ldap/servers/plugins/pam_passthru/libpam_passthru_plugin_la-pam_ptimpl.lo \
@@ -343,7 +354,8 @@ libpam_passthru_plugin_la_OBJECTS = \
$(am_libpam_passthru_plugin_la_OBJECTS)
@enable_pam_passthru_TRUE@am_libpam_passthru_plugin_la_rpath = -rpath \
@enable_pam_passthru_TRUE@ $(serverplugindir)
-libpassthru_plugin_la_LIBADD =
+libpassthru_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libpassthru_plugin_la_OBJECTS = \
ldap/servers/plugins/passthru/libpassthru_plugin_la-ptbind.lo \
ldap/servers/plugins/passthru/libpassthru_plugin_la-ptconfig.lo \
@@ -352,12 +364,14 @@ am_libpassthru_plugin_la_OBJECTS = \
ldap/servers/plugins/passthru/libpassthru_plugin_la-ptpreop.lo \
ldap/servers/plugins/passthru/libpassthru_plugin_la-ptutil.lo
libpassthru_plugin_la_OBJECTS = $(am_libpassthru_plugin_la_OBJECTS)
-libpresence_plugin_la_LIBADD =
+libpresence_plugin_la_DEPENDENCIES = libslapd.la
am_libpresence_plugin_la_OBJECTS = ldap/servers/plugins/presence/libpresence_plugin_la-presence.lo
libpresence_plugin_la_OBJECTS = $(am_libpresence_plugin_la_OBJECTS)
@enable_presence_TRUE@am_libpresence_plugin_la_rpath = -rpath \
@enable_presence_TRUE@ $(serverplugindir)
-libpwdstorage_plugin_la_LIBADD =
+libpwdstorage_plugin_la_DEPENDENCIES = libslapd.la \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libpwdstorage_plugin_la_OBJECTS = ldap/servers/plugins/pwdstorage/libpwdstorage_plugin_la-clear_pwd.lo \
ldap/servers/plugins/pwdstorage/libpwdstorage_plugin_la-crypt_pwd.lo \
ldap/servers/plugins/pwdstorage/libpwdstorage_plugin_la-md5_pwd.lo \
@@ -370,10 +384,13 @@ am_libpwdstorage_plugin_la_OBJECTS = ldap/servers/plugins/pwdstorage/libpwdstora
ldap/servers/plugins/pwdstorage/libpwdstorage_plugin_la-ssha_pwd.lo
libpwdstorage_plugin_la_OBJECTS = \
$(am_libpwdstorage_plugin_la_OBJECTS)
-libreferint_plugin_la_LIBADD =
+libreferint_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libreferint_plugin_la_OBJECTS = ldap/servers/plugins/referint/libreferint_plugin_la-referint.lo
libreferint_plugin_la_OBJECTS = $(am_libreferint_plugin_la_OBJECTS)
-libreplication_plugin_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
+libreplication_plugin_la_DEPENDENCIES = libslapd.la \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
am_libreplication_plugin_la_OBJECTS = ldap/servers/plugins/replication/libreplication_plugin_la-cl5_api.lo \
ldap/servers/plugins/replication/libreplication_plugin_la-cl5_clcache.lo \
@@ -431,7 +448,8 @@ am_libreplication_plugin_la_OBJECTS = ldap/servers/plugins/replication/libreplic
ldap/servers/plugins/replication/libreplication_plugin_la-windows_tot_protocol.lo
libreplication_plugin_la_OBJECTS = \
$(am_libreplication_plugin_la_OBJECTS)
-libretrocl_plugin_la_LIBADD =
+libretrocl_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libretrocl_plugin_la_OBJECTS = \
ldap/servers/plugins/retrocl/libretrocl_plugin_la-retrocl.lo \
ldap/servers/plugins/retrocl/libretrocl_plugin_la-retrocl_cn.lo \
@@ -440,12 +458,13 @@ am_libretrocl_plugin_la_OBJECTS = \
ldap/servers/plugins/retrocl/libretrocl_plugin_la-retrocl_rootdse.lo \
ldap/servers/plugins/retrocl/libretrocl_plugin_la-retrocl_trim.lo
libretrocl_plugin_la_OBJECTS = $(am_libretrocl_plugin_la_OBJECTS)
-libroles_plugin_la_LIBADD =
+libroles_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1)
am_libroles_plugin_la_OBJECTS = \
ldap/servers/plugins/roles/libroles_plugin_la-roles_cache.lo \
ldap/servers/plugins/roles/libroles_plugin_la-roles_plugin.lo
libroles_plugin_la_OBJECTS = $(am_libroles_plugin_la_OBJECTS)
-libschemareload_plugin_la_LIBADD =
+libschemareload_plugin_la_DEPENDENCIES = libslapd.la \
+ $(am__DEPENDENCIES_1)
am_libschemareload_plugin_la_OBJECTS = ldap/servers/plugins/schema_reload/libschemareload_plugin_la-schema_reload.lo
libschemareload_plugin_la_OBJECTS = \
$(am_libschemareload_plugin_la_OBJECTS)
@@ -453,7 +472,7 @@ am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
libslapd_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \
- $(am__DEPENDENCIES_1)
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
am__libslapd_la_SOURCES_DIST = ldap/servers/slapd/add.c \
ldap/servers/slapd/agtmmap.c ldap/servers/slapd/apibroker.c \
ldap/servers/slapd/attr.c ldap/servers/slapd/attrlist.c \
@@ -605,11 +624,12 @@ am_libslapd_la_OBJECTS = ldap/servers/slapd/libslapd_la-add.lo \
ldap/servers/slapd/libslapd_la-vattr.lo $(am__objects_2) \
$(am__objects_3)
libslapd_la_OBJECTS = $(am_libslapd_la_OBJECTS)
-libstatechange_plugin_la_LIBADD =
+libstatechange_plugin_la_DEPENDENCIES = libslapd.la
am_libstatechange_plugin_la_OBJECTS = ldap/servers/plugins/statechange/libstatechange_plugin_la-statechange.lo
libstatechange_plugin_la_OBJECTS = \
$(am_libstatechange_plugin_la_OBJECTS)
-libsyntax_plugin_la_LIBADD =
+libsyntax_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libsyntax_plugin_la_OBJECTS = \
ldap/servers/plugins/syntaxes/libsyntax_plugin_la-bin.lo \
ldap/servers/plugins/syntaxes/libsyntax_plugin_la-bitstring.lo \
@@ -634,12 +654,14 @@ am_libsyntax_plugin_la_OBJECTS = \
ldap/servers/plugins/syntaxes/libsyntax_plugin_la-validate_task.lo \
ldap/servers/plugins/syntaxes/libsyntax_plugin_la-value.lo
libsyntax_plugin_la_OBJECTS = $(am_libsyntax_plugin_la_OBJECTS)
-libusn_plugin_la_LIBADD =
+libusn_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libusn_plugin_la_OBJECTS = \
ldap/servers/plugins/usn/libusn_plugin_la-usn.lo \
ldap/servers/plugins/usn/libusn_plugin_la-usn_cleanup.lo
libusn_plugin_la_OBJECTS = $(am_libusn_plugin_la_OBJECTS)
-libviews_plugin_la_LIBADD =
+libviews_plugin_la_DEPENDENCIES = libslapd.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
am_libviews_plugin_la_OBJECTS = \
ldap/servers/plugins/views/libviews_plugin_la-views.lo
libviews_plugin_la_OBJECTS = $(am_libviews_plugin_la_OBJECTS)
@@ -953,6 +975,7 @@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
KRB5_CONFIG_BIN = @KRB5_CONFIG_BIN@
LDFLAGS = @LDFLAGS@
LIBCRUN = @LIBCRUN@
+LIBCRYPT = @LIBCRYPT@
LIBCSTD = @LIBCSTD@
LIBDL = @LIBDL@
LIBNSL = @LIBNSL@
@@ -1154,6 +1177,8 @@ AM_CPPFLAGS = $(DEBUG_DEFINES) $(DS_DEFINES) $(DS_INCLUDES) $(PATH_DEFINES)
PLUGIN_CPPFLAGS = $(AM_CPPFLAGS) @openldap_inc@ @ldapsdk_inc@ @nss_inc@ @nspr_inc@
# We need to make sure that libpthread is linked before libc on HP-UX.
@HPUX_TRUE@AM_LDFLAGS = -lpthread
+#else
+#AM_LDFLAGS = -Wl,-z,defs
#------------------------
# Linker Flags
@@ -1573,16 +1598,13 @@ libns_dshttpd_la_SOURCES = lib/libaccess/access_plhash.cpp \
lib/base/system.cpp \
lib/base/systhr.cpp \
lib/base/util.cpp \
- lib/libsi18n/coreres.c \
lib/libsi18n/getstrprop.c \
- lib/libsi18n/getlang.c \
- lib/libsi18n/propset.c \
lib/libsi18n/reshash.c \
lib/libsi18n/txtfile.c \
$(libldaputil_a_SOURCES)
libns_dshttpd_la_CPPFLAGS = -I$(srcdir)/include/base $(AM_CPPFLAGS) -I$(srcdir)/lib/ldaputil @openldap_inc@ @ldapsdk_inc@ @nss_inc@ @nspr_inc@
-libns_dshttpd_la_LIBADD = $(LDAPSDK_LINK) $(SASL_LINK) $(NSS_LINK) $(NSPR_LINK)
+libns_dshttpd_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(SASL_LINK) $(NSS_LINK) $(NSPR_LINK)
#------------------------
# libslapd
@@ -1642,7 +1664,7 @@ libslapd_la_SOURCES = ldap/servers/slapd/add.c \
ldap/servers/slapd/valueset.c ldap/servers/slapd/vattr.c \
$(libavl_a_SOURCES) $(am__append_1)
libslapd_la_CPPFLAGS = $(PLUGIN_CPPFLAGS) @sasl_inc@ @db_inc@ @svrcore_inc@ @kerberos_inc@ @pcre_inc@
-libslapd_la_LIBADD = $(LDAPSDK_LINK) $(SASL_LINK) $(SVRCORE_LINK) $(NSS_LINK) $(NSPR_LINK) $(KERBEROS_LINK) $(PCRE_LINK)
+libslapd_la_LIBADD = $(LDAPSDK_LINK) $(SASL_LINK) $(SVRCORE_LINK) $(NSS_LINK) $(NSPR_LINK) $(KERBEROS_LINK) $(PCRE_LINK) $(THREADLIB)
#////////////////////////////////////////////////////////////////
#
@@ -1715,7 +1737,7 @@ libback_ldbm_la_SOURCES = ldap/servers/slapd/back-ldbm/ancestorid.c \
ldap/servers/slapd/back-ldbm/vlv_srch.c
libback_ldbm_la_CPPFLAGS = $(PLUGIN_CPPFLAGS) @db_inc@
-libback_ldbm_la_LIBADD = libslapd.la $(DB_LINK)
+libback_ldbm_la_LIBADD = libslapd.la $(DB_LINK) $(LDAPSDK_LINK) $(NSPR_LINK)
libback_ldbm_la_LDFLAGS = -avoid-version
#------------------------
@@ -1735,7 +1757,7 @@ libacl_plugin_la_SOURCES = ldap/servers/plugins/acl/acl.c \
ldap/servers/plugins/acl/aclutil.c
libacl_plugin_la_CPPFLAGS = -I$(srcdir)/include/libaccess $(PLUGIN_CPPFLAGS)
-libacl_plugin_la_LIBADD = libns-dshttpd.la $(LIBCSTD) $(LIBCRUN)
+libacl_plugin_la_LIBADD = libslapd.la libns-dshttpd.la $(LDAPSDK_LINK) $(NSPR_LINK) $(LIBCSTD) $(LIBCRUN)
libacl_plugin_la_LDFLAGS = -avoid-version
libacl_plugin_la_LINK = $(CXXLINK) -avoid-version
@@ -1747,6 +1769,7 @@ libattr_unique_plugin_la_SOURCES = ldap/servers/plugins/uiduniq/7bit.c \
ldap/servers/plugins/shared/utils.c
libattr_unique_plugin_la_CPPFLAGS = -I$(srcdir)/ldap/servers/plugins/shared $(PLUGIN_CPPFLAGS)
+libattr_unique_plugin_la_LIBADD = libslapd.la $(NSPR_LINK)
libattr_unique_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1754,6 +1777,7 @@ libattr_unique_plugin_la_LDFLAGS = -avoid-version
#------------------------
libbitwise_plugin_la_SOURCES = ldap/servers/plugins/bitwise/bitwise.c
libbitwise_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libbitwise_plugin_la_LIBADD = libslapd.la
libbitwise_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1786,6 +1810,7 @@ libchainingdb_plugin_la_SOURCES = ldap/servers/plugins/chainingdb/cb_abandon.c \
ldap/servers/plugins/chainingdb/cb_utils.c
libchainingdb_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libchainingdb_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libchainingdb_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1796,7 +1821,7 @@ libcollation_plugin_la_SOURCES = ldap/servers/plugins/collation/collate.c \
ldap/servers/plugins/collation/orfilter.c
libcollation_plugin_la_CPPFLAGS = @icu_inc@ $(PLUGIN_CPPFLAGS)
-libcollation_plugin_la_LIBADD = $(ICU_LINK) $(LIBCSTD) $(LIBCRUN)
+libcollation_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK) $(ICU_LINK) $(LIBCSTD) $(LIBCRUN)
libcollation_plugin_la_LDFLAGS = -avoid-version
libcollation_plugin_la_LINK = $(CXXLINK) -avoid-version
@@ -1807,6 +1832,7 @@ libcos_plugin_la_SOURCES = ldap/servers/plugins/cos/cos.c \
ldap/servers/plugins/cos/cos_cache.c
libcos_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libcos_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libcos_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1814,6 +1840,7 @@ libcos_plugin_la_LDFLAGS = -avoid-version
#-----------------------
libderef_plugin_la_SOURCES = ldap/servers/plugins/deref/deref.c
libderef_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libderef_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libderef_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1823,6 +1850,7 @@ libdes_plugin_la_SOURCES = ldap/servers/plugins/rever/des.c \
ldap/servers/plugins/rever/rever.c
libdes_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS) @svrcore_inc@
+libdes_plugin_la_LIBADD = libslapd.la $(NSS_LINK)
libdes_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1830,6 +1858,7 @@ libdes_plugin_la_LDFLAGS = -avoid-version
#------------------------
libdistrib_plugin_la_SOURCES = ldap/servers/plugins/distrib/distrib.c
libdistrib_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libdistrib_plugin_la_LIBADD = libslapd.la
libdistrib_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1837,6 +1866,7 @@ libdistrib_plugin_la_LDFLAGS = -avoid-version
#------------------------
libdna_plugin_la_SOURCES = ldap/servers/plugins/dna/dna.c
libdna_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libdna_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libdna_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1846,6 +1876,7 @@ libhttp_client_plugin_la_SOURCES = ldap/servers/plugins/http/http_client.c \
ldap/servers/plugins/http/http_impl.c
libhttp_client_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libhttp_client_plugin_la_LIBADD = libslapd.la $(NSS_LINK) $(NSPR_LINK)
libhttp_client_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1855,6 +1886,7 @@ liblinkedattrs_plugin_la_SOURCES = ldap/servers/plugins/linkedattrs/fixup_task.c
ldap/servers/plugins/linkedattrs/linked_attrs.c
liblinkedattrs_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+liblinkedattrs_plugin_la_LIBADD = libslapd.la $(NSPR_LINK)
liblinkedattrs_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1864,6 +1896,7 @@ libmemberof_plugin_la_SOURCES = ldap/servers/plugins/memberof/memberof.c \
ldap/servers/plugins/memberof/memberof_config.c
libmemberof_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libmemberof_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libmemberof_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1875,7 +1908,7 @@ libpam_passthru_plugin_la_SOURCES = ldap/servers/plugins/pam_passthru/pam_ptconf
ldap/servers/plugins/pam_passthru/pam_ptpreop.c
libpam_passthru_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
-libpam_passthru_plugin_la_LIBADD = $(PAM_LINK)
+libpam_passthru_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK) $(PAM_LINK)
libpam_passthru_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1889,6 +1922,7 @@ libpassthru_plugin_la_SOURCES = ldap/servers/plugins/passthru/ptbind.c \
ldap/servers/plugins/passthru/ptutil.c
libpassthru_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libpassthru_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libpassthru_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1896,6 +1930,7 @@ libpassthru_plugin_la_LDFLAGS = -avoid-version
#------------------------
libpresence_plugin_la_SOURCES = ldap/servers/plugins/presence/presence.c
libpresence_plugin_la_CPPFLAGS = -I$(srcdir)/ldap/servers/plugins/http $(PLUGIN_CPPFLAGS)
+libpresence_plugin_la_LIBADD = libslapd.la
libpresence_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1913,6 +1948,7 @@ libpwdstorage_plugin_la_SOURCES = ldap/servers/plugins/pwdstorage/clear_pwd.c \
ldap/servers/plugins/pwdstorage/ssha_pwd.c
libpwdstorage_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libpwdstorage_plugin_la_LIBADD = libslapd.la $(NSS_LINK) $(NSPR_LINK) $(LIBCRYPT)
libpwdstorage_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1920,6 +1956,7 @@ libpwdstorage_plugin_la_LDFLAGS = -avoid-version
#------------------------
libreferint_plugin_la_SOURCES = ldap/servers/plugins/referint/referint.c
libreferint_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libreferint_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libreferint_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1981,7 +2018,7 @@ libreplication_plugin_la_SOURCES = ldap/servers/plugins/replication/cl5_api.c \
ldap/servers/plugins/replication/windows_tot_protocol.c
libreplication_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS) @icu_inc@ @db_inc@
-libreplication_plugin_la_LIBADD = $(ICU_LINK) $(DB_LINK)
+libreplication_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSS_LINK) $(NSPR_LINK) $(ICU_LINK) $(DB_LINK)
libreplication_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -1995,6 +2032,7 @@ libretrocl_plugin_la_SOURCES = ldap/servers/plugins/retrocl/retrocl.c \
ldap/servers/plugins/retrocl/retrocl_trim.c
libretrocl_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libretrocl_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libretrocl_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -2004,6 +2042,7 @@ libroles_plugin_la_SOURCES = ldap/servers/plugins/roles/roles_cache.c \
ldap/servers/plugins/roles/roles_plugin.c
libroles_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libroles_plugin_la_LIBADD = libslapd.la $(NSPR_LINK)
libroles_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -2011,6 +2050,7 @@ libroles_plugin_la_LDFLAGS = -avoid-version
#------------------------
libschemareload_plugin_la_SOURCES = ldap/servers/plugins/schema_reload/schema_reload.c
libschemareload_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libschemareload_plugin_la_LIBADD = libslapd.la $(NSPR_LINK)
libschemareload_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -2018,6 +2058,7 @@ libschemareload_plugin_la_LDFLAGS = -avoid-version
#------------------------
libstatechange_plugin_la_SOURCES = ldap/servers/plugins/statechange/statechange.c
libstatechange_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libstatechange_plugin_la_LIBADD = libslapd.la
libstatechange_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -2047,6 +2088,7 @@ libsyntax_plugin_la_SOURCES = ldap/servers/plugins/syntaxes/bin.c \
ldap/servers/plugins/syntaxes/value.c
libsyntax_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libsyntax_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libsyntax_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -2056,6 +2098,7 @@ libusn_plugin_la_SOURCES = ldap/servers/plugins/usn/usn.c \
ldap/servers/plugins/usn/usn_cleanup.c
libusn_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libusn_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libusn_plugin_la_LDFLAGS = -avoid-version
#------------------------
@@ -2063,6 +2106,7 @@ libusn_plugin_la_LDFLAGS = -avoid-version
#------------------------
libviews_plugin_la_SOURCES = ldap/servers/plugins/views/views.c
libviews_plugin_la_CPPFLAGS = $(PLUGIN_CPPFLAGS)
+libviews_plugin_la_LIBADD = libslapd.la $(LDAPSDK_LINK) $(NSPR_LINK)
libviews_plugin_la_LDFLAGS = -avoid-version
#////////////////////////////////////////////////////////////////
@@ -3094,18 +3138,9 @@ lib/libsi18n/$(am__dirstamp):
lib/libsi18n/$(DEPDIR)/$(am__dirstamp):
@$(mkdir_p) lib/libsi18n/$(DEPDIR)
@: > lib/libsi18n/$(DEPDIR)/$(am__dirstamp)
-lib/libsi18n/libns_dshttpd_la-coreres.lo: \
- lib/libsi18n/$(am__dirstamp) \
- lib/libsi18n/$(DEPDIR)/$(am__dirstamp)
lib/libsi18n/libns_dshttpd_la-getstrprop.lo: \
lib/libsi18n/$(am__dirstamp) \
lib/libsi18n/$(DEPDIR)/$(am__dirstamp)
-lib/libsi18n/libns_dshttpd_la-getlang.lo: \
- lib/libsi18n/$(am__dirstamp) \
- lib/libsi18n/$(DEPDIR)/$(am__dirstamp)
-lib/libsi18n/libns_dshttpd_la-propset.lo: \
- lib/libsi18n/$(am__dirstamp) \
- lib/libsi18n/$(DEPDIR)/$(am__dirstamp)
lib/libsi18n/libns_dshttpd_la-reshash.lo: \
lib/libsi18n/$(am__dirstamp) \
lib/libsi18n/$(DEPDIR)/$(am__dirstamp)
@@ -5096,14 +5131,8 @@ mostlyclean-compile:
-rm -f lib/libadmin/libns_dshttpd_la-template.lo
-rm -f lib/libadmin/libns_dshttpd_la-util.$(OBJEXT)
-rm -f lib/libadmin/libns_dshttpd_la-util.lo
- -rm -f lib/libsi18n/libns_dshttpd_la-coreres.$(OBJEXT)
- -rm -f lib/libsi18n/libns_dshttpd_la-coreres.lo
- -rm -f lib/libsi18n/libns_dshttpd_la-getlang.$(OBJEXT)
- -rm -f lib/libsi18n/libns_dshttpd_la-getlang.lo
-rm -f lib/libsi18n/libns_dshttpd_la-getstrprop.$(OBJEXT)
-rm -f lib/libsi18n/libns_dshttpd_la-getstrprop.lo
- -rm -f lib/libsi18n/libns_dshttpd_la-propset.$(OBJEXT)
- -rm -f lib/libsi18n/libns_dshttpd_la-propset.lo
-rm -f lib/libsi18n/libns_dshttpd_la-reshash.$(OBJEXT)
-rm -f lib/libsi18n/libns_dshttpd_la-reshash.lo
-rm -f lib/libsi18n/libns_dshttpd_la-txtfile.$(OBJEXT)
@@ -5558,10 +5587,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@lib/libadmin/$(DEPDIR)/libns_dshttpd_la-error.Plo(a)am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@lib/libadmin/$(DEPDIR)/libns_dshttpd_la-template.Plo(a)am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@lib/libadmin/$(DEPDIR)/libns_dshttpd_la-util.Plo(a)am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-coreres.Plo(a)am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-getlang.Plo(a)am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-getstrprop.Plo(a)am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-propset.Plo(a)am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-reshash.Plo(a)am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-txtfile.Plo(a)am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@lib/libsi18n/$(DEPDIR)/makstrdb-makstrdb.Po(a)am__quote@
@@ -6565,13 +6591,6 @@ lib/base/libns_dshttpd_la-nscperror.lo: lib/base/nscperror.c
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libns_dshttpd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/base/libns_dshttpd_la-nscperror.lo `test -f 'lib/base/nscperror.c' || echo '$(srcdir)/'`lib/base/nscperror.c
-lib/libsi18n/libns_dshttpd_la-coreres.lo: lib/libsi18n/coreres.c
-@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libns_dshttpd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/libsi18n/libns_dshttpd_la-coreres.lo -MD -MP -MF "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-coreres.Tpo" -c -o lib/libsi18n/libns_dshttpd_la-coreres.lo `test -f 'lib/libsi18n/coreres.c' || echo '$(srcdir)/'`lib/libsi18n/coreres.c; \
-@am__fastdepCC_TRUE@ then mv -f "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-coreres.Tpo" "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-coreres.Plo"; else rm -f "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-coreres.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/libsi18n/coreres.c' object='lib/libsi18n/libns_dshttpd_la-coreres.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libns_dshttpd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/libsi18n/libns_dshttpd_la-coreres.lo `test -f 'lib/libsi18n/coreres.c' || echo '$(srcdir)/'`lib/libsi18n/coreres.c
-
lib/libsi18n/libns_dshttpd_la-getstrprop.lo: lib/libsi18n/getstrprop.c
@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libns_dshttpd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/libsi18n/libns_dshttpd_la-getstrprop.lo -MD -MP -MF "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-getstrprop.Tpo" -c -o lib/libsi18n/libns_dshttpd_la-getstrprop.lo `test -f 'lib/libsi18n/getstrprop.c' || echo '$(srcdir)/'`lib/libsi18n/getstrprop.c; \
@am__fastdepCC_TRUE@ then mv -f "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-getstrprop.Tpo" "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-getstrprop.Plo"; else rm -f "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-getstrprop.Tpo"; exit 1; fi
@@ -6579,20 +6598,6 @@ lib/libsi18n/libns_dshttpd_la-getstrprop.lo: lib/libsi18n/getstrprop.c
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libns_dshttpd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/libsi18n/libns_dshttpd_la-getstrprop.lo `test -f 'lib/libsi18n/getstrprop.c' || echo '$(srcdir)/'`lib/libsi18n/getstrprop.c
-lib/libsi18n/libns_dshttpd_la-getlang.lo: lib/libsi18n/getlang.c
-@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libns_dshttpd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/libsi18n/libns_dshttpd_la-getlang.lo -MD -MP -MF "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-getlang.Tpo" -c -o lib/libsi18n/libns_dshttpd_la-getlang.lo `test -f 'lib/libsi18n/getlang.c' || echo '$(srcdir)/'`lib/libsi18n/getlang.c; \
-@am__fastdepCC_TRUE@ then mv -f "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-getlang.Tpo" "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-getlang.Plo"; else rm -f "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-getlang.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/libsi18n/getlang.c' object='lib/libsi18n/libns_dshttpd_la-getlang.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libns_dshttpd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/libsi18n/libns_dshttpd_la-getlang.lo `test -f 'lib/libsi18n/getlang.c' || echo '$(srcdir)/'`lib/libsi18n/getlang.c
-
-lib/libsi18n/libns_dshttpd_la-propset.lo: lib/libsi18n/propset.c
-@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libns_dshttpd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/libsi18n/libns_dshttpd_la-propset.lo -MD -MP -MF "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-propset.Tpo" -c -o lib/libsi18n/libns_dshttpd_la-propset.lo `test -f 'lib/libsi18n/propset.c' || echo '$(srcdir)/'`lib/libsi18n/propset.c; \
-@am__fastdepCC_TRUE@ then mv -f "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-propset.Tpo" "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-propset.Plo"; else rm -f "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-propset.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/libsi18n/propset.c' object='lib/libsi18n/libns_dshttpd_la-propset.lo' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libns_dshttpd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lib/libsi18n/libns_dshttpd_la-propset.lo `test -f 'lib/libsi18n/propset.c' || echo '$(srcdir)/'`lib/libsi18n/propset.c
-
lib/libsi18n/libns_dshttpd_la-reshash.lo: lib/libsi18n/reshash.c
@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libns_dshttpd_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT lib/libsi18n/libns_dshttpd_la-reshash.lo -MD -MP -MF "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-reshash.Tpo" -c -o lib/libsi18n/libns_dshttpd_la-reshash.lo `test -f 'lib/libsi18n/reshash.c' || echo '$(srcdir)/'`lib/libsi18n/reshash.c; \
@am__fastdepCC_TRUE@ then mv -f "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-reshash.Tpo" "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-reshash.Plo"; else rm -f "lib/libsi18n/$(DEPDIR)/libns_dshttpd_la-reshash.Tpo"; exit 1; fi
diff --git a/configure b/configure
index e3bab58..644f176 100755
--- a/configure
+++ b/configure
@@ -465,7 +465,7 @@ ac_includes_default="\
#endif"
ac_default_prefix=/opt/$PACKAGE_NAME
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS SED EGREP LN_S ECHO AR ac_ct_AR RANLIB a
c_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS debug_defs BUNDLE_TRUE BUNDLE_FALSE enable_pam_passthru_TRUE enable_pam_passthru_FALSE enable_dna_TRUE enable_dna_FALSE enable_ldapi_TRUE enable_ldapi_FALSE enable_autobind_TRUE enable_autobind_FALSE enable_auto_dn_suffix_TRUE enable_auto_dn_suffix_FALSE enable_bitwise_TRUE enable_bitwise_FALSE enable_presence_TRUE enable_presence_FALSE with_fhs_opt configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir perldir infdir mibdir updatedir defaultuser defaultgroup instconfigdir WINNT_TRUE WINNT_FALSE THREADLIB LIBSOCKET LIBNSL LIBDL LIBCSTD LIBCRUN initdir perlexec initconfigdir HPUX_TRUE HPUX_FALSE SOLARIS_TRUE SOLARIS_FALSE PKG_CONFIG ICU_CONFIG NETSNMP_CONFIG KRB5_CONFIG_BIN kerberos_inc kerberos_lib kerberos_libdir with_selinux PACKAGE_BASE_VERSION SELINUX_TRUE SELINUX_FALSE OPENLDAP_TRUE OPENLDAP_FALSE nspr_inc nspr_lib nspr_libdir nss_inc nss_lib nss_libdir ldapsdk_inc ldapsdk_lib
ldapsdk_libdir ldapsdk_bindir openldap_inc openldap_lib openldap_libdir openldap_bindir ol_libver db_inc db_incdir db_lib db_libdir db_bindir db_libver sasl_inc sasl_lib sasl_libdir sasl_path svrcore_inc svrcore_lib icu_lib icu_inc icu_bin netsnmp_inc netsnmp_lib netsnmp_libdir netsnmp_link pcre_inc pcre_lib pcre_libdir brand capbrand vendor LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS SED EGREP LN_S ECHO AR ac_ct_AR RANLIB a
c_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS debug_defs BUNDLE_TRUE BUNDLE_FALSE enable_pam_passthru_TRUE enable_pam_passthru_FALSE enable_dna_TRUE enable_dna_FALSE enable_ldapi_TRUE enable_ldapi_FALSE enable_autobind_TRUE enable_autobind_FALSE enable_auto_dn_suffix_TRUE enable_auto_dn_suffix_FALSE enable_bitwise_TRUE enable_bitwise_FALSE enable_presence_TRUE enable_presence_FALSE with_fhs_opt configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir perldir infdir mibdir updatedir defaultuser defaultgroup instconfigdir WINNT_TRUE WINNT_FALSE THREADLIB LIBCRYPT LIBSOCKET LIBNSL LIBDL LIBCSTD LIBCRUN initdir perlexec initconfigdir HPUX_TRUE HPUX_FALSE SOLARIS_TRUE SOLARIS_FALSE PKG_CONFIG ICU_CONFIG NETSNMP_CONFIG KRB5_CONFIG_BIN kerberos_inc kerberos_lib kerberos_libdir with_selinux PACKAGE_BASE_VERSION SELINUX_TRUE SELINUX_FALSE OPENLDAP_TRUE OPENLDAP_FALSE nspr_inc nspr_lib nspr_libdir nss_inc nss_lib nss_libdir ldapsdk_inc ld
apsdk_lib ldapsdk_libdir ldapsdk_bindir openldap_inc openldap_lib openldap_libdir openldap_bindir ol_libver db_inc db_incdir db_lib db_libdir db_bindir db_libver sasl_inc sasl_lib sasl_libdir sasl_path svrcore_inc svrcore_lib icu_lib icu_inc icu_bin netsnmp_inc netsnmp_lib netsnmp_libdir netsnmp_link pcre_inc pcre_lib pcre_libdir brand capbrand vendor LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
@@ -23666,6 +23666,9 @@ fi
THREADLIB=-lpthread
THREADLIB=$THREADLIB
+ LIBCRYPT=-lcrypt
+ LIBCRYPT=$LIBCRYPT
+
;;
ia64-hp-hpux*)
@@ -28195,6 +28198,7 @@ s,@instconfigdir@,$instconfigdir,;t t
s,@WINNT_TRUE@,$WINNT_TRUE,;t t
s,@WINNT_FALSE@,$WINNT_FALSE,;t t
s,@THREADLIB@,$THREADLIB,;t t
+s,@LIBCRYPT@,$LIBCRYPT,;t t
s,@LIBSOCKET@,$LIBSOCKET,;t t
s,@LIBNSL@,$LIBNSL,;t t
s,@LIBDL@,$LIBDL,;t t
diff --git a/configure.ac b/configure.ac
index f8ec729..6bf9f8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -350,6 +350,8 @@ case $host in
# some programs use the native thread library directly
THREADLIB=-lpthread
AC_SUBST([THREADLIB], [$THREADLIB])
+ LIBCRYPT=-lcrypt
+ AC_SUBST([LIBCRYPT], [$LIBCRYPT])
;;
ia64-hp-hpux*)
AC_DEFINE([XP_UNIX], [1], [UNIX])
diff --git a/include/i18n.h b/include/i18n.h
index 6a614c8..2d53b20 100644
--- a/include/i18n.h
+++ b/include/i18n.h
@@ -166,15 +166,6 @@ extern "C"
{
#endif
-/***************************/
-/* XP_InitStringDatabase() */
-/***************************/
-
-NSAPI_PUBLIC
-void
-XP_InitStringDatabase(char* pathCWD, char* databaseName);
-
-/* Initialize the resource string database */
/******************************/
/* XP_GetStringFromDatabase() */
@@ -186,107 +177,6 @@ XP_GetStringFromDatabase(char* strLibraryName,
char* strLanguage,
int iToken);
-/* Given the LibraryName, Language and Token, extracts the string corresponding
- to that library and token from the database in the language requested and
- returns a pointer to the string. Note: Use the macros XP_GetClientStr() and
- XP_GetAdminStr() defined below to simplify source code. */
-
-/*****************/
-/* SetLanguage() */
-/*****************/
-enum
-{
- CLIENT_LANGUAGE,
- ADMIN_LANGUAGE,
- DEFAULT_LANGUAGE
-};
-
-NSAPI_PUBLIC
-extern void
-SetLanguage(int type, char *language);
-
-/* Set language for Client, Admin and Default, XP_GetStringFromDatabase will
- base on the setting to retrieve correct string for specific language */
-
-/***********************/
-/* GetClientLanguage() */
-/***********************/
-
-NSAPI_PUBLIC
-extern char*
-GetClientLanguage(void);
-
-/* Returns a pointer to a string with the name of the language requested by
- the current client; intended to be passed to XP_GetStringFromDatabase()
- and used by the front end macro XP_GetClientStr(). */
-
-/**********************/
-/* GetAdminLanguage() */
-/**********************/
-
-NSAPI_PUBLIC
-extern char*
-GetAdminLanguage(void);
-
-/* Returns a pointer to a string with the name of the language requested by
- the administrator; intended to be passed to XP_GetStringFromDatabase()
- and used by the front end macro XP_GetAdminStr(). */
-
-/************************/
-/* GetDefaultLanguage() */
-/************************/
-
-NSAPI_PUBLIC
-extern char*
-GetDefaultLanguage(void);
-
-/* Returns a pointer to a string with the name of the default language
- for the installation from the configuration file. */
-
-/************************/
-/* GetFileForLanguage() */
-/************************/
-
-NSAPI_PUBLIC
-int
-GetFileForLanguage(char* filepath,char* language,char* existingFilepath);
-
-/* Looks for a file in the appropriate language.
-
- Input: filePath,language
- filePath is of the form "/xxx/xxx/$$LANGDIR/xxx/xxx/filename"
- or of the form "/xxx/xxx/xxx/xxx/filename".
- filename may or may not have an extension.
- language is an Accept-Language list; each language-range will be
- tried as a subdirectory name and possibly as a filename modifier.
- "*" is ignored - default always provided if needed.
- "-" is replaced by "_".
- $$LANGDIR is a special string replaced by language. It is optional.
- For the default case, $$LANGDIR/ is replaced by nothing
- (so // is not created).
-
- Returned: existingPath
- existingFilePath is the path of a satisfactory, existing file.
- if no file is found, an empty string "" is returned.
-
- int returned: -1 if no file found (existingFilePath = "")
- 0 if default file is returned
- 1 if language file is returned (any in list) */
-
-/********************/
-/* XP_AccLangList() */
-/********************/
-
-#define MAX_ACCEPT_LANGUAGE 16
-#define MAX_ACCEPT_LENGTH 18
-
-typedef char ACCEPT_LANGUAGE_LIST[MAX_ACCEPT_LANGUAGE][MAX_ACCEPT_LENGTH];
-
-NSAPI_PUBLIC
-int
-XP_AccLangList(char* AcceptLanguage,
- ACCEPT_LANGUAGE_LIST AcceptLanguageList);
-
#ifdef __cplusplus
}
#endif
@@ -314,11 +204,6 @@ extern void XP_PrintStringDatabase(void);
* (need one argument instead of three)
*/
-#define XP_GetClientStr(DBTTokenName) \
- XP_GetStringFromDatabase(LIBRARY_NAME, \
- GetClientLanguage(), \
- DBTTokenName)
-
#define XP_GetAdminStr(DBTTokenName) \
XP_GetStringFromDatabase(LIBRARY_NAME, \
"en", \
diff --git a/ldap/servers/slapd/back-ldbm/ldif2ldbm.c b/ldap/servers/slapd/back-ldbm/ldif2ldbm.c
index ce79c6f..e5faa27 100644
--- a/ldap/servers/slapd/back-ldbm/ldif2ldbm.c
+++ b/ldap/servers/slapd/back-ldbm/ldif2ldbm.c
@@ -1951,7 +1951,7 @@ ldbm_back_ldbm2index(Slapi_PBlock *pb)
&psrdn, NULL, 0,
run_from_cmdline, NULL);
if (rc) {
- LDAPDebugArg(LDAP_DEBUG_ANY,
+ LDAPDebug1Arg(LDAP_DEBUG_ANY,
"ldbm2ldif: Failed to get dn of ID "
"%d\n", pid);
slapi_ch_free_string(&rdn);
diff --git a/ldap/servers/slapd/bind.c b/ldap/servers/slapd/bind.c
index 79d8c5c..8c5bc6b 100644
--- a/ldap/servers/slapd/bind.c
+++ b/ldap/servers/slapd/bind.c
@@ -804,79 +804,3 @@ log_bind_access (
method, version );
}
}
-
-
-void
-slapi_add_auth_response_control( Slapi_PBlock *pb, const char *binddn )
-{
- LDAPControl arctrl;
- char dnbuf_fixedsize[ 512 ], *dnbuf, *dnbuf_dynamic = NULL;
- size_t dnlen;
-
- if ( NULL == binddn ) {
- binddn = "";
- }
- dnlen = strlen( binddn );
-
- /*
- * According to draft-weltman-ldapv3-auth-response-03.txt section
- * 4 (Authentication Response Control):
- *
- * The controlType is "2.16.840.1.113730.3.4.15". If the bind request
- * succeeded and resulted in an identity (not anonymous), the
- * controlValue contains the authorization identity [AUTH] granted to
- * the requestor. If the bind request resulted in anonymous
- * authentication, the controlValue field is a string of zero length.
- *
- * [AUTH] is a reference to RFC 2829, which in section 9 defines
- * authorization identity as:
- *
- *
- * The authorization identity is a string in the UTF-8 character set,
- * corresponding to the following ABNF [7]:
- *
- * ; Specific predefined authorization (authz) id schemes are
- * ; defined below -- new schemes may be defined in the future.
- *
- * authzId = dnAuthzId / uAuthzId
- *
- * ; distinguished-name-based authz id.
- * dnAuthzId = "dn:" dn
- * dn = utf8string ; with syntax defined in RFC 2253
- *
- * ; unspecified userid, UTF-8 encoded.
- * uAuthzId = "u:" userid
- * userid = utf8string ; syntax unspecified
- *
- * A utf8string is defined to be the UTF-8 encoding of one or more ISO
- * 10646 characters.
- *
- * We always map identities to DNs, so we always use the dnAuthzId form.
- */
- arctrl.ldctl_oid = LDAP_CONTROL_AUTH_RESPONSE;
- arctrl.ldctl_iscritical = 0;
-
- if ( dnlen == 0 ) { /* anonymous -- return zero length value */
- arctrl.ldctl_value.bv_val = "";
- arctrl.ldctl_value.bv_len = 0;
- } else { /* mapped to a DN -- return "dn:<DN>" */
- if ( 3 + dnlen < sizeof( dnbuf_fixedsize )) {
- dnbuf = dnbuf_fixedsize;
- } else {
- dnbuf = dnbuf_dynamic = slapi_ch_malloc( 4 + dnlen );
- }
- strcpy( dnbuf, "dn:" );
- strcpy( dnbuf + 3, binddn );
- arctrl.ldctl_value.bv_val = dnbuf;
- arctrl.ldctl_value.bv_len = 3 + dnlen;
- }
-
- if ( slapi_pblock_set( pb, SLAPI_ADD_RESCONTROL, &arctrl ) != 0 ) {
- slapi_log_error( SLAPI_LOG_FATAL, "bind",
- "unable to add authentication response control" );
- }
-
- if ( NULL != dnbuf_dynamic ) {
- slapi_ch_free_string( &dnbuf_dynamic );
- }
-}
diff --git a/ldap/servers/slapd/ldaputil.c b/ldap/servers/slapd/ldaputil.c
index 9c69254..2c5b0c9 100644
--- a/ldap/servers/slapd/ldaputil.c
+++ b/ldap/servers/slapd/ldaputil.c
@@ -768,6 +768,81 @@ done:
return rc;
}
+void
+slapi_add_auth_response_control( Slapi_PBlock *pb, const char *binddn )
+{
+ LDAPControl arctrl;
+ char dnbuf_fixedsize[ 512 ], *dnbuf, *dnbuf_dynamic = NULL;
+ size_t dnlen;
+
+ if ( NULL == binddn ) {
+ binddn = "";
+ }
+ dnlen = strlen( binddn );
+
+ /*
+ * According to draft-weltman-ldapv3-auth-response-03.txt section
+ * 4 (Authentication Response Control):
+ *
+ * The controlType is "2.16.840.1.113730.3.4.15". If the bind request
+ * succeeded and resulted in an identity (not anonymous), the
+ * controlValue contains the authorization identity [AUTH] granted to
+ * the requestor. If the bind request resulted in anonymous
+ * authentication, the controlValue field is a string of zero length.
+ *
+ * [AUTH] is a reference to RFC 2829, which in section 9 defines
+ * authorization identity as:
+ *
+ *
+ * The authorization identity is a string in the UTF-8 character set,
+ * corresponding to the following ABNF [7]:
+ *
+ * ; Specific predefined authorization (authz) id schemes are
+ * ; defined below -- new schemes may be defined in the future.
+ *
+ * authzId = dnAuthzId / uAuthzId
+ *
+ * ; distinguished-name-based authz id.
+ * dnAuthzId = "dn:" dn
+ * dn = utf8string ; with syntax defined in RFC 2253
+ *
+ * ; unspecified userid, UTF-8 encoded.
+ * uAuthzId = "u:" userid
+ * userid = utf8string ; syntax unspecified
+ *
+ * A utf8string is defined to be the UTF-8 encoding of one or more ISO
+ * 10646 characters.
+ *
+ * We always map identities to DNs, so we always use the dnAuthzId form.
+ */
+ arctrl.ldctl_oid = LDAP_CONTROL_AUTH_RESPONSE;
+ arctrl.ldctl_iscritical = 0;
+
+ if ( dnlen == 0 ) { /* anonymous -- return zero length value */
+ arctrl.ldctl_value.bv_val = "";
+ arctrl.ldctl_value.bv_len = 0;
+ } else { /* mapped to a DN -- return "dn:<DN>" */
+ if ( 3 + dnlen < sizeof( dnbuf_fixedsize )) {
+ dnbuf = dnbuf_fixedsize;
+ } else {
+ dnbuf = dnbuf_dynamic = slapi_ch_malloc( 4 + dnlen );
+ }
+ strcpy( dnbuf, "dn:" );
+ strcpy( dnbuf + 3, binddn );
+ arctrl.ldctl_value.bv_val = dnbuf;
+ arctrl.ldctl_value.bv_len = 3 + dnlen;
+ }
+
+ if ( slapi_pblock_set( pb, SLAPI_ADD_RESCONTROL, &arctrl ) != 0 ) {
+ slapi_log_error( SLAPI_LOG_FATAL, "bind",
+ "unable to add authentication response control" );
+ }
+
+ if ( NULL != dnbuf_dynamic ) {
+ slapi_ch_free_string( &dnbuf_dynamic );
+ }
+}
+
/* the following implements the client side of sasl bind, for LDAP server
-> LDAP server SASL */
diff --git a/lib/libsi18n/coreres.c b/lib/libsi18n/coreres.c
deleted file mode 100644
index e20d07a..0000000
--- a/lib/libsi18n/coreres.c
+++ /dev/null
@@ -1,141 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
-#include "i18n.h"
-
-#include "propset.h"
-
-#include "coreres.h"
-
-Resource* core_res_init_resource(const char* path, const char* package)
-{
- PropertiesSet *propset;
- char *directory;
- char *filename;
- char *file_path;
- char *p, *q;
- char *filep;
- Resource *hres;
-
- /*********************
- Create full path information
- eg. ./es40/admin and cgi.bin.start ==>
- ./es40/admin/cgi/bin/start.properties
- **********************/
- file_path = (char *) malloc (strlen(path) + strlen(package) + 20);
-
-
- strcpy(file_path, path);
- if (path[strlen(path)-1] != '/')
- strcat(file_path, "/");
-
- p = file_path + strlen(file_path);
- q = (char *) package;
-
- filep = p - 1;
-
- /* Append package to file_path
- p: end positon of path + 1
- q: start position of package
- */
- while (q && *q) {
- if (*q == '.') {
- filep = q;
- *p ++ = '/';
- }
- else
- *p ++ = *q ++;
-
- }
- *p = '\0';
-
- *filep = '\0';
- filename = filep + 1;
- directory = file_path;
-
- propset = PropertiesInit (directory, filename);
-
- if (propset == NULL)
- return NULL;
-
- hres = (Resource *) malloc(sizeof(Resource));
- memset(hres, 0, sizeof(Resource));
-
- hres->path = strdup(file_path);
- hres->propset = propset;
-
- if (file_path)
- free (file_path);
-
- return hres;
-}
-
-const char *core_res_getstring(Resource *hres, char *key, ACCEPT_LANGUAGE_LIST lang)
-{
-
- if (key == NULL)
- return NULL;
-
- if (hres) {
- return PropertiesGetString(hres->propset, key, lang);
- }
-
- return NULL;
-}
-
-void core_res_destroy_resource(Resource *hres)
-{
- if (hres) {
- if (hres->path)
- free(hres->path);
- if (hres->package)
- free(hres->package);
- PropertiesDestroy(hres->propset);
-
- free(hres);
- }
-}
-
diff --git a/lib/libsi18n/coreres.h b/lib/libsi18n/coreres.h
deleted file mode 100644
index 8ad815a..0000000
--- a/lib/libsi18n/coreres.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifndef CORERES_H
-#define CORERES_H
-
-#include "i18n.h"
-
-Resource* core_res_init_resource(const char* path, const char* package);
-const char *core_res_getstring(Resource *hres, char *key, ACCEPT_LANGUAGE_LIST lang);
-void core_res_destroy_resource(Resource *hres);
-
-#endif
diff --git a/lib/libsi18n/getlang.c b/lib/libsi18n/getlang.c
deleted file mode 100644
index f8cb649..0000000
--- a/lib/libsi18n/getlang.c
+++ /dev/null
@@ -1,330 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include "libadmin/libadmin.h"
-
-
-#include "i18n.h"
-
-/*********************************************************************
- strReplace replaces the first instance of from in target with to.
- from can be "": to is inserted at start of target.
- to can be "": from is removed from target.
- if from is not found, 0 is returned; else 1 is returned.
- *********************************************************************/
-
-static int
-strReplace(char* target,char* from,char* to)
-{
- /* replace /from/to/ in target */
-
- char* pFrom;
- char* pOldTail;
- int lenTo;
-
- pFrom = strstr(target,from);
- if (pFrom) {
- pOldTail = pFrom+strlen(from);
- lenTo = strlen(to);
- memmove(pFrom+lenTo,pOldTail,strlen(pOldTail)+1);
- memcpy(pFrom,to,lenTo);
- return 1;
- }
-
- return 0;
-}
-
-/*********************************************************************
- statFileDir is a wrapper to stat() that strips trailing slashes
- because stat() on Windows seems to return -1 otherwise.
-*********************************************************************/
-
-int
-statFileDir(const char *path, struct stat *info) {
- int ret, pathlen;
- char *newpath = strdup(path);
-
- if(newpath == NULL)
- return -1;
-
- for (pathlen = (strlen(newpath) - 1); pathlen >= 0; pathlen--) {
- if (newpath[pathlen] == '/' || newpath[pathlen] == '\\') {
- newpath[pathlen] = '\0';
- } else {
- break;
- }
- }
-
- ret = stat(newpath, info);
-
- if (newpath)
- free(newpath);
-
- return ret;
-}
-
-/*********************************************************************
- GetLanguage is reserved for future use. These APIs are not belong
- to this file. It needs to be moved to somewhere which knows what's
- the current language setting.
- *********************************************************************/
-
-static char emptyString[] = "";
-
-static char client_language[128] = "en";
-static char admin_language[128] = "en";
-static char default_language[128] = "en";
-
-void
-SetLanguage(int type, char *language)
-{
- switch(type) {
- case CLIENT_LANGUAGE:
- if (language)
- strcpy(client_language, language);
- break;
- case ADMIN_LANGUAGE:
- if (language)
- strcpy(admin_language, language);
- break;
- case DEFAULT_LANGUAGE:
- if (language)
- strcpy(default_language, language);
- break;
- }
- return ;
-}
-
-
-
-char*
-GetClientLanguage(void)
-{
- if (client_language)
- return client_language;
- else
- return emptyString;
-}
-
-char*
-GetAdminLanguage(void)
-{
- if (admin_language)
- return admin_language;
- else
- return emptyString;
-}
-
-char*
-GetDefaultLanguage(void)
-{
- if (default_language)
- return default_language;
- else
- return "en";
-}
-
-/*********************************************************************
- GetFileForLanguage looks for a file in the appropriate language.
- *********************************************************************/
-
-NSAPI_PUBLIC
-int
-GetFileForLanguage(char* filePath,char* language,char* existingFilePath)
-{
- /* Input: filePath,language
- * filePath is of the form "/xxx/xxx/$$LANGDIR/xxx/xxx/filename"
- * or of the form "/xxx/xxx/xxx/xxx/filename".
- * filename may or may not have an extension.
- * language is an Accept-Language list; each language-range will be
- * tried as a subdirectory name and possibly as a filename modifier.
- * "*" is ignored - default always provided if needed.
- * "-" is replaced by "_".
- * $$LANGDIR is a special string replaced by language. It is optional.
- * For the default case, $$LANGDIR/ is replaced by nothing
- * (so // is not created).
- *
- * Returned: existingPath
- * existingFilePath is the path of a satisfactory, existing file.
- * if no file is found, an empty string "" is returned.
- *
- * int returned: -1 if no file found (existingFilePath = "")
- * 0 if default file is returned
- * 1 if language file is returned (any in list)
- *
- * Example:
- * filePath = "/path/$$LANGDIR/filename.ext"
- * language = "language"
- * GetDefaultLanguage() --> "default"
- * LANG_DELIMIT = "_"
- *
- * 1. Try: "/path/language/filename.ext"
- * 2. Try: "/path/filename_language.ext"
- * 3. Try: "/path/default/filename.ext"
- * 4. Try: "/path/filename_default.ext"
- * 5. Try: "/path/filename.ext"
- * else: ""
- *
- * Example:
- * language = "en-us;q=0.6,ja;q=0.8,en-ca"
- *
- * 1. Try: "/path/en-ca/filename.ext"
- * 2. Try: "/path/filename_en_ca.ext"
- * 3. Try: "/path/ja/filename.ext"
- * 4. Try: "/path/filename_ja.ext"
- * 5. Try: "/path/en_us/filename.ext"
- * 6. Try: "/path/filename_en_us.ext"
- * 7. Try: "/path/default/filename.ext"
- * 8. Try: "/path/filename_default.ext"
- * 9. Try: "/path/filename.ext"
- * else: ""
- *
- */
-
-#define LANG_DELIMIT '_'
-
- int pattern;
- char* pDot;
- char* pSlash;
-
- /* PRFileInfo info; */
- struct stat info;
-
- char lang_modifier[MAX_ACCEPT_LENGTH+1];
-
- ACCEPT_LANGUAGE_LIST acceptLanguageList;
- int numLang;
- int iLang;
- int iCase;
-
-
- /* escape in case XP_InitStringDatabase has not been called */
- if (filePath==NULL) {
- *existingFilePath = '\0';
- return -1;
- }
-
- pattern = (strstr(filePath,"$$LANGDIR/")!=NULL);
-
- for ( iCase=1 ; iCase>=0 ; iCase-- ) {
- if (iCase==1) { /* iCase=1 tries requested language */
- numLang = XP_AccLangList(language,acceptLanguageList);
- } else { /* iCase=0 tries default language */
- numLang = XP_AccLangList(GetDefaultLanguage(),acceptLanguageList);
- }
-
- for ( iLang=0 ; iLang<numLang ; iLang++ ) {
-
- /* Try: /path/language/filename.ext */
- if (pattern) {
- strcpy(existingFilePath,filePath);
- strReplace(existingFilePath,"$$LANGDIR",acceptLanguageList[iLang]);
-
- if (statFileDir(existingFilePath,&info)==0) {
- return iCase;
- }
-
- /*
- if (PR_GetFileInfo(existingFilePath,&info)==PR_SUCCESS) {
- return iCase;
- }
- */
- }
-
- /* Try: /path/filename_language.ext */
- {
- strcpy(existingFilePath,filePath);
- strReplace(existingFilePath,"$$LANGDIR/",emptyString);
- pDot = strrchr(existingFilePath,'.');
- pSlash = strrchr(existingFilePath,'/');
- if (pSlash>=pDot) {
- pDot = strchr(existingFilePath,'\0');
- }
- sprintf(lang_modifier,"%c%s",LANG_DELIMIT,acceptLanguageList[iLang]);
- strReplace(pDot,emptyString,lang_modifier);
-
- if (statFileDir(existingFilePath,&info)==0) {
- return iCase;
- }
-
- /*
- if (PR_GetFileInfo(existingFilePath,&info)==PR_SUCCESS) {
- return iCase;
- }
- */
- }
- }
- }
-
- /* Try: /path/filename.ext */
- {
- strcpy(existingFilePath,filePath);
- strReplace(existingFilePath,"$$LANGDIR/",emptyString);
-
- if (statFileDir(existingFilePath,&info)==0) {
- return 0;
- }
-
- /*
- if (PR_GetFileInfo(existingFilePath,&info)==PR_SUCCESS) {
- return 0;
- }
- */
- }
-
- /* Else: */
- *existingFilePath = '\0';
- return -1;
-}
-
-
-
-
-
-
diff --git a/lib/libsi18n/getstrmem.c b/lib/libsi18n/getstrmem.c
deleted file mode 100644
index 2beb347..0000000
--- a/lib/libsi18n/getstrmem.c
+++ /dev/null
@@ -1,160 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-
-#include <stdio.h>
-#include <string.h>
-
-#define COMPILE_STRINGS_IN_MEMORY
-
-static char emptyString[] = "";
-
-#ifdef COMPILE_STRINGS_IN_MEMORY
-
-typedef struct DATABIN {
- char* pLibraryName;
- char** pArrayOfLibraryStrings;
- unsigned numberOfStringsInLibrary;
- } DATABIN;
-
-#include "getstrmem.h"
-
-#endif
-
-#if 0 /* Example of getstrmem.h */
- /* It is intended that this header file be generated by program dblink */
-
- #define NUM_BUCKETS 2 /* must be power of 2 */
-
- /* strings in library libalpha */
- static char* libalpha[] = {
- "",
- "libalpha string 1",
- "libalpha string 2",
- "libalpha string 3",
- "libalpha string 4",
- emptyString };
-
- /* strings in library libbeta */
- static char* libbeta[] = {
- "",
- "libbeta string 1",
- "libbeta string 2",
- emptyString };
-
- /* libraries in bucket for hashKey==0 */
- static struct DATABIN bucket0[] = {
- {emptyString, NULL, 0}};
-
- /* libraries in bucket for hashKey==1 */
- static struct DATABIN bucket1[] = {
- {"libalpha", libalpha, 5},
- {"libbeta", libbeta, 3},
- {emptyString, NULL, 0}};
-
- /* array of buckets */
- static struct DATABIN* buckets[NUM_BUCKETS] = {
- bucket0,
- bucket1 };
-
-#endif /* end of example getstrmem.h */
-
-#define BUCKET_MASK NUM_BUCKETS-1
-
-char*
-XP_GetStringFromMemory(char* strLibraryName,int iToken)
-{
- /*
- * In memory model called by XP_GetStringFromDatabase
- * does not use database (nsres, et al.).
- *
- * This function uses hash table for library lookup
- * and direct lookup for string.
- *
- * This function is thread safe.
- */
-
-#ifdef COMPILE_STRINGS_IN_MEMORY
-
- unsigned hashKey;
- int found = 0;
- unsigned uToken = iToken;
- char* cPtr;
- DATABIN* pBucket;
-
- /* calculate hash key */
- hashKey = 0;
- cPtr = strLibraryName;
- while (*cPtr) {
- hashKey += *(cPtr++);
- }
- hashKey &= BUCKET_MASK;
-
- /* get bucket for this hash key */
- pBucket = buckets[hashKey];
-
- /* search overflow buckets */
- while (*(pBucket->pLibraryName)!='\0') {
- if (strcmp(pBucket->pLibraryName,strLibraryName)==0) {
- found = 1;
- break;
- }
- pBucket++;
- }
-
- if (!found) {
- return emptyString;
- }
-
- if (uToken<=pBucket->numberOfStringsInLibrary) {
- return pBucket->pArrayOfLibraryStrings[uToken];
- } else {
- /* string token out of range */
- return emptyString;
- }
-
-#else
-
- return emptyString;
-
-#endif
-}
diff --git a/lib/libsi18n/getstrprop.c b/lib/libsi18n/getstrprop.c
index 4a5ab04..c63d6ba 100644
--- a/lib/libsi18n/getstrprop.c
+++ b/lib/libsi18n/getstrprop.c
@@ -49,77 +49,7 @@
#include "getstrmem.h"
-#include "coreres.h"
-
-Resource *hResource = NULL;
-char empty_string[] = "";
-
-char*
-XP_GetStringFromMemory(char* strLibraryName,int iToken);
-
-
-
-void
-XP_InitStringDatabase(char* pathCWD, char* databaseName)
-{
- hResource = core_res_init_resource (pathCWD, databaseName);
-}
-
-char *XP_GetPropertyString(char* strLibraryName,int iToken, ACCEPT_LANGUAGE_LIST lang)
-{
- char *key_name;
- char *result = NULL;
-
- if (hResource == NULL)
- return NULL;
-
- /*creating the key*/
- key_name=(char*)malloc(strlen(strLibraryName) + 10);
- sprintf(key_name, "%s-%d", strLibraryName, iToken);
- if(key_name == NULL)
- return NULL;
-
- result = (char *) core_res_getstring(hResource, key_name, lang) ;
-
- if (key_name)
- free (key_name);
-
- if (result == NULL)
- return empty_string;
- else
- return result ;
-}
-
-char*
-XP_GetStringFromDatabase(char* strLibraryName,
- char* strLanguage,
- int key)
-{
- char *result = NULL;
- ACCEPT_LANGUAGE_LIST alanglist;
- int n;
-
- /*
- * display first choice language if available, otherwise
- * use default which is english in most case
- */
- if (hResource) {
- n = XP_AccLangList (strLanguage, alanglist);
- if (n >= MAX_ACCEPT_LANGUAGE)
- alanglist[MAX_ACCEPT_LANGUAGE-1][0] = '\0';
- else
- alanglist[n][0] = '\0';
- result = XP_GetPropertyString(strLibraryName, key, alanglist);
- }
-
- /* we should never come here. */
- if (result == NULL)
- result = XP_GetStringFromMemory(strLibraryName,key);
- return result;
-}
-
-
-char*
+static char*
XP_GetStringFromMemory(char* strLibraryName,int iToken)
{
/*
@@ -171,3 +101,16 @@ XP_GetStringFromMemory(char* strLibraryName,int iToken)
}
}
+
+char*
+XP_GetStringFromDatabase(char* strLibraryName,
+ char* strLanguage,
+ int key)
+{
+ char *result = NULL;
+
+ /* we use memory strings only in ds. */
+ if (result == NULL)
+ result = XP_GetStringFromMemory(strLibraryName,key);
+ return result;
+}
diff --git a/lib/libsi18n/propset.c b/lib/libsi18n/propset.c
deleted file mode 100644
index 87b9885..0000000
--- a/lib/libsi18n/propset.c
+++ /dev/null
@@ -1,442 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <ctype.h>
-#include "i18n.h"
-
-#include "txtfile.h"
-#include "reshash.h"
-#include "propset.h"
-
-int PropertiesLoadFileToHash(PropertiesSet *propset, char *language);
-char *GetProertiesFilename(char *directory, char *file, char *language);
-int PropertiesLanguageStatus(PropertiesSet *propset, char *language);
-int PropertiesSetLangStatus(LanguageStatus *langstatus, char *language, int status);
-int unicode_to_UTF8(unsigned int wch, char *utf8);
-char *decode_ascii(char *src);
-
-
-PropertiesSet * PropertiesInit(char *directory, char *file)
-{
- struct stat buf;
- char * file_path;
- PropertiesSet *propset = NULL;
- PropertiesSet *result = NULL;
- ResHash *reshash;
-
- file_path = (char *) malloc (strlen(directory) + strlen(file) + 20);
-
- strcpy(file_path, directory);
- strcat(file_path, "/");
- strcat(file_path, file);
- strcat(file_path, ".properties");
-
- if (stat(file_path, &buf) == 0) {
- propset = (PropertiesSet *) malloc(sizeof(PropertiesSet));
- memset(propset, 0, sizeof(PropertiesSet));
- reshash = (ResHash *) ResHashCreate(file);
-
- if (reshash) {
- propset->langlist = (LanguageStatus *) malloc(sizeof(LanguageStatus));
- memset(propset->langlist, 0, sizeof(LanguageStatus));
-
- propset->res = reshash;
- propset->directory = strdup(directory);
- propset->filename = strdup(file);
- PropertiesLoadFileToHash(propset, NULL);
- result = propset;
- }
- }
-
- if (file_path)
- free (file_path);
-
- return result;
-}
-
-
-char *GetProertiesFilename(char *directory, char *file, char *language)
-{
- char *filepath;
-
- if (language && *language == '\0')
- filepath = (char *) malloc(strlen(directory) + strlen(file) + strlen(language) + 20);
- else
- filepath = (char *) malloc(strlen(directory) + strlen(file) + 20);
-
- strcpy(filepath, directory);
- if (filepath[strlen(filepath) - 1] != '/')
- strcat(filepath, "/");
- strcat(filepath, file);
- if (language && *language != '\0') {
- strcat(filepath, "_");
- strcat(filepath, language);
- }
- strcat(filepath, ".properties");
-
- return filepath;
-}
-
-/*
- PropertiesLoadToHash
-
- Opens property file and save data to hash table
-
- Input
- propfile: handle
- file: full path with file extension
-
- return:
- 0: SUCCESS
- 1: FAIL
-*/
-
-int PropertiesLoadFileToHash(PropertiesSet *propset, char *language)
-{
- TEXTFILE *hfile;
- char *filepath;
- char *p, *q;
- int n;
- char linebuf[1000];
- int st;
-
- st = PropertiesLanguageStatus(propset, language);
- if (st == LANGUAGE_INVALID)
- return 1;
- else if (st == LANGUAGE_LOAD)
- return 0;
-
- filepath = GetProertiesFilename(propset->directory, propset->filename, language);
-
- if ((hfile = OpenTextFile (filepath, TEXT_OPEN_FOR_READ)) == NULL) {
- PropertiesSetLangStatus(propset->langlist, language, LANGUAGE_INVALID);
- return 1;
- }
-
- while ((n = ReadTextLine(hfile, linebuf)) >= 0) {
- if (n == 0)
- continue;
-
- p = linebuf;
- /* strip leading spaces */
- while (*p == ' ' || *p == '\t')
- p ++;
- /* skip comment line */
- if (*p == '\0' || *p == '#' || *p == '=')
- continue;
-
- q = strchr (linebuf, '=');
- if (q) {
- char *key, *value, *newvalue;
-
- *q = '\0';
- key = p;
- value = q + 1;
- /* strip trailing space for key */
- p = key + strlen(key) - 1;
- while (*p == ' ' || *p == '\t') {
- *p = '\0';
- p --;
- }
-
- /* decode Unicode escape value */
- newvalue = decode_ascii(value);
-
- if (newvalue) {
- ResHashAdd(propset->res, key, newvalue, language);
- free(newvalue);
- }
- else
- ResHashAdd(propset->res, key, value, language);
- }
- }
- PropertiesSetLangStatus(propset->langlist, language, LANGUAGE_LOAD);
- return 0;
-}
-
-/*
- PropertiesIsLoaded
-
- Test if current properties associated with language
- is loaded or not.
-
- return:
- 1: SUCCESS
- 0: FAIL
- */
-
-int PropertiesLanguageStatus(PropertiesSet *propset, char *language)
-{
- LanguageStatus *plang;
-
- plang = propset->langlist;
- if (language == NULL || *language == '\0') {
- return plang->status;
- }
-
- plang = plang->next;
-
- while (plang) {
- if (strcmp(plang->language, language) == 0) {
- return plang->status;
- }
- plang = plang->next;
- }
- return LANGUAGE_NONE;
-}
-
-int PropertiesSetLangStatus(LanguageStatus *langlist, char *language, int status)
-{
- LanguageStatus *plang, *prev;
- LanguageStatus *langstatus;
-
- if (language == NULL || *language == '\0') {
- langlist->status = status;
- return 0;
- }
-
- prev = plang = langlist;
- plang = plang->next;
-
- while (plang) {
- if (strcmp(plang->language, language) == 0) {
- plang->status = status;
- return 0;
- }
- prev = plang;
- plang = plang->next;
- }
-
- langstatus = (LanguageStatus *) malloc(sizeof(LanguageStatus));
- memset (langstatus, 0, sizeof(LanguageStatus));
- langstatus->language = strdup(language);
- langstatus->status = status;
- prev->next = langstatus;
-
- return 0;
-}
-
-
-/***
- PropertiesOpenFile
-
- return 0: loaded
- 1: fail to load file associated with the language
-
-
- */
-int PropertiesOpenFile(PropertiesSet *propset, char *language)
-{
- int status;
- status = PropertiesLanguageStatus(propset, language);
-
- if (status == LANGUAGE_NONE)
- return PropertiesLoadFileToHash (propset, language);
- else if (status == LANGUAGE_INVALID)
- return 1;
- else
- return 0;
-}
-
-const char *PropertiesGetString(PropertiesSet *propset, char *key, ACCEPT_LANGUAGE_LIST acceptlangauge)
-{
- int i;
- char *language = NULL;
-
- i = 0;
- while (acceptlangauge[i][0]) {
- if (PropertiesOpenFile(propset, acceptlangauge[i]) == 0) {
- language = acceptlangauge[i];
- break;
- }
- i ++;
- }
-
- return ResHashSearch(propset->res, key, language);
-}
-void PropertiesDestroy(PropertiesSet *propset)
-{
- LanguageStatus *langattrib, *next;
-
- if (propset) {
- if (propset->path)
- free(propset->path);
- if (propset->directory)
- free(propset->directory);
- if (propset->filename)
- free(propset->filename);
-
- ResHashDestroy(propset->res);
-
- langattrib = propset->langlist;
- while (langattrib) {
- next = langattrib->next;
- if (langattrib->language)
- free(langattrib->language);
- free(langattrib);
- langattrib = next;
- }
- }
-}
-
-
-char *decode_ascii(char *src)
-{
- int i;
- char utf8[10];
- int state = 0;
- int digit = 0;
- int digit_count = 0;
- char *result, *p, *q;
-
- if (src == NULL || *src == '\0')
- return NULL;
-
- if (strchr(src, '\\') == NULL)
- return NULL;
-
- result = (char *) malloc(strlen(src) + 1);
-
- p = src;
- q = result;
-
- for (;*p; p++) {
- char ch;
- int n;
- if (state == BACKSLASH_U) {
- ch = toupper(*p);
- if (ch >= '0' && ch <= '9') {
- digit = digit * 16 + (ch - '0');
- digit_count ++;
- }
- else if (ch >= 'A' && ch <= 'F') {
- digit = digit * 16 + (ch - 'A' + 10);
- digit_count ++;
- }
- else {
- n = unicode_to_UTF8(digit, utf8);
- for (i = 0; i < n; i++)
- *q ++ = utf8[i];
- *q ++ = *p;
- state = 0;
- digit_count = 0;
- }
-
- if (digit_count == 4) {
- n = unicode_to_UTF8(digit, utf8);
- for (i = 0; i < n; i++)
- *q ++ = utf8[i];
- state = 0;
- }
- }
- else if (state == BACKSLASH) {
- if (*p == 'u') {
- state = BACKSLASH_U;
- digit = 0;
- digit_count = 0;
- continue;
- }
- else if (*p == 'n') {
- *q++ = '\n';
- state = 0;
- }
- else if (*p == 'r') {
- *q++ = '\r';
- state = 0;
- }
- else {
- *q++ = '\\';
- *q++ = *p;
- state = 0;
- }
- }
- else if (*p == '\\') {
- state = BACKSLASH;
- continue;
- }
- else {
- *q++ = *p;
- state = 0;
- }
- }
- *q = '\0';
- return result;
-}
-
-
-int unicode_to_UTF8(unsigned int wch, char *utf8)
-{
- unsigned char hibyte, lobyte, mibyte;
-
- if (wch <= 0x7F) {
- /* 0000 007F ==> 0xxxxxxx */
- utf8[0] = (unsigned char) wch ;
- utf8[1] = '\0';
- return 1;
- }
- else if (wch <= 0x7FF) {
- /* 0000 07FF ==> 110xxxxx 10xxxxxx */
- lobyte = wch & 0x3F;
- hibyte = (wch >> 6) & 0x1F;
-
- utf8[0] = 0xC0 | hibyte;
- utf8[1] = 0x80 | lobyte;
- utf8[2] = '\0';
- return 2;
- }
- else {
- /* FFFF ==> 1110xxxx 10xxxxxx 10xxxxxx */
- lobyte = wch & 0x3F;
- mibyte = (wch >> 6) & 0x3F;
- hibyte = (wch >> 12) & 0xF;
-
- utf8[0] = 0xE0 | hibyte;
- utf8[1] = 0x80 | mibyte;
- utf8[2] = 0x80 | lobyte;
- utf8[3] = '\0';
- return 3;
- }
-}
diff --git a/lib/libsi18n/propset.h b/lib/libsi18n/propset.h
deleted file mode 100644
index 8ef0df9..0000000
--- a/lib/libsi18n/propset.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- *
- * This Program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- *
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception.
- *
- *
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifndef PROPSET_H
-#define PROPSET_H
-
-#include "reshash.h"
-
-
-enum {
- LANGUAGE_NONE = 0,
- LANGUAGE_LOAD,
- LANGUAGE_INVALID
-} ;
-
-enum {
- BACKSLASH = 1,
- BACKSLASH_U
-};
-
-
-typedef struct LanguageStatusS {
- char *language;
- int status;
- struct LanguageStatusS *next;
-} LanguageStatus;
-
-typedef struct PropertiesSet {
- char *path;
- char *directory;
- char *filename;
- LanguageStatus *langlist;
- ResHash *res;
-} PropertiesSet;
-
-
-PropertiesSet * PropertiesInit(char *directory, char *file);
-const char *PropertiesGetString(PropertiesSet *propset, char *key, ACCEPT_LANGUAGE_LIST acceptlangauge);
-void PropertiesDestroy(PropertiesSet *propfile);
-
-#endif
commit 1ce1a045b77d2726ab1cb52a3e5ad943976d0fa8
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Wed Feb 24 15:12:05 2010 -0700
fix dso linking issues found by fedora 13 linking
https://bugzilla.redhat.com/show_bug.cgi?id=564876
Resolves: Bug 564876
Bug Description: FTBFS 389-ds-base-1.2.6-0.1.a1.fc13: ImplicitDSOLinking
There are several programs that use pthread but do not link against it
explicitly. We need to link against pthread explicitly.
Reviewed by: nhosoi (Thanks!)
diff --git a/Makefile.am b/Makefile.am
index 1774ccd..aef110f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -61,6 +61,7 @@ LIBNSL=@LIBNSL@
LIBDL=@LIBDL@
LIBCSTD=@LIBCSTD@
LIBCRUN=@LIBCRUN@
+THREADLIB=@THREADLIB@
#------------------------
# Generated Sources
@@ -1113,7 +1114,7 @@ ldap_agent_bin_SOURCES = ldap/servers/snmp/main.c \
ldap/servers/slapd/agtmmap.c
ldap_agent_bin_CPPFLAGS = $(AM_CPPFLAGS) @netsnmp_inc@ @openldap_inc@ @ldapsdk_inc@ @nss_inc@ @nspr_inc@
-ldap_agent_bin_LDADD = $(LDAPSDK_LINK) $(SASL_LINK) $(NSS_LINK) $(NSPR_LINK) $(NETSNMP_LINK)
+ldap_agent_bin_LDADD = $(LDAPSDK_LINK) $(SASL_LINK) $(NSS_LINK) $(NSPR_LINK) $(NETSNMP_LINK) $(THREADLIB)
if SOLARIS
ldap_agent_bin_LDADD += -lrt
endif
@@ -1140,7 +1141,7 @@ ldclt_bin_SOURCES += ldap/servers/slapd/tools/ldclt/opCheck.c
endif
ldclt_bin_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/ldap/servers/slapd/tools @openldap_inc@ @ldapsdk_inc@ @sasl_inc@ @nss_inc@ @nspr_inc@
-ldclt_bin_LDADD = $(NSPR_LINK) $(NSS_LINK) $(LDAPSDK_LINK) $(SASL_LINK) $(LIBNSL) $(LIBSOCKET) $(LIBDL)
+ldclt_bin_LDADD = $(NSPR_LINK) $(NSS_LINK) $(LDAPSDK_LINK) $(SASL_LINK) $(LIBNSL) $(LIBSOCKET) $(LIBDL) $(THREADLIB)
#------------------------
# ldif
@@ -1217,7 +1218,7 @@ ns_slapd_SOURCES = ldap/servers/slapd/abandon.c \
ns_slapd_CPPFLAGS = $(AM_CPPFLAGS) @sasl_inc@ @openldap_inc@ @ldapsdk_inc@ @nss_inc@ \
@nspr_inc@ @svrcore_inc@
ns_slapd_LDADD = libslapd.la libldaputil.a $(LDAPSDK_LINK) $(NSS_LINK) \
- $(NSPR_LINK) $(SASL_LINK) $(SVRCORE_LINK) $(LIBNSL) $(LIBSOCKET)
+ $(NSPR_LINK) $(SASL_LINK) $(SVRCORE_LINK) $(LIBNSL) $(LIBSOCKET) $(THREADLIB)
# We need to link ns-slapd with the C++ compiler on HP-UX since we load
# some C++ shared libraries (such as icu).
if HPUX
diff --git a/Makefile.in b/Makefile.in
index fe2d14b..8f6a585 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -669,7 +669,7 @@ ldap_agent_bin_OBJECTS = $(am_ldap_agent_bin_OBJECTS)
ldap_agent_bin_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
am__ldclt_bin_SOURCES_DIST = ldap/servers/slapd/tools/ldaptool-sasl.c \
ldap/servers/slapd/tools/ldclt/data.c \
ldap/servers/slapd/tools/ldclt/ldapfct.c \
@@ -702,7 +702,7 @@ ldclt_bin_OBJECTS = $(am_ldclt_bin_OBJECTS)
ldclt_bin_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
am_ldif_bin_OBJECTS = \
ldap/servers/slapd/tools/ldif_bin-ldif.$(OBJEXT)
ldif_bin_OBJECTS = $(am_ldif_bin_OBJECTS)
@@ -779,7 +779,7 @@ ns_slapd_DEPENDENCIES = libslapd.la libldaputil.a \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
am_pwdhash_bin_OBJECTS = \
ldap/servers/slapd/tools/pwdhash_bin-pwenc.$(OBJEXT)
pwdhash_bin_OBJECTS = $(am_pwdhash_bin_OBJECTS)
@@ -988,6 +988,7 @@ SHELL = @SHELL@
SOLARIS_FALSE = @SOLARIS_FALSE@
SOLARIS_TRUE = @SOLARIS_TRUE@
STRIP = @STRIP@
+THREADLIB = @THREADLIB@
VERSION = @VERSION@
WINNT_FALSE = @WINNT_FALSE@
WINNT_TRUE = @WINNT_TRUE@
@@ -2102,7 +2103,7 @@ ldap_agent_bin_SOURCES = ldap/servers/snmp/main.c \
ldap_agent_bin_CPPFLAGS = $(AM_CPPFLAGS) @netsnmp_inc@ @openldap_inc@ @ldapsdk_inc@ @nss_inc@ @nspr_inc@
ldap_agent_bin_LDADD = $(LDAPSDK_LINK) $(SASL_LINK) $(NSS_LINK) \
- $(NSPR_LINK) $(NETSNMP_LINK) $(am__append_2)
+ $(NSPR_LINK) $(NETSNMP_LINK) $(THREADLIB) $(am__append_2)
#------------------------
# ldclt
@@ -2120,7 +2121,7 @@ ldclt_bin_SOURCES = ldap/servers/slapd/tools/ldaptool-sasl.c \
ldap/servers/slapd/tools/ldclt/version.c \
ldap/servers/slapd/tools/ldclt/workarounds.c $(am__append_3)
ldclt_bin_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/ldap/servers/slapd/tools @openldap_inc@ @ldapsdk_inc@ @sasl_inc@ @nss_inc@ @nspr_inc@
-ldclt_bin_LDADD = $(NSPR_LINK) $(NSS_LINK) $(LDAPSDK_LINK) $(SASL_LINK) $(LIBNSL) $(LIBSOCKET) $(LIBDL)
+ldclt_bin_LDADD = $(NSPR_LINK) $(NSS_LINK) $(LDAPSDK_LINK) $(SASL_LINK) $(LIBNSL) $(LIBSOCKET) $(LIBDL) $(THREADLIB)
#------------------------
# ldif
@@ -2188,7 +2189,7 @@ ns_slapd_CPPFLAGS = $(AM_CPPFLAGS) @sasl_inc@ @openldap_inc@ @ldapsdk_inc@ @nss_
@nspr_inc@ @svrcore_inc@
ns_slapd_LDADD = libslapd.la libldaputil.a $(LDAPSDK_LINK) $(NSS_LINK) \
- $(NSPR_LINK) $(SASL_LINK) $(SVRCORE_LINK) $(LIBNSL) $(LIBSOCKET)
+ $(NSPR_LINK) $(SASL_LINK) $(SVRCORE_LINK) $(LIBNSL) $(LIBSOCKET) $(THREADLIB)
@HPUX_FALSE@ns_slapd_LINK = $(LINK)
# We need to link ns-slapd with the C++ compiler on HP-UX since we load
diff --git a/configure b/configure
index 4b6db2d..e3bab58 100755
--- a/configure
+++ b/configure
@@ -465,7 +465,7 @@ ac_includes_default="\
#endif"
ac_default_prefix=/opt/$PACKAGE_NAME
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS SED EGREP LN_S ECHO AR ac_ct_AR RANLIB a
c_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS debug_defs BUNDLE_TRUE BUNDLE_FALSE enable_pam_passthru_TRUE enable_pam_passthru_FALSE enable_dna_TRUE enable_dna_FALSE enable_ldapi_TRUE enable_ldapi_FALSE enable_autobind_TRUE enable_autobind_FALSE enable_auto_dn_suffix_TRUE enable_auto_dn_suffix_FALSE enable_bitwise_TRUE enable_bitwise_FALSE enable_presence_TRUE enable_presence_FALSE with_fhs_opt configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir perldir infdir mibdir updatedir defaultuser defaultgroup instconfigdir WINNT_TRUE WINNT_FALSE LIBSOCKET LIBNSL LIBDL LIBCSTD LIBCRUN initdir perlexec initconfigdir HPUX_TRUE HPUX_FALSE SOLARIS_TRUE SOLARIS_FALSE PKG_CONFIG ICU_CONFIG NETSNMP_CONFIG KRB5_CONFIG_BIN kerberos_inc kerberos_lib kerberos_libdir with_selinux PACKAGE_BASE_VERSION SELINUX_TRUE SELINUX_FALSE OPENLDAP_TRUE OPENLDAP_FALSE nspr_inc nspr_lib nspr_libdir nss_inc nss_lib nss_libdir ldapsdk_inc ldapsdk_lib ldapsdk_l
ibdir ldapsdk_bindir openldap_inc openldap_lib openldap_libdir openldap_bindir ol_libver db_inc db_incdir db_lib db_libdir db_bindir db_libver sasl_inc sasl_lib sasl_libdir sasl_path svrcore_inc svrcore_lib icu_lib icu_inc icu_bin netsnmp_inc netsnmp_lib netsnmp_libdir netsnmp_link pcre_inc pcre_lib pcre_libdir brand capbrand vendor LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS SED EGREP LN_S ECHO AR ac_ct_AR RANLIB a
c_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS debug_defs BUNDLE_TRUE BUNDLE_FALSE enable_pam_passthru_TRUE enable_pam_passthru_FALSE enable_dna_TRUE enable_dna_FALSE enable_ldapi_TRUE enable_ldapi_FALSE enable_autobind_TRUE enable_autobind_FALSE enable_auto_dn_suffix_TRUE enable_auto_dn_suffix_FALSE enable_bitwise_TRUE enable_bitwise_FALSE enable_presence_TRUE enable_presence_FALSE with_fhs_opt configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir perldir infdir mibdir updatedir defaultuser defaultgroup instconfigdir WINNT_TRUE WINNT_FALSE THREADLIB LIBSOCKET LIBNSL LIBDL LIBCSTD LIBCRUN initdir perlexec initconfigdir HPUX_TRUE HPUX_FALSE SOLARIS_TRUE SOLARIS_FALSE PKG_CONFIG ICU_CONFIG NETSNMP_CONFIG KRB5_CONFIG_BIN kerberos_inc kerberos_lib kerberos_libdir with_selinux PACKAGE_BASE_VERSION SELINUX_TRUE SELINUX_FALSE OPENLDAP_TRUE OPENLDAP_FALSE nspr_inc nspr_lib nspr_libdir nss_inc nss_lib nss_libdir ldapsdk_inc ldapsdk_lib
ldapsdk_libdir ldapsdk_bindir openldap_inc openldap_lib openldap_libdir openldap_bindir ol_libver db_inc db_incdir db_lib db_libdir db_bindir db_libver sasl_inc sasl_lib sasl_libdir sasl_path svrcore_inc svrcore_lib icu_lib icu_inc icu_bin netsnmp_inc netsnmp_lib netsnmp_libdir netsnmp_link pcre_inc pcre_lib pcre_libdir brand capbrand vendor LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
@@ -23662,6 +23662,10 @@ fi
;;
esac
+ # some programs use the native thread library directly
+ THREADLIB=-lpthread
+ THREADLIB=$THREADLIB
+
;;
ia64-hp-hpux*)
@@ -28190,6 +28194,7 @@ s,@defaultgroup@,$defaultgroup,;t t
s,@instconfigdir@,$instconfigdir,;t t
s,@WINNT_TRUE@,$WINNT_TRUE,;t t
s,@WINNT_FALSE@,$WINNT_FALSE,;t t
+s,@THREADLIB@,$THREADLIB,;t t
s,@LIBSOCKET@,$LIBSOCKET,;t t
s,@LIBNSL@,$LIBNSL,;t t
s,@LIBDL@,$LIBDL,;t t
diff --git a/configure.ac b/configure.ac
index 3d18c4a..f8ec729 100644
--- a/configure.ac
+++ b/configure.ac
@@ -347,6 +347,9 @@ case $host in
AC_CHECK_DECLS([__sync_add_and_fetch])
;;
esac
+ # some programs use the native thread library directly
+ THREADLIB=-lpthread
+ AC_SUBST([THREADLIB], [$THREADLIB])
;;
ia64-hp-hpux*)
AC_DEFINE([XP_UNIX], [1], [UNIX])
diff --git a/ltmain.sh b/ltmain.sh
old mode 100755
new mode 100644
14 years, 1 month
esc/win32 build.sh,1.11.2.9,1.11.2.10
by Jack Magne
Author: jmagne
Update of /cvs/dirsec/esc/win32
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19861
Modified Files:
Tag: PKI_8_0_RTM_BRANCH
build.sh
Log Message:
Point to changed fedoraproject cvs server name.
Index: build.sh
===================================================================
RCS file: /cvs/dirsec/esc/win32/build.sh,v
retrieving revision 1.11.2.9
retrieving revision 1.11.2.10
diff -u -r1.11.2.9 -r1.11.2.10
--- build.sh 22 Feb 2010 21:45:17 -0000 1.11.2.9
+++ build.sh 25 Feb 2010 02:05:25 -0000 1.11.2.10
@@ -70,7 +70,7 @@
#Fedora repo for CoolKey and ESC
-FEDORA_CVS_ROOT=:pserver:anonymous@cvs.fedora.redhat.com:/cvs/dirsec
+FEDORA_CVS_ROOT=:pserver:anonymous@cvs.fedoraproject.org:/cvs/dirsec
#Xulrunner values
14 years, 1 month
Branch 'Directory_Server_8_2_Branch' - ldap/servers
by Richard Allen Megginson
ldap/servers/slapd/valueset.c | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
New commits:
commit 0e888ff5f228fc7f5a05ba5061c57b6ba8f2ce16
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Wed Feb 24 09:48:36 2010 -0700
fix memory leak in attr replace when replacement fails
if replacement of the attribute values fails (e.g. due to duplicate values)
the valstoreplace is not freed - the caller expects the valueset_replace
function to own the values passed in. The function will now free the values
if there was an error
In addition, valueset_replace should not free the old values in case
of error - it should leave the old values in the attribute
Reviewed by: nhosoi (Thanks!)
(cherry picked from commit 43894ffddf76baa4824c93d702ad4712e82b5b4e)
diff --git a/ldap/servers/slapd/valueset.c b/ldap/servers/slapd/valueset.c
index 7334a7a..8aa33c5 100644
--- a/ldap/servers/slapd/valueset.c
+++ b/ldap/servers/slapd/valueset.c
@@ -1346,10 +1346,6 @@ valueset_replace(Slapi_Attr *a, Slapi_ValueSet *vs, Slapi_Value **valstoreplace)
{
int rc = LDAP_SUCCESS;
int numberofvalstoreplace= valuearray_count(valstoreplace);
- if(!valuearray_isempty(vs->va))
- {
- slapi_valueset_done(vs);
- }
/* verify the given values are not duplicated.
if replacing with one value, no need to check. just replace it.
*/
@@ -1369,8 +1365,21 @@ valueset_replace(Slapi_Attr *a, Slapi_ValueSet *vs, Slapi_Value **valstoreplace)
if ( rc == LDAP_SUCCESS )
{
+ /* values look good - replace the values in the attribute */
+ if(!valuearray_isempty(vs->va))
+ {
+ /* remove old values */
+ slapi_valueset_done(vs);
+ }
+ /* we now own valstoreplace */
vs->va = valstoreplace;
}
+ else
+ {
+ /* caller expects us to own valstoreplace - since we cannot
+ use them, just delete them */
+ valuearray_free(&valstoreplace);
+ }
return rc;
}
14 years, 1 month
ldap/servers
by Richard Allen Megginson
ldap/servers/slapd/valueset.c | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
New commits:
commit 43894ffddf76baa4824c93d702ad4712e82b5b4e
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Wed Feb 24 09:48:36 2010 -0700
fix memory leak in attr replace when replacement fails
if replacement of the attribute values fails (e.g. due to duplicate values)
the valstoreplace is not freed - the caller expects the valueset_replace
function to own the values passed in. The function will now free the values
if there was an error
In addition, valueset_replace should not free the old values in case
of error - it should leave the old values in the attribute
Reviewed by: nhosoi (Thanks!)
diff --git a/ldap/servers/slapd/valueset.c b/ldap/servers/slapd/valueset.c
index a9cd37e..d6909ac 100644
--- a/ldap/servers/slapd/valueset.c
+++ b/ldap/servers/slapd/valueset.c
@@ -1345,10 +1345,6 @@ valueset_replace(Slapi_Attr *a, Slapi_ValueSet *vs, Slapi_Value **valstoreplace)
{
int rc = LDAP_SUCCESS;
int numberofvalstoreplace= valuearray_count(valstoreplace);
- if(!valuearray_isempty(vs->va))
- {
- slapi_valueset_done(vs);
- }
/* verify the given values are not duplicated.
if replacing with one value, no need to check. just replace it.
*/
@@ -1368,8 +1364,21 @@ valueset_replace(Slapi_Attr *a, Slapi_ValueSet *vs, Slapi_Value **valstoreplace)
if ( rc == LDAP_SUCCESS )
{
+ /* values look good - replace the values in the attribute */
+ if(!valuearray_isempty(vs->va))
+ {
+ /* remove old values */
+ slapi_valueset_done(vs);
+ }
+ /* we now own valstoreplace */
vs->va = valstoreplace;
}
+ else
+ {
+ /* caller expects us to own valstoreplace - since we cannot
+ use them, just delete them */
+ valuearray_free(&valstoreplace);
+ }
return rc;
}
14 years, 1 month
ldap/servers
by Richard Allen Megginson
ldap/servers/plugins/syntaxes/bin.c | 52 +++++++++++++++++---------
ldap/servers/plugins/syntaxes/numericstring.c | 2 -
ldap/servers/slapd/match.c | 2 -
ldap/servers/slapd/plugin_mr.c | 11 +++++
4 files changed, 47 insertions(+), 20 deletions(-)
New commits:
commit c0fd0171fed64b026bc80bad872b6641a0c4d86f
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Mon Feb 22 13:59:01 2010 -0700
crash looking up compat syntax; numeric string syntax using integer; make octet string ordering work correctly
https://bugzilla.redhat.com/show_bug.cgi?id=559315
Resolves: bug 559315
Bug Description: Searching some attributes are now case sensitive when they were previously case-insensitive
Reviewed by: nhosoi (Thanks!)
Branch: HEAD
Fix Description: slapi_matchingrule_is_compat() was not checking for NULL; the matching rule syntax plugin was registering with the INTEGER syntax oid; the bin_filter_ava() function needs to be ordering aware to implement the octetStringOrderingMatch; in default_mr_filter_create(), make sure the requested matching rule is provided by the given plugin
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
diff --git a/ldap/servers/plugins/syntaxes/bin.c b/ldap/servers/plugins/syntaxes/bin.c
index b1b4659..3d2d88a 100644
--- a/ldap/servers/plugins/syntaxes/bin.c
+++ b/ldap/servers/plugins/syntaxes/bin.c
@@ -249,26 +249,44 @@ static int
bin_filter_ava( Slapi_PBlock *pb, struct berval *bvfilter,
Slapi_Value **bvals, int ftype, Slapi_Value **retVal )
{
- int i;
+ int i;
- for ( i = 0; bvals[i] != NULL; i++ ) {
+ for ( i = 0; bvals[i] != NULL; i++ ) {
const struct berval *bv = slapi_value_get_berval(bvals[i]);
-
- if ( ( bv->bv_len == bvfilter->bv_len ) &&
- ( 0 == memcmp( bv->bv_val, bvfilter->bv_val, bvfilter->bv_len ) ) )
- {
- if(retVal!=NULL)
- {
- *retVal= bvals[i];
- }
- return( 0 );
+ int rc = slapi_berval_cmp(bv, bvfilter);
+
+ switch ( ftype ) {
+ case LDAP_FILTER_GE:
+ if ( rc >= 0 ) {
+ if(retVal) {
+ *retVal = bvals[i];
+ }
+ return( 0 );
+ }
+ break;
+ case LDAP_FILTER_LE:
+ if ( rc <= 0 ) {
+ if(retVal) {
+ *retVal = bvals[i];
+ }
+ return( 0 );
+ }
+ break;
+ case LDAP_FILTER_EQUALITY:
+ if ( rc == 0 ) {
+ if(retVal) {
+ *retVal = bvals[i];
+ }
+ return( 0 );
+ }
+ break;
}
- }
- if(retVal!=NULL)
- {
- *retVal= NULL;
- }
- return( -1 );
+ }
+ if(retVal!=NULL)
+ {
+ *retVal= NULL;
+ }
+ return( -1 );
}
static int
diff --git a/ldap/servers/plugins/syntaxes/numericstring.c b/ldap/servers/plugins/syntaxes/numericstring.c
index d1bf475..0cb4876 100644
--- a/ldap/servers/plugins/syntaxes/numericstring.c
+++ b/ldap/servers/plugins/syntaxes/numericstring.c
@@ -148,7 +148,7 @@ numstr_init( Slapi_PBlock *pb )
rc |= slapi_pblock_set( pb, SLAPI_PLUGIN_SYNTAX_NAMES,
(void *) names );
rc |= slapi_pblock_set( pb, SLAPI_PLUGIN_SYNTAX_OID,
- (void *) INTEGER_SYNTAX_OID );
+ (void *) NUMERICSTRING_SYNTAX_OID );
rc |= slapi_pblock_set( pb, SLAPI_PLUGIN_SYNTAX_COMPARE,
(void *) numstr_compare );
rc |= slapi_pblock_set( pb, SLAPI_PLUGIN_SYNTAX_VALIDATE,
diff --git a/ldap/servers/slapd/match.c b/ldap/servers/slapd/match.c
index 241b182..91fa0a8 100644
--- a/ldap/servers/slapd/match.c
+++ b/ldap/servers/slapd/match.c
@@ -322,7 +322,7 @@ int slapi_matchingrule_is_compat(const char *mr_oid_or_name, const char *syntax_
return 1;
}
for (mr_syntax = mrl->mr_entry->mr_compat_syntax;
- mr_syntax;
+ mr_syntax && *mr_syntax;
mr_syntax++) {
if (!strcmp(*mr_syntax, syntax_oid)) {
return 1;
diff --git a/ldap/servers/slapd/plugin_mr.c b/ldap/servers/slapd/plugin_mr.c
index 194f8ae..7590f26 100644
--- a/ldap/servers/slapd/plugin_mr.c
+++ b/ldap/servers/slapd/plugin_mr.c
@@ -170,7 +170,7 @@ plugin_mr_bind (char* oid, struct slapdplugin* plugin)
PR_Lock (global_mr_oids_lock);
i->oi_next = global_mr_oids;
global_mr_oids = i;
- PR_Unlock (global_mr_oids_lock);
+ PR_Unlock (global_mr_oids_lock);
LDAPDebug (LDAP_DEBUG_FILTER, "<= plugin_mr_bind\n", 0, 0, 0);
}
@@ -449,6 +449,15 @@ default_mr_filter_create(Slapi_PBlock *pb)
LDAPDebug2Args(LDAP_DEBUG_FILTER, "=> default_mr_filter_create(oid %s; type %s)\n",
mrOID, mrTYPE);
+ /* check to make sure this create function is supposed to be used with the
+ given oid */
+ if (!charray_inlist(pi->plg_mr_names, mrOID)) {
+ LDAPDebug2Args(LDAP_DEBUG_FILTER,
+ "=> default_mr_filter_create: cannot use matching rule %s with plugin %s\n",
+ mrOID, pi->plg_name);
+ goto done;
+ }
+
ftype = plugin_mr_get_type(pi);
/* map the ftype to the op type */
if (ftype == LDAP_FILTER_GE) {
14 years, 1 month
esc/win32 setup.iss, 1.15, 1.15.2.1 build.sh, 1.11.2.8, 1.11.2.9
by Jack Magne
Author: jmagne
Update of /cvs/dirsec/esc/win32
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv635
Modified Files:
Tag: PKI_8_0_RTM_BRANCH
setup.iss build.sh
Log Message:
Bump versions.
Index: setup.iss
===================================================================
RCS file: /cvs/dirsec/esc/win32/setup.iss,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -r1.15 -r1.15.2.1
--- setup.iss 24 Jun 2009 23:24:18 -0000 1.15
+++ setup.iss 22 Feb 2010 21:45:17 -0000 1.15.2.1
@@ -4,17 +4,17 @@
[Setup]
AppName=Smart Card Manager
AppMutex=ESCMutex
-AppVerName=Smart Card Manager 1.1.0-8
-AppPublisher=Fedora
+AppVerName=Smart Card Manager 1.1.0-10
+AppPublisher=Red Hat, Inc.
CreateAppDir=true
Compression=lzma
SolidCompression=true
MinVersion=0,5.0.2195
ShowLanguageDialog=yes
-OutputBaseFilename=SmartCardManagerSetup-1.1.0-8.win32.i386
-DefaultDirName={pf}\Fedora\ESC
+OutputBaseFilename=SmartCardManagerSetup-1.1.0-10.win32.i386
+DefaultDirName={pf}\Red Hat\ESC
DisableProgramGroupPage=false
-DefaultGroupName=Fedora
+DefaultGroupName=Red Hat
SetupIconFile=BUILD\ESC\components\esc.ico
UninstallDisplayIcon={app}\components\esc.ico
WizardImageFile=BUILD\ESC\chrome\content\esc\esc-image-large.bmp
@@ -24,7 +24,7 @@
InfoBeforeFile=info-before.txt
InfoAfterFile=info-after.txt
PrivilegesRequired=admin
-VersionInfoVersion=1.1.0.8
+VersionInfoVersion=1.1.0.10
[Files]
Index: build.sh
===================================================================
RCS file: /cvs/dirsec/esc/win32/build.sh,v
retrieving revision 1.11.2.8
retrieving revision 1.11.2.9
diff -u -r1.11.2.8 -r1.11.2.9
--- build.sh 21 Nov 2009 01:28:35 -0000 1.11.2.8
+++ build.sh 22 Feb 2010 21:45:17 -0000 1.11.2.9
@@ -85,7 +85,7 @@
#ESC values
ESC_NAME=esc
-ESC_VERSION_NO=1.1.0-9
+ESC_VERSION_NO=1.1.0-10
ESC_TAG=PKI_8_0_RTM_BRANCH
14 years, 1 month