Description: Replaces default 19389 port with "url.defaultdirectory.port"
 configuration property.
Author: Gabriele Giacone <1o5g4r8o@gmail.com>
Bug-Debian: http://bugs.debian.org/589894

--- a/src/com/ca/commons/naming/CBOpenConWin.java
+++ b/src/com/ca/commons/naming/CBOpenConWin.java
@@ -15,6 +15,7 @@
 
 import com.ca.commons.jndi.ConnectionData;
 import com.ca.commons.cbutil.*;
+import com.ca.directory.jxplorer.JXplorer;
 
 /**
  * CBOpenConWin displays connection info to the user, allowing them
@@ -172,7 +173,8 @@
     protected void initGUI(JLabel statusDisplay)
     {
         String oldConnection = "";
-        int oldPortNo = 19389;
+//        int oldPortNo = 19389;
+        String oldPortNo = JXplorer.getProperty("url.defaultdirectory.port");
         String oldBaseDN = "";
         //String oldUseSSL = CBIntText.get("false");
 
@@ -190,7 +192,7 @@
         hostLabel.setToolTipText(CBIntText.get("The url of the server; e.g.") + " 'www.cai.com'");
 
         display.add(portLabel = new JLabel("  " + CBIntText.get("Port") + ": "));
-        display.addLine(port = new JTextField(String.valueOf(oldPortNo), 5));
+        display.addLine(port = new JTextField(oldPortNo, 5));
         portLabel.setToolTipText(CBIntText.get("The port number of the LDAP server; often 389."));
 
         display.add(temp = new JLabel("   " + CBIntText.get("Protocol") + (": ")));
