krb5_auth - Online Linux Manual PageSection : 3
Updated : Tue Nov 15 2022
Source : Version 7.8.0
Note : Heimdal Kerberos 5 library

NAMEkrb5_auth − Heimdal Kerberos 5 authentication functions

SYNOPSIS

FunctionsKRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_rd_req_in_ctx_alloc (krb5_context context, krb5_rd_req_in_ctx *ctx)
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_rd_req_in_set_keytab (krb5_context context, krb5_rd_req_in_ctx in, krb5_keytab keytab)
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_rd_req_in_set_pac_check (krb5_context context, krb5_rd_req_in_ctx in, krb5_boolean flag)
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_rd_req_out_get_server (krb5_context context, krb5_rd_req_out_ctx out, krb5_principal *principal)
KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_rd_req_out_ctx_free (krb5_context context, krb5_rd_req_out_ctx ctx)
KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_rd_req_ctx (krb5_context context, krb5_auth_context *auth_context, const krb5_data *inbuf, krb5_const_principal server, krb5_rd_req_in_ctx inctx, krb5_rd_req_out_ctx *outctx)

Detailed Description

Function Documentation

KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_rd_req_ctx (krb5_context context, krb5_auth_context * auth_context, const krb5_data * inbuf, krb5_const_principal server, krb5_rd_req_in_ctx inctx, krb5_rd_req_out_ctx * outctx)The core server function that verify application authentication requests from clients​. Parameters context Keberos 5 context​.
auth_context the authentication context, can be NULL, then default values for the authentication context will used​.
inbuf the (AP-REQ) authentication buffer
server the server to authenticate to​. If NULL the function will try to find any available credential in the keytab that will verify the reply​. The function will prefer the server specified in the AP-REQ, but if there is no mach, it will try all keytab entries for a match​. This has serious performance issues for large keytabs​.
inctx control the behavior of the function, if NULL, the default behavior is used​.
outctx the return outctx, free with krb5_rd_req_out_ctx_free()​.
Returns Kerberos 5 error code, see krb5_get_error_message()​.

KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_rd_req_in_ctx_alloc (krb5_context context, krb5_rd_req_in_ctx * ctx)Allocate a krb5_rd_req_in_ctx as an input parameter to krb5_rd_req_ctx()​. The caller should free the context with krb5_rd_req_in_ctx_free() when done with the context​. Parameters context Keberos 5 context​.
ctx in ctx to krb5_rd_req_ctx()​.
Returns Kerberos 5 error code, see krb5_get_error_message()​.

KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_rd_req_in_set_keytab (krb5_context context, krb5_rd_req_in_ctx in, krb5_keytab keytab)Set the keytab that krb5_rd_req_ctx() will use​. Parameters context Keberos 5 context​.
in in ctx to krb5_rd_req_ctx()​.
keytab keytab that krb5_rd_req_ctx() will use, only copy the pointer, so the caller must free they keytab after krb5_rd_req_in_ctx_free() is called​.
Returns Kerberos 5 error code, see krb5_get_error_message()​.

KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_rd_req_in_set_pac_check (krb5_context context, krb5_rd_req_in_ctx in, krb5_boolean flag)Set if() is going to check the Windows PAC or not Parameters context Keberos 5 context​.
in krb5_rd_req_in_ctx to check the option on​.
flag flag to select if to check the pac (TRUE) or not (FALSE)​.
Returns Kerberos 5 error code, see krb5_get_error_message()​.

KRB5_LIB_FUNCTION void KRB5_LIB_CALL krb5_rd_req_out_ctx_free (krb5_context context, krb5_rd_req_out_ctx ctx)Free the krb5_rd_req_out_ctx​. Parameters context Keberos 5 context​.
ctx krb5_rd_req_out_ctx context to free​.

KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_rd_req_out_get_server (krb5_context context, krb5_rd_req_out_ctx out, krb5_principal * principal)Get the principal that was used in the request from the client​. Might not match whats in the ticket if krb5_rd_req_ctx() searched in the keytab for a matching key​. Parameters context a Kerberos 5 context​.
out a krb5_rd_req_out_ctx from krb5_rd_req_ctx()​.
principal return principal, free with krb5_free_principal()​.

AuthorGenerated automatically by Doxygen for Heimdal Kerberos 5 library from the source code​.
0
Johanes Gumabo
Data Size   :   19,057 byte
man-krb5_rd_req_in_ctx_alloc.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 171,012
Visitor ID   :     :  
Visitor IP   :   3.142.198.148   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.