Overview#

LDAP Filter#

See JDAPFilter.

netscape.ldap.beans.LDAPSimpleAuth#

The Bean can be used from JavaScript, as in the following example where the parameters are taken from HTML text fields in an HTML form called “input”:

<script language="JavaScript">
function checkAuthentication() {
    auth = new Packages.netscape.ldap.beans.LDAPSimpleAuth();
    auth.setHost( document.input.host.value );
    auth.setPort( parseInt(document.input.port.value) );
    auth.setAuthDN( document.input.username.value );
    auth.setAuthPassword( document.input.password.value );
    result = auth.authenticate();
    alert( "The response is: " + result );
}
</script>

References#