*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> gss_import_name (3)              
Title
Content
Arch
Section
 

gss_import_name(3)

Contents


NAME    [Toc]    [Back]

       gss_import_name - Convert text name to internal form name.

SYNOPSIS    [Toc]    [Back]

       #include <gssapi/gssapi.h>

       OM_uint32 gss_import_name(
               OM_uint32 * minor_status,
               const gss_buffer_t input_name_buffer,
               const gss_OID input_name_type,
               gss_name_t * const output_name );

PARAMETERS    [Toc]    [Back]

       Kerberos 5 error code.  Buffer containing the text name to
       be converted.  Object identifier (OID) specifying the type
       of printable name. Applications may specify any OID recognized
 by the HP implementation of the GSS-API.

              Specify  GSS_C_NO_OID to use the Kerberos 5 default
              that is name type GSS_KRB5_NT_PRINCIPAL_NAME. Specify
  NULL if input_name_buffer contains an exported
              name.

              The supported name types are: GSS_C_NT_ANONYMOUS --
              This  name type is not supported by the HP Application
 Security SDK.   GSS_C_NT_EXPORT_NAME  --  This
              name  type  indicates  a  mechanism-specific  name.
              GSS_C_NT_HOSTBASED_SERVICE     --      Same      as
              GSS_KRB5_NT_HOSTBASED_SERVICE_NAME.
              GSS_C_NT_MACHINE_UID_NAME      --      Same      as
              GSS_KRB5_NT_MACHINE_UID_NAME.
              GSS_C_NT_STRING_UID_NAME      --      Same       as
              GSS_KRB5_NT_STRING_UID_NAME.  GSS_C_NT_USER_NAME --
              Same as  GSS_KRB5_NT_USER_NAME.   GSS_KRB5_NT_HOSTBASED_SERVICE_NAME
 -- This name type indicates that
              input_name_buffer contains a string representing  a
              host  service.  Its form is service@host where host
              is the name of the host.

              Kerberos 5 transforms  the  string  into  the  service/fqdn@TARGET_REALM
 principal, where fqdn is the
              host's fully qualified domain name and TARGET_REALM
              is  the  realm  the  host  is in. For example, telnet@joe
  would  be  transformed   into   the   telnet/[email protected]
 principal.

              HP  Application Security SDK has extended this name
              type to permit the  optional  prefix  service:  for
              compatibility  with  older Kerberos implementations
              (service:               is               stripped).
              GSS_KRB5_NT_MACHINE_UID_NAME   --  This  name  type
              indicates that  input_name_buffer  contains  a  UID
              representing a user on the local system. Its implementation
 and interpretation is UNIX-specific.

              Kerberos   5   transforms   the   UID   into    the
              user@LOCAL_REALM principal, where user is the login
              account that corresponds to the UID and LOCAL_REALM
              is the local system's default realm.

              HP   Application  Security  SDK  implementation  of
              gss_import_name() transforms the UID  to  a  string
              and calls gss_import_name() a second time, specifying
 GSS_KRB5_NT_STRING_UID_NAME as  the  name  type
              OID.      GSS_KRB5_NT_PRINCIPAL    --    Same    as
              GSS_KRB5_NT_PRINCIPAL_NAME.     GSS_KRB5_NT_PRINCIPAL_NAME
   --   This   name   type  indicates  that
              input_name_buffer contains a string representing  a
              Kerberos 5 principal. Same as rfc_krb5_c_OID.

              The  Kerberos 5 principal must contain a minimum of
              one name component, up to a  maximum  of  255  name
              components,  each separated by a forward slash (/).
              The Kerberos 5 principal has only one realm  component,
  separated  by an ampersand (@). If the realm
              is not specified, the default realm is assigned.

              For example, host/[email protected] is a
              string  that  represents  a  Kerberos  5 principal.
              rfc_krb5_c_OID   --    Treated    the    same    as
              GSS_KRB5_NT_PRINCIPAL_NAME.  Because  there  is  no
              officially designated variable  name  to  hold  the
              Kerberos  Version  5  mechanism OID, HP has defined
              this variable to hold the OID. Its use, however, as
              the  use of a similar variable in other implementations,
 results in code  that  is  not  source-level
              portable.  GSS_KRB5_NT_STRING_UID_NAME -- This name
              type indicates that  input_name_buffer  contains  a
              digit string representing the numeric identifier of
              a user on the local system.  Its implementation and
              interpretation  is  UNIX-specific. The digit string
              corresponds to a UID.

              Kerberos 5 mechanism transforms the  UID  into  the
              user@LOCAL_REALM  principal where user is the login
              account that corresponds to the numeric  identifier
              and  LOCAL_REALM  is  the  local  system's  default
              realm.  GSS_KRB5_NT_USER_NAME  --  This  name  type
              indicates  that input_name_buffer contains a string
              representing a user on the local system.

              Kerberos 5 mechanism  transforms  the  user's  name
              into  the user@LOCAL_REALM principal where user was
              specified in input_name_buffer and  LOCAL_REALM  is
              the local system's default realm.  Returned name in
              internal form.

              Storage associated with this name must be freed  by
              the   application   after   use   with  a  call  to
              gss_release_name().

