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

Rob Crittenden rcritten at redhat.com
Mon Oct 15 17:27:55 UTC 2007


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.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-269-ports.patch
Type: text/x-patch
Size: 2459 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20071015/b460b836/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20071015/b460b836/attachment-0001.bin>


More information about the Freeipa-devel mailing list