Previous Topic: Policy Resolutions

Next Topic: SAML1x Redirect URL Types

Return Codes

The value codes that can be returned by the API are enumerated in Sm_PolicyApi_Status_t. The values have the following significance:

Most of the code names are self-explanatory. However, note that Sm_PolicyApi_BadArgument (-10) is returned when one or more of the required input parameters is not supplied. For example, if an argument such as a domain OID is null or represents a string of zero length, Sm_PolicyApi_BadArgument is returned to the caller.

Return codes with values less than -100 (except for Sm_PolicyApi_NotUnique, value -105) will rarely be returned by this API. They are included for completeness.

Return Code

Value

Sm_PolicyApi_Success

0

Sm_PolicyApi_Failure

-1

Sm_PolicyApi_InvalidHandle

-2

Sm_PolicyApi_ErrorLogin

-3

Sm_PolicyApi_NoPrivilege

-4

Sm_PolicyApi_InvalidPasswordSyntax

-5

Sm_PolicyApi_InvalidPassword

-6

Sm_PolicyApi_DuplicateEntry

-7

Sm_PolicyApi_DoesNotExist

-8

Sm_PolicyApi_NotFound

-9

Sm_PolicyApi_BadArgument

-10

Sm_PolicyApi_WrongNumberOfElements

-11

Sm_PolicyApi_UserDirNotPartOfDomain

-12

Sm_PolicyApi_UserDirNotValid

-13

Sm_PolicyApi_ErrorUserDir

-14

Sm_PolicyApi_AgentNotFound

-15

Sm_PolicyApi_AgentTypeNotFound

-16

Sm_PolicyApi_AgentTypeAttrNotFound

-17

Sm_PolicyApi_AgentTypeMismatch

-18

Sm_PolicyApi_ODBCQuerySchemeNotFound

-19

Sm_PolicyApi_UserDirNotFound

-20

Sm_PolicyApi_DomainNotFound

-21

Sm_PolicyApi_AdminNotFound

-22

Sm_PolicyApi_SchemeNotFound

-23

Sm_PolicyApi_RegistrationSchemeNotFound

-24

Sm_PolicyApi_PasswordPolicyNotFound

-25

Sm_PolicyApi_SchemeIsRequired

-26

Sm_PolicyApi_PasswordPolicyConfig

-27

Sm_PolicyApi_RealmNotFound

-28

Sm_PolicyApi_NoChildren

-29

Sm_PolicyApi_RuleNotFound

-30

Sm_PolicyApi_ResponseNotFound

-31

Sm_PolicyApi_ResponseAttrNotFound

-32

Sm_PolicyApi_PolicyNotFound

-33

Sm_PolicyApi_PolicyLinkNotFound

-34

Sm_PolicyApi_UserPolicyNotFound

-35

Sm_PolicyApi_BadGroup

-36

Sm_PolicyApi_GroupNotFound

-37

Sm_PolicyApi_Invalid

-38

Sm_PolicyApi_InvalidHandleVersion

-39

Sm_PolicyApi_DomainNotAffiliate

-41

Sm_PolicyApi_InvalidOid

-100

Sm_PolicyApi_NotImplemented

-101

Sm_PolicyApi_NotSearchable

-102

Sm_PolicyApi_NotStorable

-103

Sm_PolicyApi_NotCollection

-104

Sm_PolicyApi_NotUnique

-105

Sm_PolicyApi_InvalidProp

-106

Sm_PolicyApi_NotInitted

-107

Sm_PolicyApi_NoSession

-108

Sm_PolicyApi_OidInUseByRealm

-109

Sm_PolicyApi_OidInUseByRule

-110

Sm_PolicyApi_OidInUseByAdmin

-111

Sm_PolicyApi_MissingProperty

-112

Sm_PolicyApi_GroupMemberName

-113

Sm_PolicyApi_RadiusIpAddrNotUnique

-114

Sm_PolicyApi_GroupAgentType

-115

Sm_PolicyApi_RadiusRealmNotUnique

-116

Sm_PolicyApi_RealmFilterNotUnique

-117

Sm_PolicyApi_InvalidCharacters

-118

Sm_PolicyApi_AgentTypeCantBeDeleted

-119

Sm_PolicyApi_ProvNotImplemented

-120

Sm_PolicyApi_ProvNotUnique

-121

Sm_PolicyApi_RealmCantBeUsedInRule

-122

Sm_PolicyApi_OidInUserByCertMap

-123

Sm_PolicyApi_OidInUseBySelfReg

-124

Sm_PolicyApi_OidInUseByUserDirectory

