From deb79786ba32f7e13ad01f4025f06a8031f2b115 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 18 Dec 2006 22:37:15 +0000
Subject: [PATCH] Update the CLI setup utility to perform a more reliable port-in-use check. It now uses both a server socket and a client socket, and will reject the port number if the server socket can't bind to the requested port, or if the client socket can bind to that port.
---
opends/src/server/org/opends/server/messages/ToolMessages.java | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/ToolMessages.java b/opends/src/server/org/opends/server/messages/ToolMessages.java
index b596b88..1be5637 100644
--- a/opends/src/server/org/opends/server/messages/ToolMessages.java
+++ b/opends/src/server/org/opends/server/messages/ToolMessages.java
@@ -9089,12 +9089,13 @@
"On which port would you like the Directory Server to " +
"accept connections from LDAP clients?");
registerMessage(MSGID_INSTALLDS_CANNOT_BIND_TO_PRIVILEGED_PORT,
- "ERROR: Unable to bind to port %d: %s. This port may " +
- "already be in use, or if you are a nonroot user then " +
- "you may not be allowed to use port numbers 1024 or " +
- "below.");
+ "ERROR: Unable to bind to port %d. This port may " +
+ "already be in use, or you may not have permission to " +
+ "bind to it. On UNIX-based operating systems, non-root " +
+ "users may not be allowed to bind to ports 1 through " +
+ "1024.");
registerMessage(MSGID_INSTALLDS_CANNOT_BIND_TO_PORT,
- "ERROR: Unable to bind to port %d: %s. This port may " +
+ "ERROR: Unable to bind to port %d. This port may " +
"already be in use, or you may not have permission to " +
"bind to it.");
registerMessage(MSGID_INSTALLDS_PROMPT_ROOT_DN,
--
Gitblit v1.10.0