allow binding ldap server on an ephemeral port

if the client specifies a port of zero, bind to an ephemeral port.  This allows for the construction of robust local tests that use a local ldap server.