[Fedora-directory-commits] directoryconsole/src/com/netscape/admin/dirserv/panel/replication AgreementDestinationPanel.java, 1.3, 1.4

Richard Allen Megginson rmeggins at fedoraproject.org
Wed Mar 25 22:25:29 UTC 2009


Author: rmeggins

Update of /cvs/dirsec/directoryconsole/src/com/netscape/admin/dirserv/panel/replication
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv965/directoryconsole/src/com/netscape/admin/dirserv/panel/replication

Modified Files:
	AgreementDestinationPanel.java 
Log Message:
Resolves: bug 483660
Bug Description: Replication and Sync agreement edit should not allow change to/from LDAPS
Reviewed by: nhosoi (Thanks!)
Fix Description: If simple auth was being used, the simple auth radio button was not selected.  This patch makes sure it is selected if it needs to be.
Platforms tested: RHEL5
Flag Day: no
Doc impact: no



Index: AgreementDestinationPanel.java
===================================================================
RCS file: /cvs/dirsec/directoryconsole/src/com/netscape/admin/dirserv/panel/replication/AgreementDestinationPanel.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AgreementDestinationPanel.java	3 Mar 2009 01:24:26 -0000	1.3
+++ AgreementDestinationPanel.java	25 Mar 2009 22:25:27 -0000	1.4
@@ -562,9 +562,11 @@
         	_digestAuth.setSelected(_agreement.getUseDigestAuth());
         	_digestAuthDSEntry.fakeInitModel (_agreement.getUseDigestAuth() ? "on" : "off");
         }
+        boolean issimple = !_agreement.getUseSSLAuth() && !_agreement.getUseDigestAuth() && !_agreement.getUseGSSAPIAuth();
         if (_simpAuth != null) {
-        	_simpAuth.setEnabled(!_agreement.getUseSSLAuth());
-        	_simpAuthDSEntry.fakeInitModel (_agreement.getUseSSLAuth() ? "on" : "off");
+            _simpAuth.setEnabled(issimple);
+            _simpAuth.setSelected(issimple);
+            _simpAuthDSEntry.fakeInitModel (issimple ? "on" : "off");
         }
 
         if(_agreement.getAgreementType() == ReplicationAgreement.AGREEMENT_TYPE_AD){




More information about the Fedora-directory-commits mailing list