Lines Matching defs:rc

632 	int		rc = NS_LDAP_SUCCESS;
700 rc = update_range_info(first_range, attr,
702 if (rc != NS_LDAP_SUCCESS) {
709 return (rc);
779 rc = __s_api_convert_automountmapname(service,
781 if (rc != NS_LDAP_SUCCESS) {
784 return (rc);
798 rc = NS_LDAP_MEMORY;
862 rc = NS_LDAP_MEMORY;
879 rc = NS_LDAP_MEMORY;
888 rc = NS_LDAP_MEMORY;
924 rc = NS_LDAP_INTERNAL;
958 rc = NS_LDAP_INTERNAL;
996 rc = NS_LDAP_MEMORY;
1019 rc = NS_LDAP_MEMORY;
1026 rc = NS_LDAP_MEMORY;
1062 rc = NS_LDAP_MEMORY;
1082 rc = NS_LDAP_MEMORY;
1214 return (rc);
1450 int rc;
1481 rc = __ns_ldap_trydoorcall(&sptr, &ndata, &adata);
1482 if (rc != NS_CACHE_SUCCESS)
1500 int rc;
1534 rc = __ns_ldap_trydoorcall(&sptr, &ndata, &adata);
1535 if (rc != NS_CACHE_SUCCESS)
2056 int rc;
2115 rc = get_mapped_filter(cookie, &filter);
2116 if (rc != NS_LDAP_SUCCESS) {
2117 cookie->err_rc = rc;
2136 rc = validate_filter(cookie);
2137 if (rc != NS_LDAP_SUCCESS) {
2138 cookie->err_rc = rc;
2144 rc = __ns_ldap_getParam(NS_LDAP_SEARCH_BASEDN_P,
2146 if (rc != NS_LDAP_SUCCESS) {
2147 cookie->err_rc = rc;
2197 int rc;
2200 rc = __s_api_getConnection(NULL, cookie->i_flags,
2207 * e.g. rc == NS_LDAP_SUCCESS_WITH_INFO,
2210 * Reset rc to NS_LDAP_SUCCESS.
2212 if (rc == NS_LDAP_SUCCESS_WITH_INFO) {
2216 rc = NS_LDAP_SUCCESS;
2219 if (rc != NS_LDAP_SUCCESS) {
2220 cookie->err_rc = rc;
2234 int rc;
2255 rc = __s_api_getConnection(NULL, cookie->i_flags,
2262 * e.g. rc == NS_LDAP_SUCCESS_WITH_INFO,
2265 * Reset rc to NS_LDAP_SUCCESS.
2267 if (rc == NS_LDAP_SUCCESS_WITH_INFO) {
2271 rc = NS_LDAP_SUCCESS;
2274 if (rc != NS_LDAP_SUCCESS) {
2275 cookie->err_rc = rc;
2288 int rc;
2310 rc = __s_api_getConnection(ref_info->refHost, 0,
2314 if (rc == NS_LDAP_SUCCESS ||
2315 rc == NS_LDAP_SUCCESS_WITH_INFO) {
2323 * e.g. rc == NS_LDAP_SUCCESS_WITH_INFO,
2326 * Reset rc to NS_LDAP_SUCCESS.
2328 if (rc == NS_LDAP_SUCCESS_WITH_INFO) {
2332 rc = NS_LDAP_SUCCESS;
2335 if (rc != NS_LDAP_SUCCESS) {
2336 cookie->err_rc = rc;
2347 int rc;
2350 rc = __s_api_isCtrlSupported(cookie->conn,
2352 if (rc == NS_LDAP_SUCCESS) {
2356 rc = __s_api_isCtrlSupported(cookie->conn,
2358 if (rc == NS_LDAP_SUCCESS) {
2455 int rc;
2485 rc = ldap_create_sort_keylist(&sortkeylist, sortattr);
2488 if (rc != LDAP_SUCCESS) {
2490 LDAP_OPT_ERROR_NUMBER, &rc);
2491 return (rc);
2493 rc = ldap_create_sort_control(cookie->conn->ld,
2496 if (rc != LDAP_SUCCESS) {
2498 LDAP_OPT_ERROR_NUMBER, &rc);
2499 return (rc);
2510 rc = ldap_create_virtuallist_control(cookie->conn->ld,
2512 if (rc != LDAP_SUCCESS) {
2515 &rc);
2516 return (rc);
2538 int rc;
2542 rc = ldap_create_page_control(cookie->conn->ld, LISTPAGESIZE,
2544 if (rc != LDAP_SUCCESS) {
2546 &rc);
2547 return (rc);
2563 int errCode, rc;
2572 rc = ldap_parse_result(cookie->conn->ld,
2577 if (rc != NS_LDAP_SUCCESS) {
2586 rc = __s_api_addReferral(
2593 if (rc != NS_LDAP_SUCCESS)
2604 int i, rc;
2622 rc = __s_api_addReferral(
2629 if (rc != NS_LDAP_SUCCESS)
2644 int rc;
2653 rc = ldap_parse_result(cookie->conn->ld, cookie->resultMsg,
2655 if (rc != LDAP_SUCCESS) {
2672 rc = __s_api_addReferral(
2679 if (rc != NS_LDAP_SUCCESS) {
2695 rc = ldap_parse_virtuallist_control(
2698 if (rc == LDAP_SUCCESS) {
2722 rc = ldap_parse_result(cookie->conn->ld, cookie->resultMsg,
2724 if (rc != LDAP_SUCCESS) {
2741 rc = __s_api_addReferral(
2748 if (rc != NS_LDAP_SUCCESS) {
2767 rc = ldap_parse_page_control(
2770 if (rc == LDAP_SUCCESS) {
2809 int rc;
2821 rc = __s_api_getLdapResult(cookie->conn->ld,
2825 rc = ldap_result(cookie->conn->ld, cookie->msgId,
2829 if (rc != -1 && rc != 0 && cookie->resultMsg != NULL) {
2838 if (rc == 0)
2874 int rc;
3025 * if rc is not LDAP_SERVER_DOWN. We assume
3086 rc = setup_vlv_params(cookie);
3087 if (rc != LDAP_SUCCESS) {
3088 cookie->err_rc = rc;
3096 rc = setup_simplepg_params(cookie);
3097 if (rc != LDAP_SUCCESS) {
3098 cookie->err_rc = rc;
3161 rc = ldap_search_ext(cookie->conn->ld,
3171 if (rc == LDAP_SUCCESS) {
3176 cookie->err_rc = rc;
3179 if (rc == LDAP_CONNECT_ERROR ||
3180 rc == LDAP_SERVER_DOWN ||
3181 rc == LDAP_TIMEOUT) {
3186 if (rc == LDAP_BUSY ||
3187 rc == LDAP_UNAVAILABLE ||
3188 rc == LDAP_UNWILLING_TO_PERFORM ||
3189 rc == LDAP_CONNECT_ERROR ||
3190 rc == LDAP_SERVER_DOWN ||
3191 rc == LDAP_TIMEOUT) {
3248 rc = 0;
3253 * be saved in cookie->err_rc. The ldap result rc is
3262 rc = LDAP_TIMEOUT;
3265 rc = ldap_get_lderrno(cookie->conn->ld,
3269 rc = ldap_result2error(cookie->conn->ld,
3277 cookie->err_rc = rc;
3280 if (rc == LDAP_BUSY ||
3281 rc == LDAP_UNAVAILABLE ||
3282 rc == LDAP_UNWILLING_TO_PERFORM) {
3300 if (rc == LDAP_CONNECT_ERROR ||
3301 rc == LDAP_SERVER_DOWN ||
3302 rc == LDAP_TIMEOUT) {
3369 rc = ldap_get_entry_controls(cookie->conn->ld,
3372 if (rc != LDAP_SUCCESS) {
3374 cookie->err_rc = rc;
3378 rc = __s_api_getEntry(cookie);
3381 if (rc != NS_LDAP_SUCCESS) {
3424 rc = ldap_result2error(cookie->conn->ld,
3426 if (rc == LDAP_ADMINLIMIT_EXCEEDED &&
3436 if (rc != LDAP_SUCCESS && rc != LDAP_REFERRAL) {
3437 cookie->err_rc = rc;
3468 rc = __s_api_getEntry(cookie);
3471 if (rc != NS_LDAP_SUCCESS) {
3503 rc = 0;
3507 rc = (*cookie->callback)(nextEntry,
3510 if (rc == NS_LDAP_CB_DONE) {
3512 rc = NS_LDAP_PARTIAL;
3513 cookie->err_rc = rc;
3515 } else if (rc != NS_LDAP_CB_NEXT) {
3517 rc = NS_LDAP_OP_FAILED;
3518 cookie->err_rc = rc;
3528 if (rc != 0) {
3778 int rc;
3803 rc = __s_api_toFollowReferrals(flags,
3805 if (rc != NS_LDAP_SUCCESS) {
3807 *rcp = rc;
3808 return (rc);
3812 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
3814 if (rc != NS_LDAP_SUCCESS) {
3817 *rcp = rc;
3818 return (rc);
3843 rc = __s_api_getDNs(&dns, service, &cookie->errorp);
3844 if (rc != NS_LDAP_SUCCESS) {
3853 *rcp = rc;
3854 return (rc);
3862 rc = __s_api_getSearchScope(&scope, &cookie->errorp);
3903 rc = check_shadow(cookie, service);
3904 if (rc != NS_LDAP_SUCCESS) {
3909 *rcp = rc;
3910 return (rc);
3927 rc = cookie->err_rc;
3929 if (rc == NS_LDAP_SUCCESS) {
3931 * Here rc == NS_LDAP_SUCCESS means that the state
3943 return (rc);
3954 rc = cookie->err_rc;
3955 if (rc != NS_LDAP_SUCCESS) {
3980 rc = NS_LDAP_NOTFOUND;
3981 *rcp = rc;
3982 return (rc);
4042 int rc = NS_LDAP_SUCCESS, trc;
4054 &try_cnt, &rc, errorp) == 0)
4056 rc = ldap_list(NULL, service, filter, NULL, init_filter_cb,
4061 return (rc);
4087 int rc = NS_LDAP_SUCCESS, trc;
4091 &try_cnt, &rc, errorp) == 0)
4093 rc = ldap_list(NULL, service, filter, sortattr, init_filter_cb,
4098 return (rc);
4124 int rc;
4131 rc = NS_LDAP_SUCCESS;
4145 rc = NS_LDAP_MEMORY;
4151 rc = __s_api_toFollowReferrals(flags,
4153 if (rc != NS_LDAP_SUCCESS)
4160 rc = NS_LDAP_MEMORY;
4167 rc = NS_LDAP_MEMORY;
4176 rc = NS_LDAP_MEMORY;
4200 rc = NS_LDAP_MEMORY;
4208 rc = NS_LDAP_MEMORY;
4217 rc = cookie->err_rc;
4218 if (rc != NS_LDAP_SUCCESS) {
4242 rc = NS_LDAP_NOTFOUND;
4243 *rcp = rc;
4244 return (rc);
4249 *rcp = rc;
4250 return (rc);
4278 int rc = NS_LDAP_SUCCESS, trc;
4282 &try_cnt, &rc, errorp) == 0)
4284 rc = ldap_read_dn(dn, service, init_filter_cb,
4289 return (rc);
4325 int rc;
4341 rc = ldap_list(batch, service, filter, NULL, init_filter_cb, attribute,
4351 if (rc != NS_LDAP_SUCCESS && cu != NULL) {
4356 return (rc);
4407 int rc;
4433 rc = __s_api_setup_getnext(c->conn_user, &c->err_rc, &errorp);
4434 if (rc == LDAP_BUSY || rc == LDAP_UNAVAILABLE ||
4435 rc == LDAP_UNWILLING_TO_PERFORM) {
4441 } else if (rc == LDAP_CONNECT_ERROR ||
4442 rc == LDAP_SERVER_DOWN) {
4453 c->conn_user, rc, NULL);
4454 } else if (rc != NS_LDAP_SUCCESS) {
4456 *rcp = rc;
4459 *c->caller_rc = rc;
4539 int rc = NS_LDAP_SUCCESS;
4540 while (__ns_ldap_list_batch_process(batch, &rc) > 0)
4543 return (rc);
4560 int rc;
4575 rc = __s_api_toFollowReferrals(flags,
4577 if (rc != NS_LDAP_SUCCESS) {
4579 return (rc);
4616 rc = search_state_machine(cookie, INIT, 0);
4619 rc = cookie->err_rc;
4620 if (rc != NS_LDAP_SUCCESS) {
4628 rc = NS_LDAP_NOTFOUND;
4629 if (rc == NS_LDAP_SUCCESS) {
4635 rc = NS_LDAP_NOTFOUND;
4642 return (rc);
4657 int rc = NS_LDAP_SUCCESS;
4661 &try_cnt, &rc, errorp) == 0)
4663 rc = find_domainname(dn, domainname, cred, errorp, cu);
4666 return (rc);
4694 int rc;
4709 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
4711 if (rc != NS_LDAP_SUCCESS) {
4713 return (rc);
4731 rc = __s_api_getDNs(&dns, service, &error);
4732 if (rc != NS_LDAP_SUCCESS) {
4744 return (rc);
4760 rc = __s_api_getSearchScope(&scope, &cookie->errorp);
4781 rc = __s_api_toFollowReferrals(flags,
4783 if (rc != NS_LDAP_SUCCESS) {
4785 return (rc);
4817 rc = check_shadow(cookie, service);
4818 if (rc != NS_LDAP_SUCCESS) {
4823 return (rc);
4853 rc = cookie->err_rc;
4862 return (rc);
4864 rc = cookie->err_rc;
4865 if (rc != NS_LDAP_SUCCESS) {
4869 rc = NS_LDAP_NOTFOUND;
4873 return (rc);
4925 int rc = NS_LDAP_SUCCESS;
4929 &try_cnt, &rc, errorp) == 0)
4931 rc = firstEntry(service, filter, vlv_sort, init_filter_cb,
4935 return (rc);
4945 int rc;
4952 rc = __s_api_setup_getnext(cookie->conn_user,
4954 if (rc != NS_LDAP_SUCCESS)
4955 return (rc);
4972 rc = cookie->err_rc;
4975 return (rc);
4988 int rc;
4997 rc = search_state_machine(cookie, CLEAR_RESULTS, 0);
5000 rc = cookie->err_rc;
5001 if (rc != NS_LDAP_SUCCESS)
5014 return (rc);
5060 int rc = 0;
5077 rc = __s_api_getConnection(NULL, flags | NS_LDAP_NEW_CONN,
5085 if (rc == NS_LDAP_OP_FAILED && *errorp)
5090 return (rc);
5133 int rc = 0;
5192 rc = __ns_ldap_list("passwd", filter,
5201 if (rc != NS_LDAP_SUCCESS) {
5206 return (rc);
5239 int rc;
5271 rc = __ns_ldap_list("hosts", filter,
5280 if (rc != NS_LDAP_SUCCESS) {
5285 return (rc);
5313 int rc, pnum, i, j, len = 0;
5375 rc = __s_api_get_cachemgr_data(NS_CACHE_DN2DOMAIN,
5377 if (rc != NS_LDAP_SUCCESS) {
5381 rc = __s_api_find_domainname(dns[i], domain,
5390 if (rc == NS_LDAP_SUCCESS) {
5409 if (rc != NS_LDAP_SUCCESS)
5410 rc = NS_LDAP_NOTFOUND;
5411 return (rc);
5421 int rc, i, done = 0;
5439 rc = __ns_ldap_getParam(NS_LDAP_SERVICE_AUTH_METHOD_P, &param, &error);
5440 if (rc != NS_LDAP_SUCCESS || param == NULL) {
5442 return (rc);
5535 int rc = NS_LDAP_SUCCESS;
5595 rc = __s_api_replace_mapped_attr_in_dn(
5617 return (rc);
6014 int rc;
6016 rc = -1; /* pessimistic */
6019 return (rc);
6069 rc = 0;
6078 rc = adj_substring_filter(value);
6085 rc = 0;
6087 rc = 0;
6089 if (rc != -1) {
6090 rc = 0;
6095 return (rc);
6199 int rc;
6203 rc = adj_filter(filter);
6204 if (rc != 0) {
6285 int rc = NS_LDAP_SUCCESS;
6353 rc = NS_LDAP_INTERNAL;
6361 rc = NS_LDAP_INTERNAL;
6363 if (rc != NS_LDAP_SUCCESS) {
6369 return (rc);
6397 int rc = NS_LDAP_SUCCESS;
6409 rc = NS_LDAP_INTERNAL;
6428 rc = NS_LDAP_INTERNAL;
6437 rc = NS_LDAP_INTERNAL;
6447 rc = NS_LDAP_INTERNAL;
6457 rc = NS_LDAP_INTERNAL;
6461 return (rc);
6503 int rc = NS_LDAP_SUCCESS;
6557 rc = NS_LDAP_INTERNAL;
6573 rc = NS_LDAP_INTERNAL;
6597 rc = get_old_acct_opt_more_info(tag, ber, acctResp);
6628 rc = get_new_acct_more_info(ber, acctResp);
6635 rc = NS_LDAP_INTERNAL;
6640 return (rc);
6650 int scope, rc;
6669 rc = __s_api_toFollowReferrals(0,
6671 if (rc != NS_LDAP_SUCCESS) {
6677 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
6679 if (rc != NS_LDAP_SUCCESS) {
6689 rc = NS_LDAP_MEMORY;
6696 rc = NS_LDAP_MEMORY;
6702 rc = __s_api_getDNs(&dns, service, &cookie->errorp);
6703 if (rc != NS_LDAP_SUCCESS) {
6720 rc = NS_LDAP_MEMORY;
6728 rc = __s_api_getSearchScope(&scope, &cookie->errorp);
6736 rc = NS_LDAP_MEMORY;
6744 rc = NS_LDAP_MEMORY;
6749 if ((rc = setup_acctmgmt_params(cookie)) != NS_LDAP_SUCCESS)
6753 rc = search_state_machine(cookie, GET_ACCT_MGMT_INFO, 0);
6756 rc = cookie->err_rc;
6757 if (rc != NS_LDAP_SUCCESS)
6763 if ((rc = parse_acct_cont_resp_msg(cookie->resultctrl, acctResp))
6767 rc = NS_LDAP_SUCCESS;
6772 return (rc);
6791 int rc = NS_LDAP_SUCCESS;
6796 &try_cnt, &rc, &error) == 0)
6798 rc = getAcctMgmt(user, acctResp, cu);
6800 return (rc);