fnselect(1M)




NAME

     fnselect - select a specific naming service to use  for  the
     FNS Initial Context


SYNOPSIS

     fnselect [-D]

     fnselect naming-service


DESCRIPTION

     fnselect is used to set the specified naming service  to  be
     used  to  construct the bindings in the FNS Initial Context.
     This setting affects the entire machine and affects applica-
     tions      that      make      subsequent      calls      to
     fn_ctx_handle_from_initial(3XFN).  This   setting   can   be
     changed  only  by an administrator who has root privilege on
     the machine.


OPTIONS

     -D    Displays the actual naming service  used  to  generate
           the FNS Initial Context.


OPERANDS

     naming-service
           The following are possible values for naming-service:

           default
                 Use the FNS default  algorithm  for  determining
                 the target naming service.

           nisplus
                 Use NIS+ as the target naming service.

           nis   Use NIS as the target naming service.

           files Use /etc files as the target naming service.


USAGE

     When the default option  is  selected,  FNS  determines  the
     underlying naming service using the following algorithm:

        o  First, it checks for NIS+ with FNS installed.

        o  If the result is TRUE, then FNS assumes nisplus as the
           underlying naming service.

        o  Otherwise, it checks if the system is a NIS client.

        o  If TRUE, FNS assumes nis as the underlying naming ser-
           vice.

        o  Otherwise, FNS assumes /etc files.

     fnselect  without  any  arguments   displays   the   service
     currently  selected for the Initial Context (one of default,
     nisplus, nis, or files).

     When the -D option is specified and the current  setting  is
     default, fnselect will use the algorithm that is used by FNS
     and display the actual naming service used for the FNS  Ini-
     tial Context.


EXAMPLES

     Example 1: Using The fnselect Command

     The command

     example% fnselect nisplus
     will select NIS+ as the underlying naming  service  for  the
     FNS Initial Context.

     The command

     example% fnselect
     will print the naming service currently being used  to  gen-
     erate the FNS Initial Context.


EXIT STATUS

     0     Operation was successful.

     1     Operation failed.


ATTRIBUTES

     See attributes(5) for descriptions of the  following  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | Availability                | SUNWfns                     |
    |_____________________________|_____________________________|


SEE ALSO

     fnbind(1),     fnlist(1),     fnlookup(1),      fnunbind(1),
     fncreate(1M),      fncreate_fs(1M),    fncreate_printer(1M),
     fndestroy(1M),   fn_ctx_handle_from_initial(3XFN),    attri-
     butes(5), fns(5), fns_initial_context(5)


Man(1) output converted with man2html