KERB_EXTERNAL_TICKET structure (ntsecapi.h)
The KERB_EXTERNAL_TICKET structure contains information about an external ticket.
An external ticket is a Kerberos ticket exported to external users. The Kerberos ticket is defined in Internet RFC 4120. For more information, see http://www.ietf.org. This structure is used by the KERB_RETRIEVE_TKT_RESPONSE structure.
Syntax
typedef struct _KERB_EXTERNAL_TICKET {
PKERB_EXTERNAL_NAME ServiceName;
PKERB_EXTERNAL_NAME TargetName;
PKERB_EXTERNAL_NAME ClientName;
UNICODE_STRING DomainName;
UNICODE_STRING TargetDomainName;
UNICODE_STRING AltTargetDomainName;
KERB_CRYPTO_KEY SessionKey;
ULONG TicketFlags;
ULONG Flags;
LARGE_INTEGER KeyExpirationTime;
LARGE_INTEGER StartTime;
LARGE_INTEGER EndTime;
LARGE_INTEGER RenewUntil;
LARGE_INTEGER TimeSkew;
ULONG EncodedTicketSize;
PUCHAR EncodedTicket;
} KERB_EXTERNAL_TICKET, *PKERB_EXTERNAL_TICKET;
Members
ServiceName
A KERB_EXTERNAL_NAME structure that contains a multiple part, canonical, returned service name.
TargetName
A KERB_EXTERNAL_NAME structure that contains the multiple part service principal name (SPN).
ClientName
A KERB_EXTERNAL_NAME structure that contains the client name in the ticket. This name is relative to the current domain.
DomainName
A UNICODE_STRING that contains the name of the domain that corresponds to the ServiceName member. This is the domain that issued the ticket.
TargetDomainName
A UNICODE_STRING that contains the name of the domain in which the ticket is valid. For an interdomain ticket, this is the destination domain.
AltTargetDomainName
A UNICODE_STRING that contains a synonym for the destination domain. Every domain has two names: a DNS name and a NetBIOS name. If the name returned in the ticket is different from the name used to request the ticket (the Kerberos Key Distribution Center (KDC) may do name mapping), this string contains the original name.
SessionKey
A KERB_CRYPTO_KEY structure that contains the session key for the ticket.
TicketFlags
Ticket flags, as defined in Internet RFC 4120. This parameter can be one or more of the following values.
Value | Meaning |
---|---|
|
The ticket-granting server can issue a new ticket-granting ticket with a different network address, based on the presented ticket. |
|
The ticket has either been forwarded or was issued based on authentication that involved a forwarded ticket-granting ticket. |
|
The protocol employed for initial authentication required the use of hardware expected to be possessed solely by the named client. The hardware authentication method is selected by the KDC, and the strength of the method is not indicated. |
|
The ticket was issued by using the Authentication Service protocol instead of being based on a ticket-granting ticket. |
|
The ticket is not valid. |
|
Indicates to the ticket-granting server that a postdated ticket can be issued based on this ticket-granting ticket. |
|
The target of the ticket is trusted by the directory service for delegation. Thus, the clients may delegate their credentials to the server, which lets the server act as the client when talking to other services. |
|
The ticket has been postdated. The end service can check the ticket's authtime member to determine when the original authentication occurred. |
|
During initial authentication, the client was authenticated by the KDC before a ticket was issued. The strength of the preauthentication method is not indicated but is acceptable to the KDC. |
|
Indicates to the ticket-granting server that only nonticket-granting tickets can be issued with different network addresses. |
|
The ticket is a proxy. |
|
The ticket is renewable. If this flag is set, the time limit for renewing the ticket is set in the RenewTime member of a KERB_TICKET_CACHE_INFO structure. A renewable ticket can be used to obtain a replacement ticket that expires at a later date. |
|
Reserved for future use. Do not set this flag. |
|
Reserved. |
Flags
Reserved for future use. Set this member to zero.
KeyExpirationTime
A FILETIME structure that contains the time at which the key expires.
StartTime
A FILETIME structure that contains the time at which the ticket becomes valid.
EndTime
A FILETIME structure that contains the time at which the ticket expires.
RenewUntil
A FILETIME structure that contains the latest time a ticket can be renewed. Renewal requests sent after this time will be rejected.
TimeSkew
A FILETIME structure that contains the measured time difference between the current time on the computer issuing the ticket and the computer where the ticket will be used.
EncodedTicketSize
The size, in bytes, of the encoded ticket.
EncodedTicket
A buffer that contains the Abstract Syntax Notation One (ASN.1)-encoded ticket.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | ntsecapi.h |