rpc_gss_set_svc_name(3t)

rpc_gss_set_svc_name3t

Associate a gss-api service principal with an rpc service

Usage

#include <rpc/rpcsec_gss.h>

bool_t

rpc_gss_set_svc_name(const char *principal, const char *mechanism, u_int req_time, u_int program, u_int version);

Overview

This function registers a service principal which will be used to authenticate RPCSEC_GSS security contexts for a given RPC program and version.

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.

Releases

Unchanged in 5 releases since Debian 10 (Buster).

  1. 10–Arch

Availability

The rpc_gss_set_svc_name() function is part of libtirpc.

Authors

This manual page was written by Doug Rabson ⟨[email protected]⟩.

From libtirpc 1.3.8-1 in Arch Linux 2026-11-07. Parsed by carta from the page's mdoc source.