From fedora-directory-commits at redhat.com Mon Dec 3 18:16:35 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Mon, 3 Dec 2007 13:16:35 -0500
Subject: [Fedora-directory-commits]
ldapserver/ldap/servers/slapd log.c, 1.20, 1.21
Message-ID: <200712031816.lB3IGZGp026486@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26331
Modified Files:
log.c
Log Message:
Resolves: #403351
Summary: LongDuration: Error log Rotation test suite causes slapd hang
Problem description: LDAPDebug eventually calls slapd_log_error_proc_internal,
which obtains the lock. If any functions called in the lock tries to log into
the errors log, it tries to get the same lock and it hangs there since the
underlying PR_Lock is not reentrant.
Fix description: log__enough_freespace and log__delete_error_logfile could be
called indirectly from slapd_log_error_proc_internal. Instead of LDAPDebug,
changed these functions to call log__error_emergency when necessary.
Index: log.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/log.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- log.c 23 Oct 2007 16:13:58 -0000 1.20
+++ log.c 3 Dec 2007 18:16:32 -0000 1.21
@@ -116,7 +116,7 @@
static int log__open_auditlogfile(int logfile_type, int locked);
static int log__needrotation(LOGFD fp, int logtype);
static int log__delete_access_logfile();
-static int log__delete_error_logfile();
+static int log__delete_error_logfile(int locked);
static int log__delete_audit_logfile();
static int log__access_rotationinfof(char *pathname);
static int log__error_rotationinfof(char *pathname);
@@ -2926,10 +2926,14 @@
if (statvfs(path, &buf) == -1)
#endif
{
- int oserr = errno;
- LDAPDebug(LDAP_DEBUG_ANY,
- "log__enough_freespace: Unable to get the free space (errno:%d)\n",
- oserr,0,0);
+ char buffer[BUFSIZ];
+ PR_snprintf(buffer, sizeof(buffer),
+ "log__enough_freespace: Unable to get the free space (errno:%d)\n",
+ errno);
+ /* This function could be called in the ERROR WRITE LOCK,
+ * which causes the self deadlock if you call LDAPDebug for logging.
+ * Thus, instead of LDAPDebug, call log__error_emergency with locked == 1. */
+ log__error_emergency(buffer, 0, 1);
return 1;
} else {
LL_UI2L(freeBytes, buf.f_bavail);
@@ -3024,7 +3028,7 @@
******************************************************************************/
static int
-log__delete_error_logfile()
+log__delete_error_logfile(int locked)
{
struct logfileinfo *logp = NULL;
@@ -3044,18 +3048,27 @@
/* If we have only one log, then will delete this one */
if (loginfo.log_error_maxnumlogs == 1) {
LOG_CLOSE(loginfo.log_error_fdes);
- loginfo.log_error_fdes = NULL;
+ loginfo.log_error_fdes = NULL;
PR_snprintf (buffer, sizeof(buffer), "%s", loginfo.log_error_file);
if (PR_Delete(buffer) != PR_SUCCESS) {
- LDAPDebug(LDAP_DEBUG_TRACE,
- "LOGINFO:Unable to remove file:%s\n", loginfo.log_error_file,0,0);
+ if (!locked) {
+ /* if locked, we should not call LDAPDebug,
+ which tries to get a lock internally. */
+ LDAPDebug(LDAP_DEBUG_TRACE,
+ "LOGINFO:Unable to remove file:%s\n", loginfo.log_error_file,0,0);
+ }
}
/* Delete the rotation file also. */
PR_snprintf (buffer, sizeof(buffer), "%s.rotationinfo", loginfo.log_error_file);
if (PR_Delete(buffer) != PR_SUCCESS) {
- LDAPDebug(LDAP_DEBUG_TRACE,
- "LOGINFO:Unable to remove file:%s.rotationinfo\n", loginfo.log_error_file,0,0);
+ if (!locked) {
+ /* if locked, we should not call LDAPDebug,
+ which tries to get a lock internally. */
+ LDAPDebug(LDAP_DEBUG_TRACE,
+ "LOGINFO:Unable to remove file:%s.rotationinfo\n",
+ loginfo.log_error_file,0,0);
+ }
}
return 0;
}
@@ -3084,7 +3097,7 @@
}
/* If we have exceeded the max disk space or we have less than the
- ** minimum, then we have to delete a file.
+ ** minimum, then we have to delete a file.
*/
if (total_size >= loginfo.log_error_maxdiskspace) {
logstr = "exceeded maximum log disk space";
@@ -3145,10 +3158,14 @@
return 0;
}
}
- LDAPDebug(LDAP_DEBUG_TRACE,
+ if (!locked) {
+ /* if locked, we should not call LDAPDebug,
+ which tries to get a lock internally. */
+ LDAPDebug(LDAP_DEBUG_TRACE,
"LOGINFO:Removing file:%s.%s because of (%s)\n",
loginfo.log_error_file, tbuf,
logstr);
+ }
if (p_delete_logp == delete_logp) {
/* then we are deleteing the first one */
@@ -3161,8 +3178,12 @@
log_convert_time (delete_logp->l_ctime, tbuf, 1 /*short */);
PR_snprintf (buffer, sizeof(buffer), "%s.%s", loginfo.log_error_file, tbuf);
if (PR_Delete(buffer) != PR_SUCCESS) {
- LDAPDebug(LDAP_DEBUG_ANY, "LOGINFO:Unable to remove file:%s.%s\n",
- loginfo.log_audit_file, tbuf,0);
+ /* This function could be called in the ERROR WRITE LOCK,
+ * which causes the self deadlock if you call LDAPDebug for logging.
+ * Thus, instead of LDAPDebug, call log__error_emergency with locked == 1. */
+ PR_snprintf(buffer, sizeof(buffer), "LOGINFO:Unable to remove file:%s.%s\n",
+ loginfo.log_audit_file, tbuf);
+ log__error_emergency(buffer, 0, locked);
}
slapi_ch_free((void**)&delete_logp);
loginfo.log_numof_error_logs--;
@@ -3580,7 +3601,7 @@
/* Check if I have to delete any old file, delete it if it is required.*/
- while (log__delete_error_logfile());
+ while (log__delete_error_logfile(1));
/* close the file */
if ( loginfo.log_error_fdes != NULL ) {
From fedora-directory-commits at redhat.com Tue Dec 4 00:50:22 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Mon, 3 Dec 2007 19:50:22 -0500
Subject: [Fedora-directory-commits] ldapserver/ldap/servers/slapd/back-ldbm
ldbm_config.h, 1.6, 1.7 ldbm_instance_config.c, 1.9,
1.10 ldbm_config.c, 1.13, 1.14 dblayer.c, 1.25, 1.26 start.c,
1.7, 1.8
Message-ID: <200712040050.lB40oMUD029646@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29527
Modified Files:
ldbm_config.h ldbm_instance_config.c ldbm_config.c dblayer.c
start.c
Log Message:
Resolves: #231093
Summary: db2bak: crash bug (comment #8, 11)
Description:
Set the strong requirement: nsslapd-directory must have some value.
to guarantee it:
1) checking errors from ldbm_config_directory_set. If the check fails, don't
start the server.
2) if nsslapd-directory does not exist or the value is empty in dse.ldif,
issuing an error message and returning the error code.
3) since it was difficult to distinguish the nsslapd-directory empty value from
the initial default value, introduced CONFIG_FLAG_SKIP_DEFAULT_SETTING flag to
tell the backend config code to skip setting the default value
Index: ldbm_config.h
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/ldbm_config.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ldbm_config.h 10 Nov 2006 23:45:39 -0000 1.6
+++ ldbm_config.h 4 Dec 2007 00:50:19 -0000 1.7
@@ -72,6 +72,7 @@
#define CONFIG_FLAG_PREVIOUSLY_SET 1
#define CONFIG_FLAG_ALWAYS_SHOW 2
#define CONFIG_FLAG_ALLOW_RUNNING_CHANGE 4
+#define CONFIG_FLAG_SKIP_DEFAULT_SETTING 8
struct config_info {
char *config_name;
Index: ldbm_instance_config.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ldbm_instance_config.c 14 Nov 2007 15:04:51 -0000 1.9
+++ ldbm_instance_config.c 4 Dec 2007 00:50:19 -0000 1.10
@@ -480,8 +480,12 @@
0, 0, 0);
return 1;
}
- parse_ldbm_instance_config_entry(inst, entries[0],
- ldbm_instance_config);
+ if (0 != parse_ldbm_instance_config_entry(inst, entries[0],
+ ldbm_instance_config)) {
+ LDAPDebug(LDAP_DEBUG_ANY, "Error parsing the config DSE\n",
+ 0, 0, 0);
+ return 1;
+ }
}
if (search_pb)
Index: ldbm_config.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/ldbm_config.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ldbm_config.c 28 Nov 2007 19:03:42 -0000 1.13
+++ ldbm_config.c 4 Dec 2007 00:50:19 -0000 1.14
@@ -243,75 +243,86 @@
strdup'ed in rel2abspath */
LDAPDebug(LDAP_DEBUG_ANY, "New db directory location will not take affect until the server is restarted\n", 0, 0, 0);
} else {
- if (!strcmp(val, "get default")) {
- /* We use this funky "get default" string for the caller to
- * tell us that it has no idea what the db directory should
- * be. This code figures it out be reading "cn=config,cn=ldbm
- * database,cn=plugins,cn=config" entry. */
- Slapi_PBlock *search_pb;
- Slapi_Entry **entries = NULL;
- Slapi_Attr *attr = NULL;
- Slapi_Value *v = NULL;
- const char *s = NULL;
- int res;
-
- search_pb = slapi_pblock_new();
- slapi_search_internal_set_pb(search_pb, CONFIG_LDBM_DN,
- LDAP_SCOPE_BASE, "objectclass=*", NULL, 0, NULL, NULL,
- li->li_identity, 0);
- slapi_search_internal_pb(search_pb);
- slapi_pblock_get(search_pb, SLAPI_PLUGIN_INTOP_RESULT, &res);
-
- if (res != LDAP_SUCCESS) {
- LDAPDebug(LDAP_DEBUG_ANY,
- "ERROR: ldbm plugin unable to read %s\n",
- CONFIG_LDBM_DN, 0, 0);
- goto done;
- }
-
- slapi_pblock_get(search_pb, SLAPI_PLUGIN_INTOP_SEARCH_ENTRIES, &entries);
- if (NULL == entries) {
- LDAPDebug(LDAP_DEBUG_ANY,
- "ERROR: ldbm plugin unable to read %s\n",
- CONFIG_LDBM_DN, 0, 0);
- res = LDAP_OPERATIONS_ERROR;
- goto done;
- }
-
- res = slapi_entry_attr_find(entries[0], "nsslapd-directory", &attr);
- if (res != 0 || attr == NULL) {
- LDAPDebug(LDAP_DEBUG_ANY,
- "ERROR: ldbm plugin unable to read attribute nsslapd-directory from %s\n",
- CONFIG_LDBM_DN, 0, 0);
- res = LDAP_OPERATIONS_ERROR;
- goto done;
- }
-
- if ( slapi_attr_first_value(attr,&v) != 0
- || ( NULL == v )
- || ( NULL == ( s = slapi_value_get_string( v )))) {
- LDAPDebug(LDAP_DEBUG_ANY,
- "ERROR: ldbm plugin unable to read attribute nsslapd-directory from %s\n",
- CONFIG_LDBM_DN, 0, 0);
- res = LDAP_OPERATIONS_ERROR;
- goto done;
- }
-
-done:
- slapi_pblock_destroy(search_pb);
- if (res != LDAP_SUCCESS) {
- return res;
- }
- PR_snprintf(tmpbuf, BUFSIZ, "%s", s);
- val = tmpbuf;
- }
slapi_ch_free((void **) &(li->li_new_directory));
slapi_ch_free((void **) &(li->li_directory));
- li->li_new_directory = rel2abspath(val); /* normalize the path;
- strdup'ed in rel2abspath */
- li->li_directory = rel2abspath(val); /* ditto */
+ if (NULL == val || '\0' == *val) {
+ LDAPDebug(LDAP_DEBUG_ANY,
+ "ERROR: db directory is not set; check %s in the db config: %s\n",
+ CONFIG_DIRECTORY, CONFIG_LDBM_DN, 0);
+ retval = LDAP_PARAM_ERROR;
+ } else {
+ if (0 == strcmp(val, "get default")) {
+ /* We use this funky "get default" string for the caller to
+ * tell us that it has no idea what the db directory should
+ * be. This code figures it out be reading "cn=config,cn=ldbm
+ * database,cn=plugins,cn=config" entry. */
+ Slapi_PBlock *search_pb;
+ Slapi_Entry **entries = NULL;
+ Slapi_Attr *attr = NULL;
+ Slapi_Value *v = NULL;
+ const char *s = NULL;
+ int res;
+
+ search_pb = slapi_pblock_new();
+ slapi_search_internal_set_pb(search_pb, CONFIG_LDBM_DN,
+ LDAP_SCOPE_BASE, "objectclass=*", NULL, 0, NULL, NULL,
+ li->li_identity, 0);
+ slapi_search_internal_pb(search_pb);
+ slapi_pblock_get(search_pb, SLAPI_PLUGIN_INTOP_RESULT, &res);
+
+ if (res != LDAP_SUCCESS) {
+ LDAPDebug(LDAP_DEBUG_ANY,
+ "ERROR: ldbm plugin unable to read %s\n",
+ CONFIG_LDBM_DN, 0, 0);
+ retval = res;
+ goto done;
+ }
+
+ slapi_pblock_get(search_pb, SLAPI_PLUGIN_INTOP_SEARCH_ENTRIES, &entries);
+ if (NULL == entries) {
+ LDAPDebug(LDAP_DEBUG_ANY,
+ "ERROR: ldbm plugin unable to read %s\n",
+ CONFIG_LDBM_DN, 0, 0);
+ retval = LDAP_OPERATIONS_ERROR;
+ goto done;
+ }
+
+ res = slapi_entry_attr_find(entries[0], "nsslapd-directory", &attr);
+ if (res != 0 || attr == NULL) {
+ LDAPDebug(LDAP_DEBUG_ANY,
+ "ERROR: ldbm plugin unable to read attribute nsslapd-directory from %s\n",
+ CONFIG_LDBM_DN, 0, 0);
+ retval = LDAP_OPERATIONS_ERROR;
+ goto done;
+ }
+
+ if ( slapi_attr_first_value(attr,&v) != 0
+ || ( NULL == v )
+ || ( NULL == ( s = slapi_value_get_string( v )))) {
+ LDAPDebug(LDAP_DEBUG_ANY,
+ "ERROR: ldbm plugin unable to read attribute nsslapd-directory from %s\n",
+ CONFIG_LDBM_DN, 0, 0);
+ retval = LDAP_OPERATIONS_ERROR;
+ goto done;
+ }
+ slapi_pblock_destroy(search_pb);
+ if (NULL == s || '\0' == s || 0 == PL_strcmp(s, "(null)")) {
+ LDAPDebug(LDAP_DEBUG_ANY,
+ "ERROR: db directory is not set; check %s in the db config: %s\n",
+ CONFIG_DIRECTORY, CONFIG_LDBM_DN, 0);
+ retval = LDAP_PARAM_ERROR;
+ goto done;
+ }
+ PR_snprintf(tmpbuf, BUFSIZ, "%s", s);
+ val = tmpbuf;
+ }
+ li->li_new_directory = rel2abspath(val); /* normalize the path;
+ strdup'ed in
+ rel2abspath */
+ li->li_directory = rel2abspath(val); /* ditto */
+ }
}
-
+done:
return retval;
}
@@ -1193,7 +1204,7 @@
{CONFIG_LOOKTHROUGHLIMIT, CONFIG_TYPE_INT, "5000", &ldbm_config_lookthroughlimit_get, &ldbm_config_lookthroughlimit_set, CONFIG_FLAG_ALWAYS_SHOW|CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
{CONFIG_MODE, CONFIG_TYPE_INT_OCTAL, "0600", &ldbm_config_mode_get, &ldbm_config_mode_set, CONFIG_FLAG_ALWAYS_SHOW|CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
{CONFIG_IDLISTSCANLIMIT, CONFIG_TYPE_INT, "4000", &ldbm_config_allidsthreshold_get, &ldbm_config_allidsthreshold_set, CONFIG_FLAG_ALWAYS_SHOW},
- {CONFIG_DIRECTORY, CONFIG_TYPE_STRING, "", &ldbm_config_directory_get, &ldbm_config_directory_set, CONFIG_FLAG_ALWAYS_SHOW|CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
+ {CONFIG_DIRECTORY, CONFIG_TYPE_STRING, "", &ldbm_config_directory_get, &ldbm_config_directory_set, CONFIG_FLAG_ALWAYS_SHOW|CONFIG_FLAG_ALLOW_RUNNING_CHANGE|CONFIG_FLAG_SKIP_DEFAULT_SETTING},
{CONFIG_DBCACHESIZE, CONFIG_TYPE_SIZE_T, "10000000", &ldbm_config_dbcachesize_get, &ldbm_config_dbcachesize_set, CONFIG_FLAG_ALWAYS_SHOW|CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
{CONFIG_DBNCACHE, CONFIG_TYPE_INT, "0", &ldbm_config_dbncache_get, &ldbm_config_dbncache_set, CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
{CONFIG_MAXPASSBEFOREMERGE, CONFIG_TYPE_INT, "100", &ldbm_config_maxpassbeforemerge_get, &ldbm_config_maxpassbeforemerge_set, 0},
@@ -1319,7 +1330,11 @@
0, 0, 0);
return 1;
}
- parse_ldbm_config_entry(li, entries[0], ldbm_config);
+ if (0 != parse_ldbm_config_entry(li, entries[0], ldbm_config)) {
+ LDAPDebug(LDAP_DEBUG_ANY, "Error parsing the ldbm config DSE\n",
+ 0, 0, 0);
+ return 1;
+ }
}
if (search_pb) {
@@ -1520,6 +1535,9 @@
/* If the config phase is initialization or if bval is NULL, we will use
* the default value for the attribute. */
if (CONFIG_PHASE_INITIALIZATION == phase || NULL == bval) {
+ if (CONFIG_FLAG_SKIP_DEFAULT_SETTING & config->config_flags) {
+ return LDAP_SUCCESS; /* Skipping the default config setting */
+ }
use_default = 1;
} else {
use_default = 0;
Index: dblayer.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/dblayer.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- dblayer.c 18 Oct 2007 00:08:34 -0000 1.25
+++ dblayer.c 4 Dec 2007 00:50:19 -0000 1.26
@@ -1409,6 +1409,11 @@
/* DBDB we should pick these up in our config routine, and do away with
* the li_ one */
+ if (NULL == li->li_directory || '\0' == *li->li_directory) {
+ LDAPDebug(LDAP_DEBUG_ANY,
+ "Error: DB directory is not specified.\n", 0, 0, 0);
+ return -1;
+ }
PR_Lock(li->li_config_mutex);
priv->dblayer_home_directory = li->li_directory; /* nsslapd-directory */
priv->dblayer_cachesize = li->li_dbcachesize;
Index: start.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/start.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- start.c 15 Mar 2007 21:34:32 -0000 1.7
+++ start.c 4 Dec 2007 00:50:19 -0000 1.8
@@ -63,7 +63,11 @@
slapi_pblock_get( pb, SLAPI_PLUGIN_PRIVATE, &li );
/* parse the config file here */
- ldbm_config_load_dse_info(li);
+ if (0 != ldbm_config_load_dse_info(li)) {
+ LDAPDebug( LDAP_DEBUG_ANY, "start: Loading database configuration failed\n",
+ 0, 0, 0 );
+ return SLAPI_FAIL_GENERAL;
+ }
/* register with the binder-based resource limit subsystem so that */
/* lookthroughlimit can be supported on a per-connection basis. */
@@ -77,7 +81,7 @@
/* If the db directory hasn't been set yet, we need to set it to
* the default. */
- if ('\0' == li->li_directory[0]) {
+ if (NULL == li->li_directory || '\0' == li->li_directory[0]) {
/* "get default" is a special string that tells the config
* routines to figure out the default db directory by
* reading cn=config. */
From fedora-directory-commits at redhat.com Tue Dec 4 17:53:05 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Tue, 4 Dec 2007 12:53:05 -0500
Subject: [Fedora-directory-commits] ldapserver/ldap/servers/slapd/back-ldbm
archive.c, 1.14, 1.15
Message-ID: <200712041753.lB4Hr51g023209@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22611
Modified Files:
archive.c
Log Message:
Resolves: #174776
Summary: Multiple restores from a non-existant directory could wipe out database
Description: The given archive path was not normalized. Due to the trailing
slash '/', comparing with the db dir failed and wiped out the db dirs.
Applying the path normalization to the archive path.
Index: archive.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/archive.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- archive.c 8 Oct 2007 18:45:00 -0000 1.14
+++ archive.c 4 Dec 2007 17:52:56 -0000 1.15
@@ -47,7 +47,8 @@
int ldbm_back_archive2ldbm( Slapi_PBlock *pb )
{
struct ldbminfo *li;
- char *directory = NULL; /* -a */
+ char *rawdirectory = NULL; /* -a */
+ char *directory = NULL; /* normalized */
char *backendname = NULL;
int return_value = -1;
int task_flags = 0;
@@ -56,18 +57,20 @@
int is_old_to_new = 0;
slapi_pblock_get( pb, SLAPI_PLUGIN_PRIVATE, &li );
- slapi_pblock_get( pb, SLAPI_SEQ_VAL, &directory );
+ slapi_pblock_get( pb, SLAPI_SEQ_VAL, &rawdirectory );
slapi_pblock_get( pb, SLAPI_BACKEND_INSTANCE_NAME, &backendname);
slapi_pblock_get( pb, SLAPI_BACKEND_TASK, &task );
slapi_pblock_get( pb, SLAPI_TASK_FLAGS, &task_flags );
li->li_flags = run_from_cmdline = (task_flags & TASK_RUNNING_FROM_COMMANDLINE);
- if ( !directory || !*directory ) {
+ if ( !rawdirectory || !*rawdirectory ) {
LDAPDebug( LDAP_DEBUG_ANY, "archive2db: no archive name\n",
0, 0, 0 );
return( -1 );
}
+ directory = rel2abspath(rawdirectory);
+
/* check the current idl format vs backup DB version */
if (idl_get_idl_new())
{
@@ -251,6 +254,7 @@
}
}
out:
+ slapi_ch_free_string(&directory);
return return_value;
}
From fedora-directory-commits at redhat.com Wed Dec 5 19:54:25 2007
From: fedora-directory-commits at redhat.com (Richard Allen Megginson (rmeggins))
Date: Wed, 5 Dec 2007 14:54:25 -0500
Subject: [Fedora-directory-commits]
admservconsole/src/com/netscape/management/admserv
AdminFrameworkInitializer.java, 1.1.1.1, 1.2
Message-ID: <200712051954.lB5JsPvZ004597@cvs-int.fedora.redhat.com>
Author: rmeggins
Update of /cvs/dirsec/admservconsole/src/com/netscape/management/admserv
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4566/admservconsole/src/com/netscape/management/admserv
Modified Files:
AdminFrameworkInitializer.java
Log Message:
Resolves: bug 400361
Bug Description: Console: can't perform admin tasks after changing password
Reviewed by: nhosoi (Thanks!)
Fix Description: Each task uses a different ConsoleInfo object. There was already a hack/hook in AdminFrameworkInitializer to override the getAdminURL in each one of the task console info objects. We also need to override setAuthenticationPassword and getAuthenticationPassword so that if the task updates the password, the main console info uses that change, and vice versa. I also added a couple of debug items.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
Index: AdminFrameworkInitializer.java
===================================================================
RCS file: /cvs/dirsec/admservconsole/src/com/netscape/management/admserv/AdminFrameworkInitializer.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- AdminFrameworkInitializer.java 22 May 2006 18:14:32 -0000 1.1.1.1
+++ AdminFrameworkInitializer.java 5 Dec 2007 19:54:22 -0000 1.2
@@ -109,6 +109,19 @@
public String getAdminURL() {
return serverNodeConsoleInfo.getAdminURL();
}
+ /* We have to make sure we use the same password throughout
+ * for the main console and for the tasks - if we do not do
+ * this and we change the password, the tasks will use the
+ * wrong password. This way, if we change the password from
+ * either the Configure task, or from the Configuration tab,
+ * we will use the same password throughout.
+ */
+ public void setAuthenticationPassword(String password) {
+ serverNodeConsoleInfo.setAuthenticationPassword(password);
+ }
+ public String getAuthenticationPassword() {
+ return serverNodeConsoleInfo.getAuthenticationPassword();
+ }
};
private void removeTask(TaskObject root, String taskName) {
From fedora-directory-commits at redhat.com Wed Dec 5 19:54:25 2007
From: fedora-directory-commits at redhat.com (Richard Allen Megginson (rmeggins))
Date: Wed, 5 Dec 2007 14:54:25 -0500
Subject: [Fedora-directory-commits]
admservconsole/src/com/netscape/management/admserv/panel
CGIAccessSetup.java, 1.2, 1.3 CGIDataModel.java, 1.1.1.1, 1.2
Message-ID: <200712051954.lB5JsPV8004604@cvs-int.fedora.redhat.com>
Author: rmeggins
Update of /cvs/dirsec/admservconsole/src/com/netscape/management/admserv/panel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4566/admservconsole/src/com/netscape/management/admserv/panel
Modified Files:
CGIAccessSetup.java CGIDataModel.java
Log Message:
Resolves: bug 400361
Bug Description: Console: can't perform admin tasks after changing password
Reviewed by: nhosoi (Thanks!)
Fix Description: Each task uses a different ConsoleInfo object. There was already a hack/hook in AdminFrameworkInitializer to override the getAdminURL in each one of the task console info objects. We also need to override setAuthenticationPassword and getAuthenticationPassword so that if the task updates the password, the main console info uses that change, and vice versa. I also added a couple of debug items.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
Index: CGIAccessSetup.java
===================================================================
RCS file: /cvs/dirsec/admservconsole/src/com/netscape/management/admserv/panel/CGIAccessSetup.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CGIAccessSetup.java 15 Jun 2006 17:02:33 -0000 1.2
+++ CGIAccessSetup.java 5 Dec 2007 19:54:23 -0000 1.3
@@ -74,7 +74,7 @@
_consoleInfo.getAuthenticationDN(),
_consoleInfo.getAuthenticationPassword());
} catch (MalformedURLException e) {
- Debug.println("CGIDataModel.setConfiguration "+e);
+ Debug.println("CGIAccessSetup.save: "+e);
throw new RemoteRequestException(e);
}
@@ -85,7 +85,6 @@
}
int status = task.getStatus();
- Debug.println(adminURL + " "+status);
AdminOperation.processAdmTaskStatus(adminURL, task,
_consoleInfo);
}
Index: CGIDataModel.java
===================================================================
RCS file: /cvs/dirsec/admservconsole/src/com/netscape/management/admserv/panel/CGIDataModel.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- CGIDataModel.java 22 May 2006 18:14:41 -0000 1.1.1.1
+++ CGIDataModel.java 5 Dec 2007 19:54:23 -0000 1.2
@@ -258,7 +258,8 @@
int status = task.getStatus();
_loaded = (status == 0);
- Debug.println(adminURL + " "+status);
+ Debug.println("CGIDataModel.getConfiguration(): called URL " +
+ adminURL + " "+status);
AdminOperation.processAdmTaskStatus(adminURL, task, _consoleInfo);
From fedora-directory-commits at redhat.com Thu Dec 6 02:45:22 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Wed, 5 Dec 2007 21:45:22 -0500
Subject: [Fedora-directory-commits] ldapserver/ldap/admin/src/scripts
template-db2index.pl.in, 1.4, 1.5
Message-ID: <200712060245.lB62jMcj018522@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/admin/src/scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18494
Modified Files:
template-db2index.pl.in
Log Message:
Resolves: #403751
Summary: command line scripts fine tuning (Comment #1)
Description: dded "-T vlvAttributeName: ..." to the usage
Index: template-db2index.pl.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-db2index.pl.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- template-db2index.pl.in 12 Feb 2007 19:55:10 -0000 1.4
+++ template-db2index.pl.in 6 Dec 2007 02:45:20 -0000 1.5
@@ -42,19 +42,20 @@
sub usage {
print(STDERR "Usage: $0 [-v] -D rootdn { -w password | -w - | -j filename } \n");
print(STDERR " -n instance [-t attributeName[:indextypes[:matchingrules]]]\n");
- print(STDERR " Opts: -D rootdn - Directory Manager\n");
- print(STDERR " : -w password - Directory Manager's password\n");
- print(STDERR " : -w - - Prompt for Directory Manager's password\n");
- print(STDERR " : -j filename - Read Directory Manager's password from file\n");
- print(STDERR " : -n instance - instance to be indexed\n");
+ print(STDERR " Opts: -D rootdn - Directory Manager\n");
+ print(STDERR " : -w password - Directory Manager's password\n");
+ print(STDERR " : -w - - Prompt for Directory Manager's password\n");
+ print(STDERR " : -j filename - Read Directory Manager's password from file\n");
+ print(STDERR " : -n instance - instance to be indexed\n");
print(STDERR " : -t attributeName[:indextypes[:matchingrules]]\n");
- print(STDERR " - attribute: name of the attribute to be indexed\n");
- print(STDERR " If omitted, all the indexes defined \n");
- print(STDERR " for that instance are generated.\n");
- print(STDERR " - indextypes: comma separated index types\n");
- print(STDERR " - matchingrules: comma separated matrules\n");
- print(STDERR " Example: -t foo:eq,pres\n");
- print(STDERR " : -v - verbose\n");
+ print(STDERR " - attributeName: name of the attribute to be indexed\n");
+ print(STDERR " If omitted, all the indexes defined \n");
+ print(STDERR " for that instance are generated.\n");
+ print(STDERR " - indextypes: comma separated index types\n");
+ print(STDERR " - matchingrules: comma separated matrules\n");
+ print(STDERR " Example: -t foo:eq,pres\n");
+ print(STDERR " : -T vlvAttributeName - vlvAttributeName: name of the vlv attribute to be indexed\n");
+ print(STDERR " : -v - verbose\n");
}
$instance = "";
From fedora-directory-commits at redhat.com Thu Dec 6 02:46:20 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Wed, 5 Dec 2007 21:46:20 -0500
Subject: [Fedora-directory-commits]
ldapserver/ldap/admin/src logconv.pl, 1.6, 1.7
Message-ID: <200712060246.lB62kKti018557@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/admin/src
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18538
Modified Files:
logconv.pl
Log Message:
Resolves: #403751
Summary: command line scripts fine tuning (Comment #2)
Description: removed words "6.x" and "iWS" from the output messages.
Index: logconv.pl
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/logconv.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- logconv.pl 18 Apr 2006 18:57:44 -0000 1.6
+++ logconv.pl 6 Dec 2007 02:46:17 -0000 1.7
@@ -365,7 +365,6 @@
print "Deletes: $delete\n";
print "Mod RDNs: $modrdn\n";
print "\n";
-print "6.x Stats \n";
print "Persistent Searches: $persistent\n";
print "Internal Operations: $internal\n";
print "Entry Operations: $entryOp\n";
@@ -802,16 +801,16 @@
}
-###############################################
-# #
-# Gather and process extended operations 6.x #
-# #
-###############################################
+##########################################
+# #
+# Gather and process extended operations #
+# #
+##########################################
if ($usage =~ /x/i || $verb eq "yes"){
if ($extendedop > 0){
-print "\n\n----- 6.x Extended Operations -----\n\n";
+print "\n\n----- Extended Operations -----\n\n";
foreach $oids (sort { $oid{$b} <=> $oid{$a} } (keys %oid) ){
if ($oids eq "2.16.840.1.113730.3.5.1"){ $oidmessage = "Transaction Request"}
@@ -824,7 +823,7 @@
elsif ($oids eq "2.16.840.1.113730.3.5.8"){ $oidmessage = "Finished Bulk Import"}
elsif ($oids eq "2.16.840.1.113730.3.6.1"){ $oidmessage = "Incremental Update Replication Protocol"}
elsif ($oids eq "2.16.840.1.113730.3.6.2"){ $oidmessage = "Total Update Replication Protocol (Initialization)"}
- elsif ($oids eq "2.16.840.1.113730.3.5.9"){ $oidmessage = "Digest Authentication (iWS 6.x)"}
+ elsif ($oids eq "2.16.840.1.113730.3.5.9"){ $oidmessage = "Digest Authentication"}
else {$oidmessage = "Other"}
printf "%-6s %-23s %-60s\n", $oid{ $oids }, $oids, $oidmessage;
From fedora-directory-commits at redhat.com Thu Dec 6 02:53:46 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Wed, 5 Dec 2007 21:53:46 -0500
Subject: [Fedora-directory-commits] admservconsole/help/en header.html, 1.1,
1.2
Message-ID: <200712060253.lB62rkkh019150@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/admservconsole/help/en
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18950
Modified Files:
header.html
Log Message:
Resolves: #379191
Summary: Online help: Directory Console (ds-console) (Comment #14)
Description: CSS header file provided by Deon.
Index: header.html
===================================================================
RCS file: /cvs/dirsec/admservconsole/help/en/header.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- header.html 9 Aug 2007 16:04:03 -0000 1.1
+++ header.html 6 Dec 2007 02:53:44 -0000 1.2
@@ -3,18 +3,17 @@
Fedora Management Console and Administration Server Help
-
-
+ *.text {font-size: 12px;font-family:arial;color:#555555;}
+
Fedora Management Console and Administration Server Help
-
From fedora-directory-commits at redhat.com Thu Dec 6 02:59:36 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Wed, 5 Dec 2007 21:59:36 -0500
Subject: [Fedora-directory-commits]
directoryconsole/help/en header.html, 1.1, 1.2
Message-ID: <200712060259.lB62xam6019575@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/directoryconsole/help/en
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19243
Modified Files:
header.html
Log Message:
Resolves: #379191
Summary: Online help: Directory Console (ds-console) (Comment #14)
Description: CSS header file provided by Deon.
Index: header.html
===================================================================
RCS file: /cvs/dirsec/directoryconsole/help/en/header.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- header.html 13 Aug 2007 22:28:09 -0000 1.1
+++ header.html 6 Dec 2007 02:59:34 -0000 1.2
@@ -3,18 +3,17 @@
Fedora Management Console and Directory Server Help
-
-
+ *.text {font-size: 12px;font-family:arial;color:#555555;}
+
Fedora Management Console and Directory Server Help
-
From fedora-directory-commits at redhat.com Thu Dec 6 17:08:37 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Thu, 6 Dec 2007 12:08:37 -0500
Subject: [Fedora-directory-commits] adminserver/admserv/cgi-src40 help.js,
1.2, 1.3
Message-ID: <200712061708.lB6H8bLQ011398@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/adminserver/admserv/cgi-src40
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10903/admserv/cgi-src40
Modified Files:
help.js
Log Message:
Resolves: #411231
Summary: [Admin express] help button brings up an error page
Description: mapfile info (tokens.map) was missing from help.js and template.c.
Index: help.js
===================================================================
RCS file: /cvs/dirsec/adminserver/admserv/cgi-src40/help.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- help.js 18 Aug 2005 18:59:03 -0000 1.2
+++ help.js 6 Dec 2007 17:08:35 -0000 1.3
@@ -38,7 +38,7 @@
function
help(helpdir, token)
{
- newlocation = manualBase()+"/help/" + helpCommand() + "?helpdir="+helpdir+"&token="+token;
+ newlocation = manualBase()+"/help/" + helpCommand() + "?helpdir="+helpdir+"&token="+token+"&mapfile=tokens.map";
if (top.HelpWindow)
{
From fedora-directory-commits at redhat.com Thu Dec 6 17:08:38 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Thu, 6 Dec 2007 12:08:38 -0500
Subject: [Fedora-directory-commits]
adminserver/lib/libadmin template.c, 1.8, 1.9
Message-ID: <200712061708.lB6H8c7x011404@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/adminserver/lib/libadmin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10903/lib/libadmin
Modified Files:
template.c
Log Message:
Resolves: #411231
Summary: [Admin express] help button brings up an error page
Description: mapfile info (tokens.map) was missing from help.js and template.c.
Index: template.c
===================================================================
RCS file: /cvs/dirsec/adminserver/lib/libadmin/template.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- template.c 9 May 2007 00:26:37 -0000 1.8
+++ template.c 6 Dec 2007 17:08:35 -0000 1.9
@@ -382,7 +382,7 @@
* URL changed to add new "mapfile" parameter for 5.0 help system - Adam
*/
util_snprintf( line, sizeof(line),
- "window.open('%s/manual/help/help?helpdir=admin&token=%s', '"
+ "window.open('%s/manual/help/help?helpdir=admin&token=%s&mapfile=tokens.map', '"
INFO_IDX_NAME"_%s', "
HELP_WIN_OPTIONS");",
getenv("SERVER_URL"), topic,
From fedora-directory-commits at redhat.com Fri Dec 7 00:08:27 2007
From: fedora-directory-commits at redhat.com (Richard Allen Megginson (rmeggins))
Date: Thu, 6 Dec 2007 19:08:27 -0500
Subject: [Fedora-directory-commits] ldapserver/ldap/admin/src/scripts
DSMigration.pm.in, 1.23, 1.24 Util.pm.in, 1.13, 1.14
Message-ID: <200712070008.lB708Rnn030293@cvs-int.fedora.redhat.com>
Author: rmeggins
Update of /cvs/dirsec/ldapserver/ldap/admin/src/scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30274/ldapserver/ldap/admin/src/scripts
Modified Files:
DSMigration.pm.in Util.pm.in
Log Message:
Resolves: bug 400421
Bug Description: unable to restart configDS via console
Reviewed by: nhosoi (Thanks!)
Fix Description: We were using the old format for the ldapStart directive, which assumed everything was under a serverroot, so it just stored the relative path. We need the absolute path. During regular setup, we can get this from the directory server instance. During migration, we need to update the ldapStart directive to use the absolute path, so we need to get that information from the directory server code.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
Index: DSMigration.pm.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/DSMigration.pm.in,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- DSMigration.pm.in 14 Nov 2007 15:12:09 -0000 1.23
+++ DSMigration.pm.in 7 Dec 2007 00:08:25 -0000 1.24
@@ -895,6 +895,16 @@
my $mig = shift;
my @errs;
+ # migration needs to know the instance directory for the directory
+ # servers - this assumes they are all in the same place
+ if (!$mig->{ServerRoot}) {
+ if ("@with_fhs_opt@") {
+ $mig->{ServerRoot} = "$inf->{General}->{prefix}/opt/@PACKAGE_NAME@";
+ } else {
+ $mig->{ServerRoot} = "$inf->{General}->{prefix}@serverdir@";
+ }
+ }
+
# for each instance
foreach my $inst (@{$mig->{instances}}) {
if (-f "$mig->{configdir}/$inst/dse.ldif") {
Index: Util.pm.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/Util.pm.in,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Util.pm.in 21 Nov 2007 20:27:38 -0000 1.13
+++ Util.pm.in 7 Dec 2007 00:08:25 -0000 1.14
@@ -829,8 +829,20 @@
last if ($ent->hasValue('cn', 'userRoot', 1));
$ent = $conn->nextEntry();
}
+
+ # we also need the instance dir
+ $ent = $conn->search("cn=config", "base", "(objectclass=*)");
+ if (!$ent) {
+ push @{$errs}, "error_opening_dseldif", $fname, $!;
+ close $outfh;
+ $conn->close();
+ return 0;
+ }
+ my $inst_dir = $ent->getValue('nsslapd-instancedir');
+
$conn->close();
+ print $outfh, "inst_dir = $inst_dir\n";
print $outfh "Suffix = $suffix\n";
close $outfh;
From fedora-directory-commits at redhat.com Fri Dec 7 00:09:39 2007
From: fedora-directory-commits at redhat.com (Richard Allen Megginson (rmeggins))
Date: Thu, 6 Dec 2007 19:09:39 -0500
Subject: [Fedora-directory-commits] adminserver/admserv/newinst/src
AdminMigration.pm.in, 1.6, 1.7 AdminServer.pm.in, 1.11, 1.12
Message-ID: <200712070009.lB709dMd030336@cvs-int.fedora.redhat.com>
Author: rmeggins
Update of /cvs/dirsec/adminserver/admserv/newinst/src
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30317/adminserver/admserv/newinst/src
Modified Files:
AdminMigration.pm.in AdminServer.pm.in
Log Message:
Resolves: bug 400421
Bug Description: unable to restart configDS via console
Reviewed by: nhosoi (Thanks!)
Fix Description: We were using the old format for the ldapStart directive, which assumed everything was under a serverroot, so it just stored the relative path. We need the absolute path. During regular setup, we can get this from the directory server instance. During migration, we need to update the ldapStart directive to use the absolute path, so we need to get that information from the directory server code.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
Index: AdminMigration.pm.in
===================================================================
RCS file: /cvs/dirsec/adminserver/admserv/newinst/src/AdminMigration.pm.in,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- AdminMigration.pm.in 14 Sep 2007 21:26:08 -0000 1.6
+++ AdminMigration.pm.in 7 Dec 2007 00:09:36 -0000 1.7
@@ -34,6 +34,7 @@
use SetupLog;
use File::Path;
+use File::Spec qw(file_name_is_absolute);
# tempfiles
use File::Temp qw(tempfile tempdir);
@@ -480,6 +481,16 @@
$mig->{inf}->{admin}->{sie} =~ s/\bNetscape\b/@capbrand@/g;
$mig->{inf}->{admin}->{isie} =~ s/\bNetscape\b/@capbrand@/g;
+ # update ldapStart
+ # if ldapStart is not an absolute path, we need to add
+ # the directory server instance dir (ServerRoot) to it
+ if ($mig->{inf}->{admin}->{ldapStart} &&
+ !file_name_is_absolute($mig->{inf}->{admin}->{ldapStart})) {
+ debug(1, "Need to make ldapStart an absolute path - ", $mig->{ServerRoot}, "/",
+ $mig->{inf}->{admin}->{ldapStart}, "\n");
+ $mig->{inf}->{admin}->{ldapStart} = $mig->{ServerRoot} . "/" . $mig->{inf}->{admin}->{ldapStart};
+ }
+
if (!updateAdmConf({ldapurl => $mig->{inf}->{General}->{ConfigDirectoryLdapURL},
userdn => $mig->{inf}->{General}->{ConfigDirectoryAdminID},
SuiteSpotUserID => $mig->{inf}->{General}->{SuiteSpotUserID},
Index: AdminServer.pm.in
===================================================================
RCS file: /cvs/dirsec/adminserver/admserv/newinst/src/AdminServer.pm.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- AdminServer.pm.in 20 Sep 2007 01:01:21 -0000 1.11
+++ AdminServer.pm.in 7 Dec 2007 00:09:36 -0000 1.12
@@ -157,8 +157,8 @@
my @start_slapd;
if ($setup->{inf}->{slapd}->{SlapdConfigForMC} =~ /yes/i) {
- my $slapdid = $setup->{inf}->{slapd}->{ServerIdentifier};
- @start_slapd = ('ldapStart', "slapd-$slapdid/start-slapd");
+ my $inst_dir = $setup->{inf}->{slapd}->{inst_dir};
+ @start_slapd = ('ldapStart', "$inst_dir/start-slapd");
}
$setup->msg('updating_admconf');
my $rc = updateAdmConf({ldapurl => $setup->{inf}->{General}->{ConfigDirectoryLdapURL},
From fedora-directory-commits at redhat.com Fri Dec 7 01:27:49 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Thu, 6 Dec 2007 20:27:49 -0500
Subject: [Fedora-directory-commits] admservconsole/help/en tokens.map, 1.3,
1.4
Message-ID: <200712070127.lB71RnRa008612@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/admservconsole/help/en
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8577
Modified Files:
tokens.map
Log Message:
Resolves: #159011
Summary: online help for details of CRL missing (Comment #6,7)
Description: adding a missing map for the token CertificateDetailDialog_CRL:
CertificateDetailDialog_CRL-help = help/list_crl_ckl.html
And piggybacking to fix replication-monitor token.
Index: tokens.map
===================================================================
RCS file: /cvs/dirsec/admservconsole/help/en/tokens.map,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- tokens.map 14 Nov 2007 16:46:15 -0000 1.3
+++ tokens.map 7 Dec 2007 01:27:47 -0000 1.4
@@ -144,6 +144,7 @@
;MANAGE REVOKED CERTIFICATES
CRLCertificatePane-help = help/manage_certificates_revoked_certs.html
InstallCRLDialog-help = help/add_crl_ckl.html
+CertificateDetailDialog_CRL-help = help/list_crl_ckl.html
;SECURITY - CONFIGURE SECURITY MODULES
PKCSConfigDialog-help = help/configure_security_modules.html
@@ -192,5 +193,5 @@
HTMLAdmin = help/administration_express.html
ViewData = help/administration_express_server_information.html
ViewLog = help/administration_express_logs.html
-replication-Monitor = help/replication_monitor.html
+MonReplication = help/replication_monitor.html
;End
From fedora-directory-commits at redhat.com Fri Dec 7 01:27:49 2007
From: fedora-directory-commits at redhat.com (Noriko Hosoi (nhosoi))
Date: Thu, 6 Dec 2007 20:27:49 -0500
Subject: [Fedora-directory-commits] admservconsole/help/en/help
list_crl_ckl.html, NONE,
1.1 create_user_administrator_posix_user.html, 1.1,
1.2 search_users_and_groups_advanced.html, 1.1, 1.2
Message-ID: <200712070127.lB71Rn2u008619@cvs-int.fedora.redhat.com>
Author: nhosoi
Update of /cvs/dirsec/admservconsole/help/en/help
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8577/help
Modified Files:
create_user_administrator_posix_user.html
search_users_and_groups_advanced.html
Added Files:
list_crl_ckl.html
Log Message:
Resolves: #159011
Summary: online help for details of CRL missing (Comment #6,7)
Description: adding a missing map for the token CertificateDetailDialog_CRL:
CertificateDetailDialog_CRL-help = help/list_crl_ckl.html
And piggybacking to fix replication-monitor token.
--- NEW FILE list_crl_ckl.html ---
Certificate Information - Detail
General
This panel lists detailed information about the selected certificate.
Issuer. Lists the CA who issued each CRL or CKL.
Signature algorithm. The mathematical formula used to sign the certificate.
Version. The version number of the public key algorithm.
Issuer DN. The full DN of the Certificate Authority (CA).
Effective Date. Lists the date on which the CRL or CKL was issued.
Next Update. Shows when an updated CRL or CKL will be available.
Revocation List
This panel lists serial numbers and dates revoked by the CA.
Index: create_user_administrator_posix_user.html
===================================================================
RCS file: /cvs/dirsec/admservconsole/help/en/help/create_user_administrator_posix_user.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- create_user_administrator_posix_user.html 9 Aug 2007 16:04:04 -0000 1.1
+++ create_user_administrator_posix_user.html 7 Dec 2007 01:27:47 -0000 1.2
@@ -9,13 +9,13 @@
Enable Posix user attributes. Check this box to enable the fields in this panel.
-UID Number. (Optional) Enter the user or administrator's UNIX ID number.
+UID Number. Enter the user or administrator's UNIX ID number.
-GID Number. (Optional) Enter the user or administrator's UNIX group ID number.
+GID Number. Enter the user or administrator's UNIX group ID number.
-Home Directory. (Optional) Enter the path to the user or administrator's home directory. For example, /u/jdoe.
+Home Directory. Enter the path to the user or administrator's home directory. For example, /u/jdoe.
Login Shell. (Optional) Enter the path to the user or administrator's login shell. For example, /usr/local/bin/tcsh.
Index: search_users_and_groups_advanced.html
===================================================================
RCS file: /cvs/dirsec/admservconsole/help/en/help/search_users_and_groups_advanced.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- search_users_and_groups_advanced.html 9 Aug 2007 16:04:04 -0000 1.1
+++ search_users_and_groups_advanced.html 7 Dec 2007 01:27:47 -0000 1.2
@@ -74,5 +74,5 @@
Search (button). Click to begin searching.
-Basic. Click to view fewer fields.
+By Filter (button). Click to use the search by filter.
From fedora-directory-commits at redhat.com Fri Dec 7 16:41:56 2007
From: fedora-directory-commits at redhat.com (Richard Allen Megginson (rmeggins))
Date: Fri, 7 Dec 2007 11:41:56 -0500
Subject: [Fedora-directory-commits]
console/src/com/netscape/management/client/topology
topology.properties, 1.4, 1.5
Message-ID: <200712071641.lB7Gfurb001828@cvs-int.fedora.redhat.com>
Author: rmeggins
Update of /cvs/dirsec/console/src/com/netscape/management/client/topology
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1809
Modified Files:
topology.properties
Log Message:
Resolves: bug 214977
Description: Small typo in console
Index: topology.properties
===================================================================
RCS file: /cvs/dirsec/console/src/com/netscape/management/client/topology/topology.properties,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- topology.properties 15 Nov 2007 16:56:53 -0000 1.4
+++ topology.properties 7 Dec 2007 16:41:54 -0000 1.5
@@ -167,7 +167,7 @@
error-ClassLoaderTitle=Class Loader Error
error-CreateServerObject=Failed to instantiate Server Object for {0}:
error-CannotChangePermission=Cannot change permission.
-error-EntryExisted=Entry already existed.
+error-EntryExisted=Entry already exists.
error-CannotCreateServerObject=Initialize server object error. Could not initialize object:
error-CannotCreateServerObjectTitle=Loading Server Object Error
error-CloneError=There are no target servers to clone to.
From fedora-directory-commits at redhat.com Fri Dec 7 17:43:52 2007
From: fedora-directory-commits at redhat.com (Richard Allen Megginson (rmeggins))
Date: Fri, 7 Dec 2007 12:43:52 -0500
Subject: [Fedora-directory-commits] adminserver/admserv/cfgstuff
admserv.conf.in, 1.9, 1.10
Message-ID: <200712071743.lB7Hhq06014270@cvs-int.fedora.redhat.com>
Author: rmeggins
Update of /cvs/dirsec/adminserver/admserv/cfgstuff
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14223/adminserver/admserv/cfgstuff
Modified Files:
admserv.conf.in
Log Message:
Resolves: bug 407011
Bug Description: GIF missing on the front page for admin web ui
Reviewed by: nhosoi (Thanks!)
Fix Description: Yet another carry over from the days when everything was under the single server root. We should not use relative paths for the icons, but just use "/icons/" for the path, and let Apache map that to the real location of the icon files.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
Index: admserv.conf.in
===================================================================
RCS file: /cvs/dirsec/adminserver/admserv/cfgstuff/admserv.conf.in,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- admserv.conf.in 27 Sep 2007 16:54:30 -0000 1.9
+++ admserv.conf.in 7 Dec 2007 17:43:50 -0000 1.10
@@ -67,6 +67,7 @@
# remap admin server icons
Alias /admin-serv/tasks/icons/ @icondir@/
+Alias /icons/ @icondir@/
# Handle the initial login
From fedora-directory-commits at redhat.com Fri Dec 7 17:43:52 2007
From: fedora-directory-commits at redhat.com (Richard Allen Megginson (rmeggins))
Date: Fri, 7 Dec 2007 12:43:52 -0500
Subject: [Fedora-directory-commits] adminserver/admserv/cgi-src40
htmladmin.properties, 1.6, 1.7 viewdata.properties, 1.5,
1.6 viewlog.properties, 1.5, 1.6
Message-ID: <200712071743.lB7Hhq8r014276@cvs-int.fedora.redhat.com>
Author: rmeggins
Update of /cvs/dirsec/adminserver/admserv/cgi-src40
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14223/adminserver/admserv/cgi-src40
Modified Files:
htmladmin.properties viewdata.properties viewlog.properties
Log Message:
Resolves: bug 407011
Bug Description: GIF missing on the front page for admin web ui
Reviewed by: nhosoi (Thanks!)
Fix Description: Yet another carry over from the days when everything was under the single server root. We should not use relative paths for the icons, but just use "/icons/" for the path, and let Apache map that to the real location of the icon files.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
Index: htmladmin.properties
===================================================================
RCS file: /cvs/dirsec/adminserver/admserv/cgi-src40/htmladmin.properties,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- htmladmin.properties 9 May 2007 00:26:30 -0000 1.6
+++ htmladmin.properties 7 Dec 2007 17:43:50 -0000 1.7
@@ -64,41 +64,41 @@
//#/* html resource string - output_topology() */
htmladmin60 { "\n\n" }
htmladmin61 { "