[Fedora-directory-commits] adminserver/admserv/schema/ldif asmigrate.ldif.tmpl, NONE, 1.1

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Fri Jun 29 21:29:08 UTC 2007


Author: rmeggins

Update of /cvs/dirsec/adminserver/admserv/schema/ldif
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16700/adminserver/admserv/schema/ldif

Added Files:
	asmigrate.ldif.tmpl 
Log Message:
Resolves: bug 245815
Description: DS Admin Migration framework - Admin Server Migration
Reviewed by: nhosoi (Thanks!)
Fix Description: Created an AdminMigration class to handle all of the Admin Server and Configuration DS specific parts of migration.  This should work for both the NES based Admin Server and the Apache based (FDS 1.0) Admin Server.
A lot of the code in AdminServer.pm was reused, or made more generic for use in migration as well as creation/setup.
Added a function to register all directory server instances with the configuration DS.  This can be used for update/reconfig too.
Platforms tested: RHEL4
Doc: Yes.  We will need to document the migration procedures.
Flag day: Yes.  Autotool file changes.



--- NEW FILE asmigrate.ldif.tmpl ---
# BEGIN COPYRIGHT BLOCK
# Copyright (C) 2007 Red Hat, Inc.
# All rights reserved.
#
# 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; either version 2
# of the License, or (at your option) any later version.
#
# 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#
# END COPYRIGHT BLOCK

# this form of LDIF change record format is wrong, wrong, wrong
# but were stuck with it because Mozilla perldap LDIF is braindead
# the operation lines must all be adjacent - perldap LDIF will throw
# away values that are not adjacent - so you must have all of the replace:
# lines next to each other, all of the add: lines, delete: lines, etc.

dn: cn=%brand% Administration Server, cn=Server Group, cn=%fqdn%, ou=%domain%, o=NetscapeRoot
changetype: modify
replace: nsVendor
replace: nsProductVersion
replace: nsBuildNumber
replace: installationTimeStamp
replace: nsServerMigrationClassname
nsVendor: %vendor%
nsProductVersion: %as_version%
nsBuildNumber: %as_buildnum%
installationTimeStamp: %timestamp%
nsServerMigrationClassname: com.netscape.management.admserv.AdminServerProduct@%as_console_jar%
delete: nsInstalledLocation

dn: cn=admin-serv-%asid%, cn=%brand% Administration Server, cn=Server Group, cn=%fqdn%, ou=%domain%, o=NetscapeRoot
changetype: modify
replace: installationTimeStamp
installationTimeStamp: %timestamp%
delete: userPassword
delete: serverRoot

dn: cn=configuration, cn=admin-serv-%asid%, cn=%brand% Administration Server, cn=Server Group, cn=%fqdn%, ou=%domain%, o=NetscapeRoot
changetype: modify
replace: nsSuiteSpotUser
replace: nsAdminUsers
replace: nsErrorLog
replace: nsPidLog
replace: nsAccessLog
replace: nsClassName
nsSuiteSpotUser: %as_user%
nsAdminUsers: %admpw%
nsErrorLog: %as_error%
nsPidLog: %as_pid%
nsAccessLog: %as_access%
nsClassname: com.netscape.management.admserv.AdminServer@%as_console_jar%@cn=admin-serv-%asid%, cn=%brand% Administration Server, cn=Server Group, cn=%fqdn%, ou=%domain%, o=NetscapeRoot

dn: cn=encryption, cn=configuration, cn=admin-serv-%asid%, cn=%brand% Administration Server, cn=Server Group, cn=%fqdn%, ou=%domain%, o=NetscapeRoot
changetype: modify
delete: nsCertFile
delete: nsKeyFile
delete: nsSSL2
delete: nsSSL2Ciphers





More information about the Fedora-directory-commits mailing list