Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
25.  Federated Naming Service (FNS) FNS Problems and Solutions Cannot Create Host- or User-related Contexts  Previous   Contents   Next 
   
 

Cannot Remove a Context You Created

Symptom:

When you run fndestroy on the host or user context the context is not removed.

Possible Cause:

You do not own the host or user context. When you create a user or host context it is owned by the host or user, and not by the administrator who set up the namespace.

Diagnosis:

Check the NIS_GROUP environment variable.

Solution:

The NIS_GROUP environment variable needs to be set to the group name of the administrator who will administer the contexts.

Name in Use with fnunbind

Symptom:

You get "name in use" when trying to remove bindings. It works for certain names but not for others.

Possible Cause:

You cannot unbind the name of a context. This restriction is in place to avoid leaving behind contexts that have no name ("orphaned contexts").

Diagnosis:

Run the fnlist command on the name to verify that it is a context.

Solution:

If the name is a context, use the fndestroy command to destroy the context.

Name in Use with fnbind/fncreate -s

Symptom:

You use the -s option with fnbind and fncreate, but for certain names you get "name in use."

Possible Cause:

fnbind -s and fncreate -soverwrite the existing binding if it already exists; but if the old binding is one that must be kept to avoid orphaned contexts, the operation fails with a "name in use" error because the binding could not be removed. This is done to avoid orphaned contexts.

Diagnosis:

Run the fnlist command on the name to verify that it is a context.

Solution:

Run the fndestroy command to remove the context before running fnbind or fncreate on the same name.

fndestroy/fnunbind Does Not Return Operation Failed

Symptom:

When you do an fndestroy or fnunbind on certain names that you know do not exist, you receive no indication that the operation failed.

Possible Cause:

The operation did not fail. The semantics of fndestroy and fnunbind are that if the terminal name is not bound, the operation returns success.

Diagnosis:

Run the fnlookup command on the name. You should receive the message, "name not found."

Solution:

Not applicable.

Some Common Error Messages

 

attribute no permission

:. The caller did not have permission to perform the attempted attribute operation.

 

attribute value required

:. The operation attempted to create an attribute without a value, and the specific naming system does not allow this.

 

authentication failure

:. The operation could not be completed because the principal making the request cannot be authenticated with the name service involved. If the service is NIS+, check that you are identified as the correct principal (run the command nisdefaults) and that your machine has specified the correct source for publickeys. Check that the /etc/nsswitch.conf file has the entry, publickey: nisplus.

 

bad reference

:. FNS could not interpret the contents of the reference. This can result if the contents of the reference have been corrupted or when the reference identifies itself as an FNS reference, but FNS doesn't know how to decode it.

 

Cannot obtain Initial Context

:. Indicates an installation problem. See "Cannot Obtain Initial Context".

 

communication failure

:. FNS could not communicate with the name service to complete the operation.

 

configuration error

An error resulted because of configuration problems. Examples:

(1) The bindings table is removed out-of-band (outside of FNS).

(2) A host is in the NIS+ hosts directory object but does not have a corresponding FNS host context.

 

context not empty

:. An attempt has been made to remove a context that still contains bindings.

 

continue operation using status values

:. The operation should be continued using the remaining name and the resolved reference returned in the status.

 

error

:. An error that cannot be classified as one of the other errors listed above occurred while processing the request. Check the status of the naming services involved in the operation and see whether any of them are experiencing extraordinary problems.

 

illegal name

:. The name supplied is not a legal name.

 

incompatible code sets

:. The operation involved character strings from incompatible code sets, or the supplied code set is not supported by the implementation.

 

invalid enumeration handle

:. The enumeration handle supplied is invalid. The handle could have been from another enumeration, an update operation might have occurred during the enumeration, or there might have been some other reason.

 

invalid syntax attributes

:. The syntax attributes supplied are invalid or insufficient to fully specify the syntax.

 

link error

:. An error occurred while resolving an XFN link with the supplied name.

 

malformed link

:. A malformed link reference was found during a fn_ctx_lookup_link() operation. The name supplied resolved to a reference that was not a link.

 

name in use

:. The name supplied is already bound in the context.

 

name not found

:. The name supplied was not found.

 

no permission

:. The operation failed because of access control problems. See ""No Permission" Messages (FNS)". See also "No Permission".

 

no such attribute

:. The object did not have an attribute with the given identifier.

 

no supported address

:. No shared library could be found under the /usr/lib/fn directory for any of the address types found in the reference bound to the FNS name. Shared libraries for an address type are named according to this convention: fn_ctx_address_type.so. Typically there is a link from fn_ctx_address_type.so to fn_ctx_address_type.so.1.

For example, a reference with address type onc_fn_nisplus would have a shared library in the path name: /usr/lib/fn/fn_ctx_onc_fn_nisplus.so.

 

not a context

:. The reference does not correspond to a valid context.

 

partial result returned

:. The operation returned a partial result.

 

Success

(1) The request was successful. This message is generated by the NIS+ error code constant: NIS_SUCCESS. See the nis_tables man page for additional information.

(2) :. Operation succeeded.

 

syntax not supported

:. The syntax type is not supported.

 

too many attribute values

:. The operation attempted to associate more values with an attribute than the naming system supports.

 

unavailable

:. The name service on which the operation depends is unavailable.

 

link loop limit reached

:. A nonterminating loop was detected due to XFN links encountered during composite name resolution, or the implementation-defined limit was exceeded on the number of XFN links allowed for a single operation.

 
 
 
  Previous   Contents   Next