00001 #ifndef _GSSUP_IDL_ 00002 #define _GSSUP_IDL_ 00003 00004 #include <CSI.idl> 00005 00006 #pragma prefix "omg.org" 00007 00008 module GSSUP 00009 { 00010 // The GSS Object Identifier allocated for the 00011 // username/password mechanism is defined below. 00012 // 00013 // { iso-itu-t (2) international-organization (23) omg (130) 00014 // security (1) authentication (1) gssup-mechanism (1) } 00015 00016 const CSI::StringOID GSSUPMechOID = "oid:2.23.130.1.1.1"; 00017 00018 // The following structure defines the inner contents of the 00019 // username password initial context token. This structure is 00020 // CDR encapsulated and appended at the end of the 00021 // username/password GSS (initial context) Token. 00022 00023 struct InitialContextToken 00024 { 00025 CSI::UTF8String username; 00026 CSI::UTF8String password; 00027 CSI::GSS_NT_ExportedName target_name; 00028 }; 00029 00030 typedef unsigned long ErrorCode; 00031 00032 // GSSUP Mechanism-Specific Error Token 00033 struct ErrorToken 00034 { 00035 ErrorCode error_code; 00036 }; 00037 00038 // The context validator has chosen not to reveal the GSSUP 00039 // specific cause of the failure. 00040 const ErrorCode GSS_UP_S_G_UNSPECIFIED = 1; 00041 00042 // The user identified in the username field of the 00043 // GSSUP::InitialContextToken is unknown to the target. 00044 const ErrorCode GSS_UP_S_G_NOUSER = 2; 00045 00046 // The password supplied in the GSSUP::InitialContextToken was 00047 // incorrect. 00048 const ErrorCode GSS_UP_S_G_BAD_PASSWORD = 3; 00049 00050 // The target_name supplied in the GSSUP::InitialContextToken does 00051 // not match a target_name in a mechanism definition of the target. 00052 const ErrorCode GSS_UP_S_G_BAD_TARGET = 4; 00053 00054 }; // GSSUP 00055 00056 #endif