LDAP Classes
Implements Java LDAP

com.novell.ldap
Interface LDAPAuthHandler

All Superinterfaces:
LDAPReferralHandler

public interface LDAPAuthHandler
extends LDAPReferralHandler

Used to provide credentials for authentication when processing a referral.

A programmer desiring to supply authentication credentials to the API when automatically following referrals MUST implement this interface. If LDAPAuthHandler or LDAPBindHandler are not implemented, automatically followed referrals will use anonymous authentication. Referral URLs of any type other than LDAP (i.e. a referral URL other than ldap://something) are not chased automatically by the API on automatic following.

Sample Code: SearchUtil.java

See Also:
LDAPBindHandler, LDAPConstraints.setReferralFollowing(boolean)

Method Summary
 LDAPAuthProvider getAuthProvider(java.lang.String host, int port)
          Returns an object which can provide credentials for authenticating to a server at the specified host and port.
 

Method Detail

getAuthProvider

public LDAPAuthProvider getAuthProvider(java.lang.String host,
                                        int port)
Returns an object which can provide credentials for authenticating to a server at the specified host and port.

Parameters:
host - Contains a host name or the IP address (in dotted string format) of a host running an LDAP server.

port - Contains the TCP or UDP port number of the host.
Returns:
An object with authentication credentials to the specified host and port.

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000