summaryrefslogtreecommitdiffstats
path: root/ldap/admin/src/scripts
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2005-03-30 22:37:46 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2005-03-30 22:37:46 +0000
commitb1c0fcde718656bd267ed97c7ff2ae2d861e054f (patch)
tree0e5e8bdc02b9bb27c954ff1a94a0fe9cb96b9635 /ldap/admin/src/scripts
parentb9500d1da74bcb410ecdd17f3fd6567f1ca03928 (diff)
downloadds-b1c0fcde718656bd267ed97c7ff2ae2d861e054f.tar.gz
ds-b1c0fcde718656bd267ed97c7ff2ae2d861e054f.tar.xz
ds-b1c0fcde718656bd267ed97c7ff2ae2d861e054f.zip
[152645] dsmlgw acceptance test started to fail on 3/15/2005
Added crimson.jar and ibmpkcs.jar (for BASE64Decoder) to the classpath on Linux where IBM JRE is used.
Diffstat (limited to 'ldap/admin/src/scripts')
-rw-r--r--ldap/admin/src/scripts/template-dsml-activate.pl24
1 files changed, 24 insertions, 0 deletions
diff --git a/ldap/admin/src/scripts/template-dsml-activate.pl b/ldap/admin/src/scripts/template-dsml-activate.pl
index 7f0d93b2..b8f32f82 100644
--- a/ldap/admin/src/scripts/template-dsml-activate.pl
+++ b/ldap/admin/src/scripts/template-dsml-activate.pl
@@ -193,6 +193,30 @@ EOF
}
if ( $file eq "jvm12.conf" ) {
+ if ($^O eq "linux") {
+ # if setting Xbootclasspath, make sure crimson.jar is in it.
+ $fulljvm12 = "${SERVERROOT}${PATH}${file}";
+ $fulljvm12tmp = $fulljvm12 . ".tmp";
+ $crimsonpath = "${SERVERROOT}/bin/https/jar/crimson.jar";
+ $ibmpath = "${SERVERROOT}/bin/base/jre/lib/ibmpkcs.jar";
+ open JVM, "${fulljvm12}";
+ open JVMTMP, "> ${fulljvm12tmp}";
+ for ($line=<JVM>; $line; $line=<JVM>) {
+ if ($line =~ /Xbootclasspath/) {
+ if (!($line =~ /${crimsonpath}/)) {
+ $line =~ s/Xbootclasspath/Xbootclasspath:${crimsonpath}/;
+ }
+ if (!($line =~ /${ibmpath}/)) {
+ $line =~ s/Xbootclasspath/Xbootclasspath:${ibmpath}/;
+ }
+ }
+ print JVMTMP $line;
+ }
+ close JVMTMP;
+ close JVM;
+ unlink("${fulljvm12}");
+ rename("${fulljvm12tmp}", "${fulljvm12}");
+ }
open JVM, ">> ${SERVERROOT}${PATH}${file}";
select JVM;
print STDERR "adding necessary entry to $file.\n";