Article

Address is not well-formed during Conferencing Server installation

article
Reads:

1859

Score:
0
0
 
Comments:

0

Recently I had a need to install Conferencing in a network that had 255 in one of the network octets of the address, eg 10.255.254.X/24

The problem

During the install script, when attempting to enter addresses on this network, we kept getting messages similar to:

!!!!! 10.255.254.20 is not well-formed

After a fair bit of head scratching, we determined that the utils.sh script, used by the installation script, had a function validate_ip that did not like 255 in the address. (In most cases this would be correct)

The Fix

Simply modify the utils.sh script that is in the same location you run install.sh from. EG. sitescape-conferencing directory.

Within utils.sh, locate the function validate_ip (Around about line 864)
Locate the four lines that read

if [ ${comps[0]} -ge 0 -a ${comps[0]} -lt 255 ] &&
[ ${comps[0]} -ge 0 -a ${comps[0]} -lt 255 ] &&
[ ${comps[0]} -ge 0 -a ${comps[0]} -lt 255 ] &&
[ ${comps[0]} -ge 0 -a ${comps[0]} -lt 255 ] ; then
return 0
else

and change them to

if [ ${comps[0]} -ge 0 -a ${comps[0]} -lt 256 ] &&
[ ${comps[0]} -ge 0 -a ${comps[0]} -lt 256 ] &&
[ ${comps[0]} -ge 0 -a ${comps[0]} -lt 256 ] &&
[ ${comps[0]} -ge 0 -a ${comps[0]} -lt 256 ] ; then
return 0
else

You should then be able to use 255 in the network part, or host part if you really want ;-) of your conferencing server addresses during the install.

Have fun....





User Comments

© 2009 Novell, Inc. All Rights Reserved.