rpc_gss_set_svc_name — Associate a GSS-API service principal with an RPC service
Contents
Availability
The rpc_gss_set_svc_name() function is part of libtirpc.
Description
This function registers a service principal which will be used to authenticate RPCSEC_GSS security
contexts for a given RPC program and version.
Name
rpc_gss_set_svc_name — Associate a GSS-API service principal with an RPC service
Parameters
principal A string representing the service principal in the form "service@hostname"
mechanism The name of the security mechanism
req_time The time in seconds that the service credentials should remain valid. See gss_acquire_cred(3)
for more details. principal.
program RPC program number for this service
version RPC program version for this service
Return Values
Returns TRUE if the service principal was registered or FALSE otherwise.
See Also
rpc(3), gssapi(3), gss_acquire_cred(3), rpcsec_gss(3)
Synopsis
#include<rpc/rpcsec_gss.h>bool_trpc_gss_set_svc_name(constchar*principal, constchar*mechanism, u_intreq_time, u_intprogram,
u_intversion);
