When using an LDAP user registry, is there a way to programmatically obtain the host name, port, and base DN configured in the application server's login-config.xml file? There's some extra user attributes I'd like to fetch from the directory via JNDI and I don't like the idea of having to specify my LDAP server information twice.