# diffs to cfgdir.ldif for the patch
#
# execute like this
# cd <msg.RootPath>/lib
# ./ldapmodify -D "cn=Directory Manager" -w password -c -e patch/cfgdir_diff.rej -f patch/cfgdir_diff.ldif
#

# new product version
#      attribute of objectclass nsApplication
dn: cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsProductVersion
nsProductVersion: <msg.product.Version>

# new build number
#      attribute of objectclass nsApplication
dn: cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsBuildNumber
nsBuildNumber: <msg.product.BuildNumber>

# new revision number
#      attribute of objectclass nsApplication
dn: cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsRevisionNumber
nsRevisionNumber: <msg.product.Revision>

# should I put in new installation time stamp?
#      attribute of objectclass nsApplication
#dn: cn=<msg.product.Name>, cn=<msg.GroupName>,
# cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
#changetype: modify
#replace: installationTimeStamp
#installationTimeStamp: <msg.product.InstallationTimestamp>

#      attribute of objectclass netscapeServer
#dn: cn=msg-config, cn=<msg.product.Name>, cn=<msg.GroupName>,
# cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
#changetype: modify
#replace: installationTimeStamp
#installationTimeStamp: <msg.product.InstallationTimestamp>

# update jar file name
dn: cn=configuration, cn=msg-config, cn=<msg.product.Name>,
 cn=<msg.GroupName>, cn=<msg.ServerHostName>,
 ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsclassname
nsclassname: com.netscape.management.msgserv.MsgServer@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>

# update jar file name
dn: cn=inetorgPerson, cn=ResourceEditorExtension, ou=4.0, ou=Admin,
 ou=Global Preferences, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsadminaccountinfo
nsadminaccountinfo: [com.netscape.management.msgserv.ug.MailUserAccountPage@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>]

# update jar file name
dn: cn=groupofuniquenames, cn=ResourceEditorExtension, ou=4.0, ou=Admin,
 ou=Global Preferences, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsadminaccountinfo
nsadminaccountinfo: [com.netscape.management.msgserv.ug.MailGroupAccountPage@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>]

# for nsclassname attribute in the following entry
dn: cn=inetMailUser, cn=ResourceEditorExtension, ou=4.0, ou=Admin,
 ou=Global Preferences, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
add: objectclass
objectClass: nsAdminObject

# update jar file name
dn: cn=inetMailUser, cn=ResourceEditorExtension, ou=4.0, ou=Admin,
 ou=Global Preferences, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsclassname
nsclassname: com.netscape.management.msgserv.ug.ResourceEditorMailRecipientPage@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>

# for nsclassname attribute in the following entry
dn: cn=inetMailGroup, cn=ResourceEditorExtension, ou=4.0, ou=Admin,
 ou=Global Preferences, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
add: objectclass
objectclass: nsAdminObject

# update jar file name
dn: cn=inetMailGroup, cn=ResourceEditorExtension, ou=4.0, ou=Admin,
 ou=Global Preferences, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsclassname
nsclassname: com.netscape.management.msgserv.ug.ResourceEditorMailGroupPage@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>

# update jar file name
dn: cn=processcontrol, cn=operation, cn=tasks, cn=msg-config,
 cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsclassname
nsclassname: com.netscape.management.msgserv.task.ServerStart@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>

# update jar file name
dn: cn=viewimaplog, cn=operation, cn=tasks, cn=msg-config,
 cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsclassname
nsclassname: com.netscape.management.msgserv.task.ViewIMAPLog@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>

# update jar file name
dn: cn=viewpoplog, cn=operation, cn=tasks, cn=msg-config,
 cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsclassname
nsclassname: com.netscape.management.msgserv.task.ViewPOPLog@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>

# update jar file name
dn: cn=viewhttplog, cn=operation, cn=tasks, cn=msg-config,
 cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsclassname
nsclassname: com.netscape.management.msgserv.task.ViewHTTPLog@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>

# update jar file name
dn: cn=viewadminlog, cn=operation, cn=tasks, cn=msg-config,
 cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsclassname
nsclassname: com.netscape.management.msgserv.task.ViewAdminLog@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>

# update jar file name
dn: cn=viewdefaultlog, cn=operation, cn=tasks, cn=msg-config,
 cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsclassname
nsclassname: com.netscape.management.msgserv.task.ViewDefaultLog@msgadmin<msg.product.Ver>.jar@<AdminServer_sie>

# update admin server jar file name
dn: cn=CertSetup, cn=operation, cn=tasks, cn=msg-config,
 cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
replace: nsclassname
nsclassname: com.netscape.management.admserv.task.CertSetup@admserv522.jar@<AdminServer_sie>

# delete configutil variable
#     attribute of objectclass nsEncryptionConfig
dn: cn=encryption, cn=configuration, cn=msg-config,
 cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
delete: nsCertfile

# delete configutil variable
dn: cn=encryption, cn=configuration, cn=msg-config,
 cn=<msg.product.Name>, cn=<msg.GroupName>,
 cn=<msg.ServerHostName>, ou=<msg.AdminDomain>, o=NetscapeRoot
changetype: modify
delete: nsKeyfile
