home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
ims.cab
/
smerrors.asp
< prev
next >
Wrap
Text File
|
1997-10-12
|
5KB
|
112 lines
<%
'----------------------------------------------------------------------------
'
'
' File: smerrors.asp
'
' Description: Error Messages for ADSI objects
'
' Copyright (C) 1997 Microsoft Corporation
'
'------------------------------------------------------------------------------
Response.Expires = 0
Const E_ADS_BAD_PATHNAME = &H80005000
Const E_ADS_INVALID_DOMAIN_OBJECT = &H80005001
Const E_ADS_INVALID_USER_OBJECT = &H80005002
Const E_ADS_INVALID_COMPUTER_OBJECT = &H80005003
Const E_ADS_UNKNOWN_OBJECT = &H80005004
Const E_ADS_PROPERTY_NOT_SET = &H80005005
Const E_ADS_PROPERTY_NOT_SUPPORTED = &H80005006
Const E_ADS_PROPERTY_INVALID = &H80005007
Const E_ADS_BAD_PARAMETER = &H80005008
Const E_ADS_OBJECT_UNBOUND = &H80005009
Const E_ADS_PROPERTY_NOT_MODIFIED = &H8000500A
Const E_ADS_PROPERTY_MODIFIED = &H8000500B
Const E_ADS_CANT_CONVERT_DATATYPE = &H8000500C
Const E_ADS_PROPERTY_NOT_FOUND = &H8000500D
Const E_ADS_OBJECT_EXIST = &H8000500E
Const E_ADS_SCHEMA_VIOLATION = &H8000500F
L_ADS_BAD_PATHNAME_ERRORMESSAGE = "Active Directory Pathname is Invalid"
L_INVALID_DOMAIN_OBJECT_ERRORMESSAGE = "Unknown Active Directory domain object was requested"
L_INVALID_USER_OBJECT_ERRORMESSAGE = "Unknown Active Directory user object was requested"
L_INVALID_COMPUTER_OBJECT_ERRORMESSAGE = "Unknown Active Directory computer object was requested"
L_ADS_UNKNOWN_OBJECT_ERRORMESSAGE = "Unknown Active Directory object was requested"
L_PROPERTY_NOT_SET_ERRORMESSAGE = "The specified Active Directory Property was not set"
L_PROPERTY_NOT_SUPPORTED_ERRORMESSAGE = "The specified Active Directory Property is not supported"
L_ADS_PROPERTY_INVALID_ERRORMESSAGE = "The specified Active Directory Property is invalid"
L_ADS_BAD_PARAMETER_ERRORMESSAGE = "one or more input parameters are invalid"
L_ADS_OBJECT_UNBOUND_ERRORMESSAGE = "The specified Active Directory object is not bound"
L_PROPERTY_NOT_MODIFIED_ERRORMESSAGE = "The specified Active Directory Property has not been modified"
L_CANT_CONVERT_DATATYPE_ERRORMESSAGE = "The Active Directory datatype cannot be convereted to/from a native DS datatype"
L_PROPERTY_NOT_FOUND_ERRORMESSAGE = "The Active Directory property cannot be found in the cache"
L_ADS_OBJECT_EXIST_ERRORMESSAGE = "The Active Directory object exists"
L_ADS_SCHEMA_VIOLATION_ERRORMESSAGE = "The attempted action vilates the DS schema rules"
L_UNKNOWN_ERRORMESSAGE = "An unknown error has occured."
'------------------------------------------------------------------------------
'
' Function: GetErrorMessage(lError)
'
' Purpose: Takes in an error number and returns the proper string
'
' Parameters: lError -> The Error number
'
' Returns: a string with the proper error message
'
' Created: 10/6/97: Randy Slape
'
'------------------------------------------------------------------------------
Function GetErrorMessage(lError)
if (lError.Description = "") then
Select Case lError
Case E_ADS_BAD_PATHNAME
GetErrorMessage = L_ADS_BAD_PATHNAME_ERRORMESSAGE
Case E_ADS_INVALID_DOMAIN_OBJECT
GetErrorMessage = L_INVALID_DOMAIN_OBJECT_ERRORMESSAGE
Case E_ADS_INVALID_USER_OBJECT
GetErrorMessage = L_INVALID_USER_OBJECT_ERRORMESSAGE
Case E_ADS_INVALID_COMPUTER_OBJECT
GetErrorMessage = L_INVALID_COMPUTER_OBJECT_ERRORMESSAGE
Case E_ADS_UNKNOWN_OBJECT
GetErrorMessage = L_ADS_UNKNOWN_OBJECT_ERRORMESSAGE
Case E_ADS_PROPERTY_NOT_SET
GetErrorMessage = L_PROPERTY_NOT_SET_ERRORMESSAGE
Case E_ADS_PROPERTY_NOT_SUPPORTED
GetErrorMessage = L_PROPERTY_NOT_SUPPORTED_ERRORMESSAGE
Case E_ADS_PROPERTY_INVALID
GetErrorMessage = L_ADS_PROPERTY_INVALID_ERRORMESSAGE
Case E_ADS_BAD_PARAMETER
GetErrorMessage = L_ADS_BAD_PARAMETER_ERRORMESSAGE
Case E_ADS_OBJECT_UNBOUND
GetErrorMessage = L_ADS_OBJECT_UNBOUND_ERRORMESSAGE
Case E_ADS_PROPERTY_NOT_MODIFIED
GetErrorMessage = L_PROPERTY_NOT_MODIFIED_ERRORMESSAGE
Case E_ADS_PROPERTY_MODIFIED
GetErrorMessage = L_PROPERTY_NOT_MODIFIED_ERRORMESSAGE
Case E_ADS_CANT_CONVERT_DATATYPE
GetErrorMessage = L_CANT_CONVERT_DATATYPE_ERRORMESSAGE
Case E_ADS_PROPERTY_NOT_FOUND
GetErrorMessage = L_PROPERTY_NOT_FOUND_ERRORMESSAGE
Case E_ADS_OBJECT_EXIST
GetErrorMessage = L_ADS_OBJECT_EXIST_ERRORMESSAGE
Case E_ADS_SCHEMA_VIOLATION
GetErrorMessage = L_ADS_SCHEMA_VIOLATION_ERRORMESSAGE
End Select
if (GetErrorMessage = "") then
GetErrorMessage = L_UNKNOWN_ERRORMESSAGE & " " & lError
end if
else
GetErrorMessage = lError.Description
end if
End Function
%>
<html>
<head>
</head>
</html>