The Server object represents the ILS server with which the application interacts.
IIlsServer Interface |
The IIlsServer interface is obtained from the IIlsMain::CreateServer method. The interface provides the methods described in this section.
SetAuthenticationMethod |
SetBaseDN |
SetCredential |
SetDomain |
SetLogonName |
SetLogonPassword |
SetTimeout |
HRESULT IIlsServer::SetAuthenticationMethod(
ILS_ENUM_AUTH_METHOD enumAuthMethod);
Sets the server authentication method to use when accessing this ILS server.
HRESULT SetBaseDN(
[in] BSTR bstrBaseDN );
Sets the LDAP distinguished name base the user is to register under. If this method is not called, the ILS 1.0 default is used.
S_OK | Success. |
ILS_E_POINTER | bstrBaseDN is NULL. |
ILS_E_MEMORY | Unable to allocate enough memory for this request. |
The User object is registered according to the following rules:
HRESULT IIlsServer::SetCredential(
BSTR bstrCredential);
Sets the server access credential when accessing this ILS server.
S_OK | Success. |
ILS_E_POINTER | bstrCredential is NULL. |
ILS_E_MEMORY | Unable to allocate enough memory for this request. |
HRESULT IIlsServer::SetDomain(
BSTR bstrDomain);
Sets the Microsoft® Windows NT® domain when accessing this ILS server.
S_OK | Success. |
ILS_E_POINTER | bstrDomain is NULL. |
ILS_E_MEMORY | Unable to allocate enough memory for this request. |
HRESULT IIlsServer::SetLogonName(
BSTR bstrLogonName);
Sets the logon name to use when accessing this ILS server.
S_OK | Success. |
ILS_E_POINTER | bstrLogonName is NULL |
ILS_E_MEMORY | Unable to allocate enough memory for this request. |
HRESULT IIlsServer::SetLogonPassword(
BSTR bstrLogonPassword);
Sets the logon password to use when accessing this ILS server.
S_OK | Success. |
ILS_E_POINTER | bstrLogonPassword is NULL. |
ILS_E_MEMORY | Unable to allocate enough memory for this request. |
HRESULT IIlsServer::SetTimeout(
ULONG uTimeoutInSec);
Sets the initial time-out period when registering with this ILS server.
Note that the time-out period is the initial amount suggested to the server; the ILS server can alter the time-out period unilaterally. The ILS client will honor any such changes and alter its time-out refresh frequency as necessary.
Last Updated: November 1, 1997
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.