Lines Matching defs:server

89  * The values between 0 and 65535 can work with both server versions.
99 * the first server with the empty lists of server controls and
100 * SASL mechanisms. It is invoked if it is not possible to obtain a server
111 /* get first server from config list unavailable otherwise */
123 gettext("No server found in configuration"));
129 ret->server = strdup(servers[0]);
130 if (ret->server == NULL) {
180 * This function requests a server from the cache manager through
184 __s_api_requestServer(const char *request, const char *server,
215 * In the 'Standalone' mode a server will be obtained
220 server,
225 * get first server from local list only once
233 "can not find any available server. "
245 ret_code = __s_api_ip2hostname(ret->server,
254 ret->server);
260 free(ret->server);
261 ret->server = NULL;
273 if (server != NULL) {
275 adata += strlen(server) + 1;
285 if (server != NULL) {
289 if (strlcat(space.s_d.ldap_call.ldap_u.domainname, server,
307 ret_code = __s_api_ip2hostname(ret->server,
316 ret->server);
322 free(ret->server);
323 ret->server = NULL;
339 (void) sprintf(errstr, gettext("No server returned from "
345 ret->server = strdup(ptr);
346 if (ret->server == NULL) {
349 /* Get server type */
352 (void) sprintf(errstr, gettext("No server type "
356 free(ret->server);
357 ret->server = NULL;
366 (void) sprintf(errstr, gettext("No server FQDN format "
370 free(ret->server);
371 ret->server = NULL;
376 free(ret->server);
377 ret->server = NULL;
592 * If serverAddr is NULL, then find a connection to any server
688 * Get the server capabilities from the root attributes
691 * in ns_standalone.c that it gets the server capabilities
694 * This function is used to obtain the same server information
853 bindHost = &sinfo.server;
859 * When obtaining the root DSE, connect to the server
862 sinfo.server = strdup(serverAddr);
863 if (sinfo.server == NULL)
867 rc = __s_api_ip2hostname(sinfo.server,
888 * We're given the server address, just use it.
892 * Only the server address fields of sinfo structure
897 sinfo.server = strdup(serverAddr);
898 if (sinfo.server == NULL) {
904 free(sinfo.server);
968 if ((rc != NS_LDAP_SUCCESS) || (sinfo.server == NULL) ||
969 (host && (strcasecmp(host, sinfo.server) == 0))) {
975 "request for a server failed"),
987 host = strdup(sinfo.server);
993 /* check if server supports password management */
996 /* check if server supports password less account mgmt */
1000 syslog(LOG_WARNING, "libsldap: server %s does not "
1018 * If not able to reach the server, inform the ldap
1019 * cache manager that the server should be removed
1020 * from its server list. Thus, the manager will not
1021 * return this server on the next get-server request
1022 * and will also reduce the server list refresh TTL,
1023 * so that it will find out sooner when the server
1032 * We contacted a server that we could
1035 * we need to try the server again. So,
1036 * do not remove the server yet, but
1037 * add it to the bad server list.
1040 * a). A good server is found or
1043 * a good server
1076 /* else, cleanup and go for the next server */
1118 con->serverAddr = sinfo.server; /* Store original format */
1262 * controls : controls returned by the server
1263 * errmsg : error message from the server
1268 * flag indicating if server supports password
1351 * This control is used if the server
1360 * server sends this control to
1368 * operation, the server sends back
1380 * This control is used if the server
1385 * The server sends this control back
1528 "%s server. A default value "
1852 const char *server,
1884 rc = __s_api_conn_mt_get(server, flags, cred, session, errorp,
1965 rc = makeConnection(&con, server, cred,
1969 /* not using bad server if credentials were supplied */
1989 * Free the down server list before
1996 rc = makeConnection(&con, server, &anon,
2037 * Free the down server list before
2044 rc = makeConnection(&con, server, authp,
2097 * Bind to the specified server or one from the server
2118 * server Bind to this LDAP server only
2132 * binding if server supports LDAP V3 password less
2142 const char *server,
2154 rc = getConnection(server, flags, cred, sessionId, session,
2258 * server - \[IPv6_address\][:port]
2263 * including the port number, if specified in server argument.
2280 cvt_hostname2ip(char *server, char *newaddr, int newaddr_size,
2292 s = strchr(server, ']');
2293 s = strchr(s != NULL ? s : server, ':');
2309 if (!__s_api_hostname2ip(server, &result, buffer, NSS_BUFLEN_HOSTS,
2390 * Let's try to resolve IP address of server.
2426 * serverAddr - the address of a server to which a connection
2428 * port - a port being listened by the server,
2433 * for all the subsequent operations against the server.
2813 * passwd_mgmt - a flag indicating that the server supports