-125

Sm_PolicyApi_SchemeCantBeDeleted

-126

Sm_PolicyApi_BasicSchemeUpdate

-127

Sm_PolicyApi_NonHtmlForm

-128

Sm_PolicyApi_IllegalRealmOperation

-129

Sm_PolicyApi_NameNotUnique

-130

Sm_PolicyApi_FeatureNotSupported

-132

Sm_PolicyApi_AssertionConsumerDefaultMissing

-133

Sm_PolicyApi_SAMLSP_AuthenticationURLMissing

-134

Sm_PolicyApi_SAMLSP_DomainOidMissing

-135

Sm_PolicyApi_SAMLSP_IdPIDMissing

-136

Sm_PolicyApi_SAMLSP_NameMissing

-137

Sm_PolicyApi_SAMLSP_NameIdFormatMissing

-138

Sm_PolicyApi_SAMLSP_NameIdTypeMissing

-139

Sm_PolicyApi_SAMLSP_NameIdStaticMissing

-140

Sm_PolicyApi_SAMLSP_NameIdAttrNameMissing

-141

Sm_PolicyApi_SAMLSP_NameIdDNSpecMissing

-142

Sm_PolicyApi_SAMLSP_ProviderIDMissing

-143

Sm_PolicyApi_SAMLSP_ProviderIDNotUnique

-144

Sm_PolicyApi_SAML_UnSupportedSAMLVersion

-145

Sm_PolicyApi_SAMLIDP_IncorrectParameters

-146

Sm_PolicyApi_SAMLIDP_ProviderIDNotUnique

-147

Sm_PolicyApi_SAMLAFF_NameMissing

-148

Sm_PolicyApi_SAMLAFF_NameIdFormatMissing

-149

Sm_PolicyApi_SAMLAFF_NameIdTypeMissing

-150

Sm_PolicyApi_SAMLAFF_NameIdStaticMissing

-151

Sm_PolicyApi_SAMLAFF_NameIdAttrNameMissing

-152

Sm_PolicyApi_SAMLAFF_NameIdDNSpecMissing

-153

Sm_PolicyApi_SAMLAFF_AffiliationIDMissing

-154

Sm_PolicyApi_SAMLAFF_AffiliationIDNotUnique

-155

Sm_PolicyApi_SAMLAFF_AffiliationHasMembers

-156

Sm_PolicyApi_SAML_UnknownProperty

-157

Sm_PolicyApi_WSFEDRP_AssertionConsumerDefaultMissing

-158

Sm_PolicyApi_WSFEDRP_AuthenticationURLMissing

-159

Sm_PolicyApi_WSFEDRP_DomainOidMissing

-160

Sm_PolicyApi_WSFEDRP_APIDMissing

-161

Sm_PolicyApi_WSFEDRP_NameMissing

-162

Sm_PolicyApi_WSFEDRP_NameIdFormatMissing

-163

Sm_PolicyApi_WSFEDRP_NameIdTypeMissing

-164

Sm_PolicyApi_WSFEDRP_NameIdStaticMissing

-165

Sm_PolicyApi_WSFEDRP_NameIdAttrNameMissing

-166

Sm_PolicyApi_WSFEDRP_NameIdDNSpecMissing

-167

Sm_PolicyApi_WSFEDRP_ProviderIdMissing

-168

Sm_PolicyApi_WSFEDRP_ProviderIdNotUnique

-169

Sm_PolicyApi_WSFEDRP_UnsupportedSAMLVersion

-170

Sm_PolicyApi_WSFEDRP_UnkownProperty

-171

Sm_PolicyApi_WSFEDAP_IncorrectParameters

-172

Sm_PolicyApi_WSFEDAP_ProviderIDNotUnique

-173

Sm_PolicyAPI_InsufficientRPData

-174

Sm_PolicyAPI_WSFED_UnSupportedWSFEDVersion

-175

Sm_PolicyAPI_DuplicateAttribute

-176

Sm_PolicyAPI_SAMLSP_ACSDuplicateIndex

-177

Sm_PolicyAPI_SAMLSP_ACSIndexedEndpointInUse

-178

Sm_PolicyAPI_SAMLSP_ACSIndexedEndpointNotFound

-179

Sm_PolicyAPI_SAMLSP_CantDeleteDefaultACSIndex

-180

Sm_PolicyAPI_SAMLSP_ACSMaxExceeded

-181

Sm_PolicyAPI_InConsistentANDBitMask

-182


Copyright © 2010 CA. All rights reserved. Email CA about this topic