Lines Matching +defs:val +defs:to

4  * The contents of this file are subject to the terms of the
53 * Path to certificates used for secure bind (no former option)
57 * Default server (no former option) Refer to DUA Config
75 * Profile name to use for init (ldapclient) or
78 * Client info TTL. If set to 0 this information will not be
92 * Allow Administrator to change shadow data in LDAP
151 /* files to (possibiliy) restore */
185 /* Command to copy files */
193 /* Files that need to be just removed */
196 /* Output defines to suppress if quiet mode set */
225 /* Used to turn off profile checking */
245 /* multival_t is used to hold params that can have more than one value */
256 * clientopts_t is used to hold and pass around the param values from
316 static int file_move(const char *from, const char *to);
345 CLIENT_FPUTS(gettext("Unable to set locale.\n"), stderr);
349 CLIENT_FPUTS(gettext("Unable to set textdomain.\n"), stderr);
513 /* Backwards compatibility to support system install */
532 "You must be root (SuperUser) to run this command.");
556 * must be set to TRUE.
564 "be specified if enableShadowUpdate is not set to TRUE \n"),
684 gettext("Restoring machine to previous "
740 * The following macro is used to do a __ns_ldap_setParam().
744 * error return code. This macro keeps us from having to
745 * repeat this code for every call to setParam as was done
766 * The following macro is used to check if an arg has already been set
768 * This was made into a macro to avoid the duplication of this code many
837 /* Set version to latest (not version 1) */
840 /* Set profileTTL to 0 since NO profile on manual */
910 gettext("About to modify this machines "
914 /* get ready to start playing with files */
926 gettext("System not in state to enable ldap client.\n"),
1073 /* Coninue and try to recover what we can */
1123 "not allowed. If you want to use profiles "
1206 gettext("About to modify this machines configuration "
1210 /* get ready to start playing with files */
1222 gettext("Unable to backup the ldap client files!\n"),
1284 "failed! Machine needs to be "
1316 /* Coninue and try to recover what we can */
1348 CLIENT_FPUTS(gettext("About to generate a profile\n"), stderr);
1375 /* Set version to latest (not version 1) */
1466 gettext("About to configure machine by downloading "
1528 * We don't want to force users to always specify authentication
1530 * have to specify appropriate -a though.
1764 gettext("About to modify this machines configuration "
1768 /* get ready to start playing with files */
1786 gettext("System not in state to enable ldap client.\n"),
1927 /* Coninue and try to recover what we can */
1979 gettext("\nGenerate a profile used to set up clients "
1991 * import_service is called to perform an "nscfg import -f" of a given
2036 * stop_services is called to stop network services prior to their
2042 * In terms of SMF, this translates to disabling the services. So we
2043 * try to disable them if they are in any other state
2062 /* Not serious, but tell user what to do */
2064 "failed with (%d). You may need to restart "
2065 "it manually for changes to take effect.\n"),
2092 /* Not serious, but tell user what to do */
2094 "failed with (%d). You may need to restart "
2095 "it manually for changes to take effect.\n"),
2152 * start_services is called to start up network services after config
2157 * with files "recovered" will attempt to be started.
2197 * we want to start ldap and not start yp.
2242 * recovery. We want to start whatever services were running
2246 * which services to start based on the files we recovered
2250 /* uninit and recover should set flags of what to start */
2311 * credCheck is called to check if credentials are required for this
2332 gettext("Error %d while trying to retrieve "
2341 gettext("Error %d while trying to retrieve "
2349 gettext("Error %d while trying to retrieve proxyDN\n"),
2357 gettext("Error %d while trying to retrieve "
2372 credProxy = 0; /* flag to indicate if we have a credLevel of proxy */
2442 * adminCredCheck is called to check if the admin credential is required
2444 * to TRUE then credential info is required (adminDN and adminPassword).
2462 /* If shadow update not enabled, then no need to check */
2467 gettext("Error %d while trying to retrieve "
2487 gettext("Error %d while trying to retrieve credLevel\n"),
2498 gettext("Error %d while trying to retrieve authMethod\n"),
2509 gettext("Error %d while trying to retrieve adminDN\n"),
2520 gettext("Error %d while trying to retrieve "
2536 credSelf = 0; /* flag to indicate if we have a credLevel of self */
2591 CLIENT_FPUTS(gettext("Unable to get admin password\n"),
2625 * try to restore the previous name space on this machine
2765 /* "name" would have to be huge for this, but just in case */
2845 * try to save the current state of this machine.
2883 gettext("Unable to remove backup "
2893 gettext("file_backup: Failed to make %s backup "
2966 /* moving /var/yp/binding will cause ypbind to core dump */
2999 /* point to file name, not path delim (/) */
3051 * This function is used to temporily backup the LDAP client files in /var/ldap
3052 * that the "mod" operation needs to update. If an error occurs then the
3053 * function mod_recover() can be invoke to recover the unmodified files.
3090 * This function is used to recover the temporily backed up files by
3161 gettext("Empty value passed to multival_add\n"),
3394 char *val = NULL;
3401 val = strchr(param, '=');
3402 if (val == NULL) {
3410 *val = '\0';
3414 *paramVal = val+1;
3415 *val = '='; /* restore original param */
3421 *val = '='; /* restore original param */
3623 * file_move() - Used to move a config file (backup/restore).
3625 * This function uses a system() call with /bin/mv to handle the
3630 file_move(const char *from, const char *to)
3638 rmCommand, to);
3642 * to so that the mv command that follows doesn't move a dir
3645 * if an error occurs (aka nothing to remove) ignore it.
3650 mvCommand, from, to);
3653 * This function should only be used internally to move
3654 * system files to/from the backup directory. For security
3707 * If the service was previously in maintenance then we need to
3710 * clear will actually cause it to be enabled/disabled.
3726 /* Check if we need to wait ? */
3757 * failed and guess is restarter failed to apply the timeout as well.
3759 * some other mechanism available from smf to handle such situation.
3768 gettext("offline to disable"));
3777 * Wait for "max" usecs for the service described by "fmri" to change
3778 * to "state". If check_maint is true then return immediately if
3870 * Returns default if error, the timeout val otherwise
3904 gettext("failed to retrieve timeout property"),
3915 gettext("failed to retrieve timeout value"),