This read-only property specifies the type of authentication that Search uses to access a site.
Syntax
SiteResriction.AuthenticationType
Remarks
The types of authentication are:
Name | Value | Description |
AUTH_TYPE_ANONYMOUS | 0 | Use anonymous login (default). |
AUTH_TYPE_NTLM | 1 | Use NT challenge-and-response login. |
AUTH_TYPE_BASIC | 2 | Use basic (clear text) login. |
Example
The following example displays the authentication type for the sites with restrictions in the KMSampleCatalog1 catalog definition.
Option Explicit
On Error Resume Next
Const AUTH_TYPE_ANONYMOUS = 0
Const AUTH_TYPE_NTLM = 1
Const AUTH_TYPE_BASIC = 2
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objSites, objSite
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs
Set objCatalog = objCatalogs("KMSampleCatalog1")
Set objSites = objCatalog.objSites
For Each objSite in objSites
Select Case objSite.AuthenticationType
Case AUTH_TYPE_ANONYMOUS
Wscript.Echo objSite.Name & " uses anonymous login."
Case AUTH_TYPE_BASIC
Wscript.Echo objSite.Name & " uses basic login."
Case AUTH_TYPE_NTLM
Wscript.Echo objSite.Name & " uses NT login."
End Select
Next
'Release objects
Set objSite = Nothing
Set objSites = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also