Environment
Novell GroupWise Mobility Service 2.0
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 11
Situation
How to change the hostname on GMS 2 server
Resolution
Since most of the passwords are encrypted on GroupWise Mobility Server 2.0 using the hostname, it is important to follow the steps listed below to change the password.
- Make a backup copy of GMS settings by typing
cp /etc/datasync /etc/datasyncbak -v -R -p - Make note of the current hostname by typing
hostname -f - Launch YaST | Network Devices | Network Settings | Hostname/DNS and set the Hostname and Domain Name properly
- Save the Changes
- Reconfigure the GMS encryption by following TID 7015744, with the hostname from step 2
- Restart GMS to make sure it comes up without a problem by typing rcgms restart and login to GMS webadmin
- Restart the Server by typing init 6 and press Enter
Additional Information
Manually update the xml files, to remove their encryption
- Edit /etc/datasync/configengine/configengine.xml
-
In the <database> section, delete <protected>1</protected> line
-
Delete the encrypted password between the <password> tags
- Type the password in clear text between the <password> tags as shown below
<database>
<username>datasync_user</username>
<hostname>localhost</hostname>
<db>datasync</db>
<password>novell</password>
<type>postgresql</type>
<port>5432</port>
</database> -
In the <login> section, delete <protected>1</protected> line
-
Delete the encrypted password between the <password> tags
- Type the password in clear text between the <password> tags as shown below
<login>
<dn>cn=admin,o=novell</dn>
<password>novell</password>
</login> - In the <notification> section, delete the <protected>1</protected> line
- Delete the encrypted password between the <smtpPassword> tags
- Type the password in clear text between the <smtpPassword> tags as shown below
<notification>
<smtpPassword>novell</smtpPassword>
<applicationTo>user@novell.com</applicationTo>
<enabled>true</enabled>
<smtpUser>user</smtpUser>
<smtpHost>10.0.0.1</smtpHost>
<systemTo>user@novell.com</systemTo>
<smtpPort>25</smtpPort>
</notification>
-
- Edit /etc/datasync/configengine/engines/default/engine.xml
- In the <database> section, delete <protected>1</protected> line
- Delete the encrypted password between the <password> tags
- Type the password in clear text between the <password> tags as shown below
<database>
<username>datasync_user</username>
<hostname>localhost</hostname>
<db>datasync</db>
<password>novell</password>
<type>postgresql</type>
<port>5432</port>
</database>
- In the <database> section, delete <protected>1</protected> line
- Edit /etc/datasync/configengine/engines/default/pipelines/pipeline1/connectors/mobility/connector.xml
- Delete the <protected>1</protected> line
- Delete the encrypted password between <dbpass> tags
- Type the password in clear text between the <dbpass> tags as shown below
<dbpass>novell</dbpass>
- Edit /etc/datasync/configengine/engines/default/pipelines/pipeline1/connectors/groupwise/connector.xml
- Delete the <protected>1</protected> line
- Delete the encrypted trustedAppKey between <trustedAppKey> tags
- Type the trustedAppKey in clear text between the <trustedAppKey> tags or copy it from the file that was used during the installation
- The trusted App Key can be found in the Trusted App Key file that was used during GroupWise Mobility install.
- If the Trusted App Key file cannot be found delete and recreate the trusted app with the same name.
https://www.novell.com/documentation/groupwise2012/gw2012_guide_admin/data/ake1tw1.html
- Re-encrypt the xml files with the new hostname, by running update.sh
/opt/novell/datasync/update.sh