Lines Matching defs:server
190 LDAP *server = NULL;
271 server = ldap_sslinit(host, (int)conn->port, 1);
272 ldap_set_option(server, LDAP_OPT_SSL, LDAP_OPT_ON);
317 server = ldapssl_init(host, (int)conn->port, 1);
318 if(server == NULL) {
358 server = ldap_init(host, (int)conn->port);
359 if(server == NULL) {
366 rc = ldap_set_option(server, LDAP_OPT_X_TLS, &ldap_option);
374 rc = ldap_start_tls_s(server, NULL, NULL);
394 server = ldap_init(host, (int)conn->port);
395 if(server == NULL) {
403 ldap_set_option(server, LDAP_OPT_PROTOCOL_VERSION, &ldap_proto);
406 rc = ldap_simple_bind_s(server, user, passwd);
409 ldap_set_option(server, LDAP_OPT_PROTOCOL_VERSION, &ldap_proto);
410 rc = ldap_simple_bind_s(server, user, passwd);
418 rc = ldap_search_s(server, ludp->lud_dn, ludp->lud_scope,
427 for(num = 0, entryIterator = ldap_first_entry(server, ldapmsg);
429 entryIterator = ldap_next_entry(server, entryIterator), num++) {
443 TCHAR *dn = ldap_get_dn(server, entryIterator);
453 char *dn = name = ldap_get_dn(server, entryIterator);
497 for(attribute = ldap_first_attribute(server, entryIterator, &ber);
499 attribute = ldap_next_attribute(server, entryIterator, ber)) {
517 vals = ldap_get_values_len(server, entryIterator, attribute);
665 if(server)
666 ldap_unbind_s(server);