[Fedora-directory-commits] admservconsole/src/com/netscape/management/admserv AdminFrameworkInitializer.java, 1.1.1.1, 1.2

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Wed Dec 5 19:54:25 UTC 2007


Author: rmeggins

Update of /cvs/dirsec/admservconsole/src/com/netscape/management/admserv
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4566/admservconsole/src/com/netscape/management/admserv

Modified Files:
	AdminFrameworkInitializer.java 
Log Message:
Resolves: bug 400361
Bug Description: Console: can't perform admin tasks after changing password
Reviewed by: nhosoi (Thanks!)
Fix Description: Each task uses a different ConsoleInfo object.  There was already a hack/hook in AdminFrameworkInitializer to override the getAdminURL in each one of the task console info objects.  We also need to override setAuthenticationPassword and getAuthenticationPassword so that if the task updates the password, the main console info uses that change, and vice versa.  I also added a couple of debug items.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none



Index: AdminFrameworkInitializer.java
===================================================================
RCS file: /cvs/dirsec/admservconsole/src/com/netscape/management/admserv/AdminFrameworkInitializer.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- AdminFrameworkInitializer.java	22 May 2006 18:14:32 -0000	1.1.1.1
+++ AdminFrameworkInitializer.java	5 Dec 2007 19:54:22 -0000	1.2
@@ -109,6 +109,19 @@
         public String getAdminURL() {
             return serverNodeConsoleInfo.getAdminURL();
         }
+        /* We have to make sure we use the same password throughout
+         * for the main console and for the tasks - if we do not do
+         * this and we change the password, the tasks will use the
+         * wrong password.  This way, if we change the password from
+         * either the Configure task, or from the Configuration tab,
+         * we will use the same password throughout.
+         */
+        public void setAuthenticationPassword(String password) {
+            serverNodeConsoleInfo.setAuthenticationPassword(password);
+        }
+        public String getAuthenticationPassword() {
+        	return serverNodeConsoleInfo.getAuthenticationPassword();
+        }
     };
 
     private void removeTask(TaskObject root, String taskName) {




More information about the Fedora-directory-commits mailing list