[Freeipa-devel] [PATCH] check for LDAP ports during install

Simo Sorce ssorce at redhat.com
Mon Oct 15 17:37:28 UTC 2007


On Mon, 2007-10-15 at 13:27 -0400, Rob Crittenden wrote:
> Simo Sorce wrote:
> > On Mon, 2007-10-15 at 10:49 -0400, Rob Crittenden wrote:
> >> Patch to verify that the LDAP ports are available when doing an 
> >> installation. If they aren't the FDS installer will crash and burn.
> > 
> > To properly check you should not try to connect to the ports, but
> > instead try to bind the ports.
> > Connect may fail because of firewall or maybe because a server is bound
> > only to the public IP and not localhost, etc ...
> > Trying to bind to the wildcard address will tell you exactly if binding
> > is possible. Can you change the patch to try to bind instead of trying
> > to connect?
> 
> Revised patch to use bind() instead of connect(). I added a test for 
> both IPv4 and IPv6 ports though I don't currently have IPv6 enabled so I 
> can't test this. It at least doesn't seem to affect the IPv4 test.

Looks good.
Simo.




More information about the Freeipa-devel mailing list