Microsoft HomeProductsSearchSupportShopWrite Usspacer.gif Microsoft Home
Microsoft Packages
  In this topic

*Methods

*Fields

 

Packages   Previous Microsoft Packages Next
Package com.ms.adsi   Previous This
Package
Next

 


Interface ADsProvider

public interface ADsProvider
{
  // Fields
  public static final long ADSI_DEFAULT_AUTHENTICATION;
  public static final long ADSI_USE_ENCRYPTION;
  public static final long ADSI_USE_SECURE_AUTHENTICATION;

  // Methods
  public IADsNamespace getNamespace();
  public IADs getObject(String ADsPath) throws IADsException;
  public IADs getObject( String ADsPath, String userName,
        String passWord, long controlCode ) throws IADsException;
  public void setConfigFile(INIFileParser config);
}

This is the base interface for all directory object providers. Each provide must implements this interface.

Methods

getNamespace 

public IADsNamespace getNamespace();

Returns the namespace object of this provider.

Return Value

Returns namespace object of the provider

getObject 

public IADs getObject(String ADsPath) throws IADsException;

Returns Active Direcotry object binding.

ParameterDescription
pathADsPath of the requested object

Exceptions

IADsException failed to get object

getObject 

public IADs getObject( String ADsPath, String userName,
        String passWord, long controlCode ) throws IADsException;

Returns Active Direcotry object binding.

ParameterDescription
pathADsPath of the requested object
userName,the name of the user (ex cn=John,cn=users,dc=foo,dc=bar)
passWord,the passWord of the user.
controlCode,indicates authentication mechanism to use.

Exceptions

IADsException failed to get object

setConfigFile 

public void setConfigFile(INIFileParser config);

Sets the configuration file.

ParameterDescription
configurationfile

Fields 

ADSI_DEFAULT_AUTHENTICATION
Constant to use for default, usually clear text authentication
ADSI_USE_ENCRYPTION
Constant to use for encrypted authentication
ADSI_USE_SECURE_AUTHENTICATION
Constant to use for secure authentication.

Back To Top © 1997 Microsoft Corporation. All rights reserved. Terms of use.