Add a test for ldap port conf.

Just add a test and example for ldap port configuration