2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 2N/A * fedfs_smf_get_pg() - create a property group name based on host/port. 2N/A * On success, returns an allocated string with the name, which the 2N/A * caller must free. On failure, returns NULL. 2N/A if (*s ==
'.' || *s ==
',' || *s ==
'=')
2N/A * fedfs_smf_lookup() - look up the distinguished name (user), 2N/A * password, NCE and security details for a particular host/port. 2N/A * On success, returns a pointer to an allocated nsdb_info_t structure 2N/A * which must be freed by the caller. On failure, returns NULL. 2N/A "FedFS failed to find binddn property in pg %s:%s\n",
2N/A "FedFS failed to find bindpw property in pg %s:%s\n",
2N/A "FedFS failed to find sectype property in pg %s:%s\n",
2N/A "FedFS failed to find certpath property in pg %s:%s\n",
2N/A "FedFS failed to find nce property in pg %s:%s\n",
2N/A * get_pg_value() - from property group, get a named astring value. 2N/A * fedfs_smf_list() - enumerate all nsdbparams entried 2N/A * Returns the number of entries in the allocated array of nsdb_list_t 2N/A * entries to which the passed argument points on success. The array 2N/A * must be freed by the caller. On failure, the return is zero. 2N/A * fedfs_smf_delete() - delete the SMF property group entry for host/port. 2N/A * Returns 0 on success and -1 on failure, usually setting scf_error. 2N/A * A caller may print error diagnosis with scf_strerror(). 2N/A err == 0 ?
"worked" :
"failed");
2N/A "FedFS failed to delete pg %s:%s\n",
2N/A * set_pg_value() - write a value out to SMF 2N/A * Returns 0 on success and -1 on failure, usually setting scf_error. 2N/A * A caller may print error diagnosis with scf_strerror(). 2N/A * fedfs_smf_update() - update or create the SMF property group entry for 2N/A * Returns 0 on success and -1 on failure, while also setting scf_error. 2N/A * A caller may print error diagnosis with scf_strerror(). 2N/A "FedFS failed to add property to pg %s:%s\n",
2N/A * fedfs_get_default_host() - get a default host value from env or SMF. 2N/A * On success, returns an allocated string with the name, which the 2N/A * caller must free. On failure, returns NULL. 2N/A * fedfs_get_default_port() - get a default port value from env or SMF. 2N/A * On success, returns an allocated string with the name, which the 2N/A * caller must free. On failure, returns NULL. 2N/A * fedfs_use_loopback() - query SMF "force_loopback" property 2N/A * -1: inconclusive (likely no such property or FMRI) 2N/A * 0: force_loopback is false 2N/A * 1: force_loopback is true 2N/A "FedFS failed to find force_loopback property:%s\n",
2N/A * fedfs_set_default() - update the SMF default property; properties 2N/A * are hostname and port. 2N/A * Returns 0 on success and -1 on failure, while also setting scf_error. 2N/A * A caller may print error diagnosis with scf_strerror(). 2N/A "FedFS failed to update default pg: %s\n",
2N/A * Returns 0 on success and -1 on failure, while also setting scf_error. 2N/A * A caller may print error diagnosis with scf_strerror(). 2N/A "FedFS failed to write force_loopback property:%s\n",