AttachToLocalMachine Method

This method attaches the LDAP Administration object to the LDAP server on the local machine. This is the default behavior. This method can be used to reset the effects of AttachToRemoteMachine.

IDL Definition

HRESULT AttachToLocalMachine(); 

Parameters

none

Return Values

a standard HRESULT value

Example

VBScript

Set ILdapcfg = CreateObject("MemAdmin.LdapConfig")
ILdapcfg.AttachToRemoteMachine "RemoteServerName"
ILdapcfg.LoadConfig 4
… '  configure this LDAP server instance, etc
ILdapcfg.AttachToLocalMachine

© 1997-1998 Microsoft Corporation. All rights reserved.