Lines Matching defs:server

90  * The values between 0 and 65535 can work with both server versions.
100 * the first server with the empty lists of server controls and
101 * SASL mechanisms. It is invoked if it is not possible to obtain a server
112 /* get first server from config list unavailable otherwise */
124 gettext("No server found in configuration"));
130 ret->server = strdup(servers[0]);
131 if (ret->server == NULL) {
180 * This function requests a server from the cache manager through
185 __s_api_requestServer(const char *request, const char *server,
216 * In the 'Standalone' mode a server will be obtained
221 server,
226 * get first server from local list only once
234 "can not find any available server. "
246 ret_code = __s_api_ip2hostname(ret->server,
255 ret->server);
261 free(ret->server);
262 ret->server = NULL;
274 if (server != NULL) {
276 adata += strlen(server) + 1;
286 if (server != NULL) {
290 if (strlcat(space.s_d.ldap_call.ldap_u.domainname, server,
308 ret_code = __s_api_ip2hostname(ret->server,
317 ret->server);
323 free(ret->server);
324 ret->server = NULL;
340 (void) sprintf(errstr, gettext("No server returned from "
346 ret->server = strdup(ptr);
347 if (ret->server == NULL) {
354 (void) sprintf(errstr, gettext("No server FQDN format "
358 free(ret->server);
359 ret->server = NULL;
364 free(ret->server);
365 ret->server = NULL;
580 * If serverAddr is NULL, then find a connection to any server
727 bindHost = &sinfo.server;
733 * When obtaining the root DSE, connect to the server
736 sinfo.server = strdup(serverAddr);
737 if (sinfo.server == NULL)
741 rc = __s_api_ip2hostname(sinfo.server,
762 * We're given the server address, just use it.
766 * Only the server address fields of sinfo structure
771 sinfo.server = strdup(serverAddr);
772 if (sinfo.server == NULL) {
778 free(sinfo.server);
815 if ((rc != NS_LDAP_SUCCESS) || (sinfo.server == NULL) ||
816 (host && (strcasecmp(host, sinfo.server) == 0))) {
822 "request for a server failed"),
834 host = strdup(sinfo.server);
840 /* check if server supports password management */
843 /* check if server supports password less account mgmt */
847 syslog(LOG_WARNING, "libsldap: server %s does not "
865 * If not able to reach the server, inform the ldap
866 * cache manager that the server should be removed
867 * from its server list. Thus, the manager will not
868 * return this server on the next get-server request
869 * and will also reduce the server list refresh TTL,
870 * so that it will find out sooner when the server
879 * We contacted a server that we could
882 * we need to try the server again. So,
883 * do not remove the server yet, but
884 * add it to the bad server list.
887 * a). A good server is found or
890 * a good server
923 /* else, cleanup and go for the next server */
965 con->serverAddr = sinfo.server; /* Store original format */
1108 * controls : controls returned by the server
1109 * errmsg : error message from the server
1114 * flag indicating if server supports password
1197 * This control is used if the server
1206 * server sends this control to
1214 * operation, the server sends back
1226 * This control is used if the server
1231 * The server sends this control back
1374 "%s server. A default value "
1698 const char *server,
1730 rc = __s_api_conn_mt_get(server, flags, cred, session, errorp,
1811 rc = makeConnection(&con, server, cred,
1815 /* not using bad server if credentials were supplied */
1835 * Free the down server list before
1842 rc = makeConnection(&con, server, &anon,
1883 * Free the down server list before
1890 rc = makeConnection(&con, server, authp,
1943 * Bind to the specified server or one from the server
1964 * server Bind to this LDAP server only
1978 * binding if server supports LDAP V3 password less
1988 const char *server,
2000 rc = getConnection(server, flags, cred, sessionId, session,
2104 * server - \[IPv6_address\][:port]
2109 * including the port number, if specified in server argument.
2126 cvt_hostname2ip(char *server, char *newaddr, int newaddr_size,
2138 s = strchr(server, ']');
2139 s = strchr(s != NULL ? s : server, ':');
2155 if (!__s_api_hostname2ip(server, &result, buffer, NSS_BUFLEN_HOSTS,
2236 * Let's try to resolve IP address of server.
2272 * serverAddr - the address of a server to which a connection
2274 * port - a port being listened by the server,
2279 * for all the subsequent operations against the server.
2624 * passwd_mgmt - a flag indicating that the server supports