logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rpc_gss_set_svc_name — Associate a GSS-API service principal with an RPC service

Authors

       This manual page was written by Doug Rabson <dfr@FreeBSD.org>.

Debian                                          January 26, 2010                         RPC_GSS_SET_SVC_NAME(3)

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);

See Also