summaryrefslogtreecommitdiffstats
path: root/ldap/ldif
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2005-10-21 19:21:19 +0000
committerRich Megginson <rmeggins@redhat.com>2005-10-21 19:21:19 +0000
commit35f8ea348b5f4c08f8e09130db59abddd849d870 (patch)
tree4089978c5ec8c123e0c4c81bc8b7f06683bca8a7 /ldap/ldif
parent8216af284bf01728074d474131ae781e6033055c (diff)
downloadds-35f8ea348b5f4c08f8e09130db59abddd849d870.tar.gz
ds-35f8ea348b5f4c08f8e09130db59abddd849d870.tar.xz
ds-35f8ea348b5f4c08f8e09130db59abddd849d870.zip
Bug(s) fixed: 171066
Bug Description: Get rid of nsperl; use perldap with system perl Reviewed by: Noriko, Rob, Nathan (Thanks!) Branch: HEAD Fix Description: All perl scripts are made executable by using the #!/usr/bin/env perl *nix trick. This means that the correct version of perl must be in the user's PATH e.g. 5.6.1 or later. This version is either shipped with the OS or available on all platforms. On HP/ux, it is available as a depot which is installed in /opt/perl. For CGI perl scripts, the PATH can be set in the admserv.conf, so we may have to do that for HP/ux. To make perldap work, some ugly hacks are involved. Each perl script that uses perldap has a BEGIN section that figures out where it is in the server root, sets a server root variable, and sets LD_LIBRARY_PATH and SHLIB_PATH to point to serverroot/shared/lib. Perldap will be installed under serverroot/lib/perl. This directory will have 3 subdirectories: arch - containing the binary files; auto - containing autoloaded perl modules; and Mozilla - containing the base perldap .pm files. The BEGIN section also sets the perl INC path to find those modules. The directory gets rid of nsperl plus a lot of old crufty perl building code that we do not use anymore. Those are the removed files. The admin server code also gets rid of the perl.c wrapper. Noriko pointed out that this does not take care of upgrade install, so I added several more files and diffs to take care of that case. Basically, go through the tasks in o=netscaperoot and replace perl?scriptname with just scriptname. Also, go through all of the template generated scripts and replace the shebang line with #!/usr/bin/env perl, and make sure they are chmod +x. I also found a few more places that referenced nsperl and removed them. Platforms tested: RHEL4 Flag Day: no Doc impact: no QA impact: should be covered by regular nightly and manual testing New Tests integrated into TET: none
Diffstat (limited to 'ldap/ldif')
-rw-r--r--ldap/ldif/commonTasks.ldif6
-rw-r--r--ldap/ldif/tasks.ldif2
2 files changed, 4 insertions, 4 deletions
diff --git a/ldap/ldif/commonTasks.ldif b/ldap/ldif/commonTasks.ldif
index 94ef71d7..d0027e1a 100644
--- a/ldap/ldif/commonTasks.ldif
+++ b/ldap/ldif/commonTasks.ldif
@@ -56,7 +56,7 @@ dn: cn=Migrate, cn=Operation, cn=Tasks
objectclass: top
objectclass: nstask
objectclass: nsAdminObject
-nsexecref: perl?migrateInstance
+nsexecref: migrateInstance
dn: cn=Create, cn=Operation, cn=Tasks
objectclass: top
@@ -68,10 +68,10 @@ dn: cn=GetConfigInfo, cn=Operation, cn=Tasks
objectclass: top
objectclass: nstask
objectclass: nsAdminObject
-nsexecref: perl?getConfigInfo
+nsexecref: getConfigInfo
dn: cn=MigrateLocalDB, cn=Operation, cn=Tasks
objectclass: top
objectclass: nstask
objectclass: nsAdminObject
-nsexecref: perl?migrateLocalDB
+nsexecref: migrateLocalDB
diff --git a/ldap/ldif/tasks.ldif b/ldap/ldif/tasks.ldif
index 7bd01791..5c3d8740 100644
--- a/ldap/ldif/tasks.ldif
+++ b/ldap/ldif/tasks.ldif
@@ -133,7 +133,7 @@ dn: cn=ViewLog, cn=operation, cn=Tasks
objectclass: top
objectclass: nstask
objectclass: nsAdminObject
-nsexecref: perl?ds_viewlog.pl
+nsexecref: ds_viewlog.pl
dn: cn=ListBackups, cn=operation, cn=Tasks
objectclass: top