rpc_binding_inq_auth_info(3) — Subroutines
NAME
rpc_binding_inq_auth_info - Returns authentication and authorization information from a server binding handle
Used by client applications.
SYNOPSIS
#include <dce/rpc.h>
#include <dce/sec_login.h>
void rpc_binding_inq_auth_info(
rpc_binding_handle_t binding ,
unsigned_char_t ∗∗server_princ_name ,
unsigned32 ∗protect_level ,
unsigned32 ∗authn_svc ,
rpc_auth_identity_handle_t ∗auth_identity ,
unsigned32 ∗authz_svc ,
unsigned32 ∗status );
PARAMETERS
Input
bindingSpecifies the server binding handle from which to return the authentication and authorization information.
Output
server_princ_nameReturns a pointer to the expected principal name of the server referenced by binding. The content of the returned name and its syntax is defined by the authentication service in use. Specifying NULL prevents the routine from returning this argument. In this case, the caller does not have to call the rpc_string_free routine.
protect_levelReturns the protection level used for remote procedure calls made with binding. The protection level determines the degree to which authenticated communications between the client and the server are protected. Note that the returned level may be different from the level specified for protect_level on the call to rpc_binding_set_auth_info. If the RPC runtime or the RPC protocol in the bound protocol sequence does not support a specified level, the level is automatically upgraded to the next higher supported level. Specifying NULL prevents the routine from returning this argument. The possible protection levels are
rpc_c_protect_level_default
Use the default protection level for the specified authentication service.
rpc_c_protect_level_nonePerform no protection.
rpc_c_protect_level_connect
Perform protection only when the client establishes a relationship with the server.
rpc_c_protect_level_callPerform protection only at the beginning of each remote procedure call when the server receives the request.
rpc_c_protect_level_pktEnsure that all data received is from the expected client.
rpc_c_protect_level_pkt_integrity
Ensure and verify that none of the data transferred between client and server has been modified.
rpc_c_protect_level_pkt_privacy
Perform protection as specified by all of the previous levels and also encrypt each remote procedure call argument value.
authn_svcReturns the authentication service used for remote procedure calls made with binding. Specifying NULL prevents the routine from returning this argument. The possible authentication services are
rpc_c_authn_noneNo authentication
rpc_c_authn_dce_secretDCE shared-secret key authentication
rpc_c_authn_dce_publicDCE public key authentication (reserved for future use)
rpc_c_authn_defaultDCE default authentication service
auth_identityReturns a handle for the data structure that contains the client’s authentication and authorization credentials. This parameter must be cast as appropriate for the authentication and authorization services established via rpc_binding_set_auth_info or rpc_ss_register_auth_info. When using the rpc_c_authn_dce_secret authentication service and any authorization service, this value must be a sec_login_handle_t obtained from one of the following routines:
•sec_login_setup_identity
•sec_login_get_current_context
•sec_login_newgroups
Specifying NULL prevents the routine from returning this argument.
authz_svcReturns the authorization service used for remote procedure calls made with binding. Specifying NULL prevents the routine from returning this argument. The possible authorization services are
rpc_c_authz_noneServer performs no authorization.
rpc_c_authz_nameServer performs authorization based on the client principal name.
rpc_c_authz_dceServer performs authorization using the client’s DCE privilege attribute certificate (PAC) sent to the server with each remote procedure call made with binding. Generally, access is checked against DCE access control lists (ACLs).
statusReturns the status code from this routine. This status code indicates whether the routine completed successfully or, if not, why not. The possible status codes and their meanings are as follows:
rpc_s_okSuccess.
rpc_s_invalid_bindingInvalid binding handle.
rpc_s_wrong_kind_of_binding
Wrong kind of binding for operation.
rpc_s_binding_has_no_auth
Binding has no authentication information.
DESCRIPTION
The rpc_binding_inq_auth_info routine returns authentication and authorization information associated with the specified server binding handle. The calling client associates the authentication and authorization data with the server binding handle by a prior call to the rpc_binding_set_auth_info routine.
The RPC runtime allocates memory for the returned server_princ_name argument. The caller is responsible for calling the rpc_string_free routine for the returned argument string.
NOTES
For this release, the RPC authentication (RPC auth) routines are not implemented, nor is an independent security service provided.
RETURN VALUES
None.
RELATED INFORMATION
Functions: rpc_binding_set_auth_info(3), rpc_string_free(3)