Lines Matching defs:to

4  * The contents of this file are subject to the terms of the
155 char *to;
160 * The status of a server to be removed. It can be up or down.
189 logit("Error: Unable to read '%s': %s\n",
236 if (p->to)
237 free(p->to);
298 char *from, char **to)
349 if (from == NULL || to == NULL || *to == NULL)
355 * replace old "to" value with new one
362 free(newp->to);
363 newp->to = strdup(*to);
381 newp->to = strdup(*to);
392 if (from == NULL || to == NULL)
394 *to = NULL;
400 *to = strdup(idx->to);
410 if (to == NULL)
414 entry_num, to));
433 * and calls getldap_get_rootDSE to update info. getldap_get_rootDSE
434 * calls sync_current_with_update_copy to sync up 2 copies before thr_exit.
442 * makes door call GETLDAPSERVER to get the server info and getldap_get_rootDSE
500 * strdup the strings to avoid the double free problem.
569 * __ns_ldap_getRootDSE is unable to bind using the configured
570 * credentials, it will try to fall back to using anonymous, non-SSL
575 * don't want them to be disturbed.
639 "SIGUSR1 signal sent to "
801 /* convert to milliseconds */
822 "No memory to create thread ID list.\n");
858 * to this function from getldap_serverInfo_op().
921 * parse the input string to get req and addr,
951 * This function is called to get server info list
952 * and pass it back to door call clients.
953 * Access the current copy (sinfo[0]) to get such
989 * to make sure that it is
995 * to mess up the server
999 * Make a copy of addr to contact
1001 * to avoid long wait and possible
1002 * recursion to contact an LDAP server.
1056 "%s is converted to %s\n",
1149 * to this function from getldap_serverInfo_op().
1215 * which is still identical to the update copy.
1217 * Use the update copy(sinfo[1]) to show status
1286 #define R_HEADER1 " Configured to NO REFRESH."
1382 logit("Error: Unable to get configuration "
1389 logit("Error: Unable to get configuration "
1406 * algorithm used by ldap_cachemgr. The idea is to have the
1412 * If any time a server is found to be down/bad, either
1414 * the GETLDAPSERVER door calls, the TTL will be set to half
1417 * are found to be down/bad, the TTL will be set to minimum,
1418 * so that a "no-server" refresh loop should be entered to try
1419 * to find a good server as soon as possible. The caller
1422 * refresh_ttl is set to zero, this should occur during
1425 * from an LDAP server. The maximum is set to the value of
1428 * not be retrieved, the maximum is set to the macro
1430 * set to REFRESHTTL_MIN, which is the TCP connection timeout
1435 * refresh_ttl, will be set to the smaller of the two,
1437 * The idea is to have a low starting value and have the value
1439 * the value will move up to maximum and stay there if the
1489 * init the min. TTL to
1495 * try to set the max. TTL to
1498 * set it to REFRESHTTL_MAX (12 hours)
1514 * init the first TTL to the smaller of the two:
1576 * set refresh TTL to miminum
1698 * set refresh_ttl to zero to indicate a fresh one
1714 * to start the "no-server" refresh loop
1737 * serverInfo_old needs to be the same as
1792 * to start the "no-server" refresh loop
1824 * if need to go into the "no-server" refresh
1825 * loop, set timout value to
1853 " about to sleep for %d second(s)...\n",
1869 * serverInfo_old to retrieve server infomation.
1870 * serverInfo_old is equal to serverInfo
1937 * if no good server found, need to go into
1939 * to find a server as soon as possible
1962 * wake it up to make it wait on the new
2009 * causes this thread to wait until
2010 * it is time to do refresh,
2233 logit("Error: Unable to profile name: %s\n",
2239 logit("Error: Unable to profile name: %s\n",
2269 "Ignoring attempt to refresh nonexistent "
2272 logit("Ignoring attempt to refresh nonexistent "
2278 "Error: Unable to refresh profile:%s:"
2280 logit("Error: Unable to refresh profile:"
2283 syslog(LOG_ERR, "Error: Unable to refresh "
2286 logit("Error: Unable to refresh from profile "
2323 logit("update_from_profile: reset profile TTL to %d"
2336 logit("Error: downloaded profile failed to pass "
2361 logit("Error: Unable to read '%s': %s\n",
2364 gettext("\nError: Unable to read '%s': %s\n"),
2433 * It depends on NS_LDAP_CACHETTL_P to set it's value
2457 logit("Error: Unable to update from profile\n");
2490 logit("Error: Failed to get self credential configuration %d\n",
2509 syslog(LOG_ERR, "Unable to refresh profile, LDAP configuration"
2517 * If we were to create a backup file and rename it here, that
2519 * to roll back.
2522 syslog(LOG_ERR, "Unable to refresh profile consistently, "
2588 "(1)about to sleep"
2635 logit("getldap_refresh: (2)about to sleep "
2736 * It creates the header and data stream to be door returned and notify
2812 * It creates the header and data stream to be door returned and notify
2881 * The thread is spawned to do contact_server() so it won't be blocking
2884 * getldap_serverInfo_op(INFO_OP_REMOVESERVER, ...) to return to the remaining
2885 * program flow. It's meant to maintain the original program flow yet be
2909 * It starts a thread to contact server and remove server to avoid long wait