Lines Matching defs:rc
171 int rc = 0;
193 rc = ldap_url_parse(data->change.url, &ludp);
195 rc = _ldap_url_parse(conn, &ludp);
197 if(rc != 0) {
198 failf(data, "LDAP local: %s", ldap_err2string(rc));
224 rc = ldapssl_client_init(NULL, NULL);
225 if(rc != LDAP_SUCCESS) {
226 failf(data, "LDAP local: ldapssl_client_init %s", ldap_err2string(rc));
245 rc = ldapssl_add_trusted_cert(ldap_ca, cert_type);
246 if(rc != LDAP_SUCCESS) {
249 ldap_err2string(rc));
257 rc = ldapssl_set_verify_mode(ldap_option);
258 if(rc != LDAP_SUCCESS) {
260 ldap_err2string(rc));
286 rc = ldap_set_option(NULL, LDAP_OPT_X_TLS_CACERTFILE, ldap_ca);
287 if(rc != LDAP_SUCCESS) {
289 ldap_err2string(rc));
298 rc = ldap_set_option(NULL, LDAP_OPT_X_TLS_REQUIRE_CERT, &ldap_option);
299 if(rc != LDAP_SUCCESS) {
301 ldap_err2string(rc));
313 rc = ldap_set_option(server, LDAP_OPT_X_TLS, &ldap_option);
314 if(rc != LDAP_SUCCESS) {
316 ldap_err2string(rc));
321 rc = ldap_start_tls_s(server, NULL, NULL);
322 if(rc != LDAP_SUCCESS) {
324 ldap_err2string(rc));
353 rc = ldap_simple_bind_s(server,
356 if(!ldap_ssl && rc != 0) {
359 rc = ldap_simple_bind_s(server,
363 if(rc != 0) {
364 failf(data, "LDAP local: ldap_simple_bind_s %s", ldap_err2string(rc));
369 rc = ldap_search_s(server, ludp->lud_dn, ludp->lud_scope,
372 if(rc != 0 && rc != LDAP_SIZELIMIT_EXCEEDED) {
373 failf(data, "LDAP remote: %s", ldap_err2string(rc));
456 if(rc == LDAP_SIZELIMIT_EXCEEDED)
671 int rc;
677 rc = _ldap_url_parse2 (conn, ludp);
678 if(rc != LDAP_SUCCESS) {
683 return (rc);