Lines Matching refs:server
221 static int ldap_win_bind_auth(LDAP *server, const char *user,
255 rc = ldap_bind_s(server, NULL, (TCHAR *)&cred, method);
262 rc = ldap_bind_s(server, NULL, NULL, method);
268 static int ldap_win_bind(struct Curl_easy *data, LDAP *server,
280 rc = ldap_simple_bind_s(server, inuser, inpass);
287 rc = ldap_win_bind_auth(server, user, passwd, data->set.httpauth);
306 LDAP *server = NULL;
374 server = ldap_sslinit(host, conn->port, 1);
375 ldap_set_option(server, LDAP_OPT_SSL, LDAP_OPT_ON);
420 server = ldapssl_init(host, conn->port, 1);
421 if(!server) {
461 server = ldap_init(host, conn->port);
462 if(!server) {
469 rc = ldap_set_option(server, LDAP_OPT_X_TLS, &ldap_option);
477 rc = ldap_start_tls_s(server, NULL, NULL);
502 server = ldap_init(host, conn->port);
503 if(!server) {
511 ldap_set_option(server, LDAP_OPT_PROTOCOL_VERSION, &ldap_proto);
512 rc = ldap_win_bind(data, server, user, passwd);
514 rc = ldap_simple_bind_s(server, user, passwd);
518 ldap_set_option(server, LDAP_OPT_PROTOCOL_VERSION, &ldap_proto);
520 rc = ldap_win_bind(data, server, user, passwd);
522 rc = ldap_simple_bind_s(server, user, passwd);
538 rc = ldap_search_s(server, ludp->lud_dn, ludp->lud_scope,
547 for(num = 0, entryIterator = ldap_first_entry(server, ldapmsg);
549 entryIterator = ldap_next_entry(server, entryIterator), num++) {
563 TCHAR *dn = ldap_get_dn(server, entryIterator);
573 char *dn = name = ldap_get_dn(server, entryIterator);
604 for(attribute = ldap_first_attribute(server, entryIterator, &ber);
606 attribute = ldap_next_attribute(server, entryIterator, ber)) {
624 vals = ldap_get_values_len(server, entryIterator, attribute);
742 if(server)
743 ldap_unbind_s(server);