DESCRIPTION    [Toc]    [Back]

       The gss_import_name() function converts a text  name  into
       an internal form name. The name type describes the parsing
       syntax, or rule, to use with the text name.

       The internal form of the name is returned in  a  structure
       that  must  be released by calling gss_release_name() once
       the application is finished using it.

       Use this function to  convert  the  external  form  of  an
       application  name  into the internal form required by GSSAPI
 functions.  External  form  names  are  text  strings.
       Internal  form  names are opaque, that is, unintelligible.
       The application passes in  an  object  identifier,  called
       name  type,  that specifies how to interpret its name. The
       default name type OID is a synonym for GSS_KRB5_NT_PRINCIPAL_NAME.


       The default principal name cannot be specified as the text
       name for conversion. It can only  be  used  for  acquiring
       credentials with gss_acquire_cred().

       The  HP  Application  Security  SDK supports the following
       generic name  types:  GSS_C_NT_EXPORT_NAME  GSS_C_NT_HOSTBASED_SERVICE
                    GSS_C_NT_MACHINE_UID_NAME
       GSS_C_NT_STRING_UID_NAME GSS_C_NT_USER_NAME

       Supported Kerberos 5  name  types  are:  GSS_KRB5_NT_HOSTBASED_SERVICE_NAME
            GSS_KRB5_NT_MACHINE_UID_NAME
       GSS_KRB5_NT_PRINCIPAL           GSS_KRB5_NT_PRINCIPAL_NAME
       GSS_KRB5_NT_STRING_UID_NAME GSS_KRB5_NT_USER_NAME

RETURN VALUES    [Toc]    [Back]

       GSS_S_BAD_MECH                  xx01xxxx
       GSS_S_BAD_NAME                  xx02xxxx
       GSS_S_BAD_NAMETYPE              xx03xxxx
       GSS_S_CALL_BAD_STRUCTURE        03xxxxxx
       GSS_S_CALL_INACCESSIBLE_READ    01xxxxxx
       GSS_S_CALL_INACCESSIBLE_WRITE   02xxxxxx
       GSS_S_COMPLETE                  00000000
       GSS_S_FAILURE                   xx0Dxxxx

PORTABILITY CONSIDERATIONS    [Toc]    [Back]

       Using  Kerberos  5 name types may limit the portability of
       the  application.   Generic  name  types  should  be  used
       instead.

       Name type GSS_C_NT_ANONYMOUS is not supported.

SEE ALSO    [Toc]    [Back]

      
      
       Functions:  csf_gss_acq_user(3), gss_canonicalize_name(3),
       gss_compare_name(3),    gss_display_name(3),    gss_duplicate_name(3), gss_export_name(3), gss_release_name(3)



                                               gss_import_name(3)
[ Back ]
 Similar pages
Name OS Title
gss_display_name Tru64 Convert internal form name to plain text.
gss_import_name HP-UX convert a printable name to an internal form
gss_canonicalize_name HP-UX convert an internal name to an internal mechanism name (MN) representation of an opaque internal name
XmTextGetSubstringWcs IRIX A Text function that retrieves a portion of a wide character internal text buffer
XmTextGetSubstringWcs Tru64 A Text function that retrieves a portion of a wide character internal text buffer
XmTextGetSubstringWcs HP-UX A Text function that retrieves a portion of a wide character internal text buffer
XmTextGetSubstring HP-UX A Text function that retrieves a copy of a portion of the internal text buffer
XmTextGetSubstring Tru64 A Text function that retrieves a copy of a portion of the internal text buffer
XmTextGetSubstring IRIX A Text function that retrieves a copy of a portion of the internal text buffer
cap_from_text IRIX convert a POSIX capabilities string to internal form, convert capabilities to a POSIX capabilities string, or
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service