rpc_gss_getcred(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

rpc_gss_getcred(3c)

Standard C Library Functions                               rpc_gss_getcred(3C)



NAME
       rpc_gss_getcred - get credentials of client

SYNOPSIS
       #include <rpc/rpcsec_gss.h>

       bool_t rpc_gss_getcred(struct svc_req *req, rpc_gss_rawcred_ t **rcred,
            rpc_gss_ucred **ucred, void **cookie);

DESCRIPTION
       rpc_gss_getcred()  is  used  by  a server to fetch the credentials of a
       client. These credentials may either be  network  credentials  (in  the
       form of a rpc_gss_rawcred_t structure) or UNIX credentials.


       For  more  information on RPCSEC_GSS data types, see the rpcsec_gss(3C)
       man page.

PARAMETERS
       Essentially, rpc_gss_getcred() passes a pointer to a request  (svc_req)
       as  well  as  pointers  to two credential structures and a user-defined
       cookie; if rpc_gss_getcred() is successful,  at  least  one  credential
       structure is "filled out" with values, as is, optionally, the cookie.

       req       Pointer  to  the  received service request. svc_req is an RPC
                 structure containing information on the  context  of  an  RPC
                 invocation,  such as program, version, and transport informa‐
                 tion.


       rcred     A pointer to an  rpc_gss_rawcred_t  structure  pointer.  This
                 structure  contains the version number of the RPCSEC_GSS pro‐
                 tocol being used; the security mechanism and  QOPs  for  this
                 session  (as  strings);  principal names for the client (as a
                 rpc_gss_principal_t structure) and server (as a string);  and
                 the  security service (integrity, privacy, etc., as an enum).
                 If an application is not interested in these values,  it  may
                 pass NULL for this parameter.


       ucred     The  caller's UNIX credentials, in the form of a pointer to a
                 pointer to a rpc_gss_ucred_t structure,  which  includes  the
                 client's uid and gids. If an application is not interested in
                 these values, it may pass NULL for this parameter.


       cookie    A four-byte quantity that an application may use in any  man‐
                 ner  it  wants to; RPC does not interpret it. (For example, a
                 cookie may be a pointer or index to a structure  that  repre‐
                 sents   a  context  initiator.)  See  also  rpc_gss_set_call‐
                 back(3C).


RETURN VALUES
       rpc_gss_getcred() returns TRUE if  it  is  successful;  otherwise,  use
       rpc_gss_get_error() to get the error associated with the failure.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _  Availabilitysystem/library/security/rpcsec  _  MT-Lev‐
       elMT-Safe


SEE ALSO
       rpc(3C),   rpc_gss_set_callback(3C),   rpc_gss_set_svc_name(3C),   rpc‐
       sec_gss(3C), attributes(7)


       ONC+ RPC Developer's Guide


       Linn, J. RFC 2078, Generic Security Service Application Program  Inter‐
       face, Version 2. Network Working Group. January 1997.



Oracle Solaris 11.4               22 Aug 2011              rpc_gss_getcred(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3