Lines Matching refs:rc

325 	int		rc = NS_LDAP_SUCCESS;
448 rc = __s_api_convert_automountmapname(service,
451 if (rc != NS_LDAP_SUCCESS) {
454 return (rc);
858 int rc;
889 rc = __ns_ldap_trydoorcall(&sptr, &ndata, &adata);
890 if (rc != NS_CACHE_SUCCESS)
908 int rc;
942 rc = __ns_ldap_trydoorcall(&sptr, &ndata, &adata);
943 if (rc != NS_CACHE_SUCCESS)
1459 int rc;
1518 rc = get_mapped_filter(cookie, &filter);
1519 if (rc != NS_LDAP_SUCCESS) {
1520 cookie->err_rc = rc;
1539 rc = validate_filter(cookie);
1540 if (rc != NS_LDAP_SUCCESS) {
1541 cookie->err_rc = rc;
1547 rc = __ns_ldap_getParam(NS_LDAP_SEARCH_BASEDN_P,
1549 if (rc != NS_LDAP_SUCCESS) {
1550 cookie->err_rc = rc;
1600 int rc;
1603 rc = __s_api_getConnection(NULL, cookie->i_flags,
1610 * e.g. rc == NS_LDAP_SUCCESS_WITH_INFO,
1613 * Reset rc to NS_LDAP_SUCCESS.
1615 if (rc == NS_LDAP_SUCCESS_WITH_INFO) {
1619 rc = NS_LDAP_SUCCESS;
1622 if (rc != NS_LDAP_SUCCESS) {
1623 cookie->err_rc = rc;
1637 int rc;
1650 rc = __s_api_getConnection(NULL, cookie->i_flags,
1657 * e.g. rc == NS_LDAP_SUCCESS_WITH_INFO,
1660 * Reset rc to NS_LDAP_SUCCESS.
1662 if (rc == NS_LDAP_SUCCESS_WITH_INFO) {
1666 rc = NS_LDAP_SUCCESS;
1669 if (rc != NS_LDAP_SUCCESS) {
1670 cookie->err_rc = rc;
1683 int rc;
1699 rc = __s_api_getConnection(cookie->refpos->refHost, 0,
1706 * e.g. rc == NS_LDAP_SUCCESS_WITH_INFO,
1709 * Reset rc to NS_LDAP_SUCCESS.
1711 if (rc == NS_LDAP_SUCCESS_WITH_INFO) {
1715 rc = NS_LDAP_SUCCESS;
1718 if (rc != NS_LDAP_SUCCESS) {
1719 cookie->err_rc = rc;
1730 int rc;
1733 rc = __s_api_isCtrlSupported(cookie->conn,
1735 if (rc == NS_LDAP_SUCCESS) {
1739 rc = __s_api_isCtrlSupported(cookie->conn,
1741 if (rc == NS_LDAP_SUCCESS) {
1838 int rc;
1863 rc = ldap_create_sort_keylist(&sortkeylist, sortattr);
1866 if (rc != LDAP_SUCCESS) {
1868 LDAP_OPT_ERROR_NUMBER, &rc);
1869 return (rc);
1871 rc = ldap_create_sort_control(cookie->conn->ld,
1874 if (rc != LDAP_SUCCESS) {
1876 LDAP_OPT_ERROR_NUMBER, &rc);
1877 return (rc);
1888 rc = ldap_create_virtuallist_control(cookie->conn->ld,
1890 if (rc != LDAP_SUCCESS) {
1893 &rc);
1894 return (rc);
1916 int rc;
1920 rc = ldap_create_page_control(cookie->conn->ld, LISTPAGESIZE,
1922 if (rc != LDAP_SUCCESS) {
1924 &rc);
1925 return (rc);
1941 int errCode, i, rc;
1950 rc = ldap_parse_result(cookie->conn->ld,
1955 if (rc != NS_LDAP_SUCCESS) {
1966 rc = __s_api_addRefInfo(
1973 if (rc != NS_LDAP_SUCCESS) {
1988 int i, rc;
2007 rc = __s_api_addRefInfo(
2014 if (rc != NS_LDAP_SUCCESS) {
2033 int i, rc;
2042 rc = ldap_parse_result(cookie->conn->ld, cookie->resultMsg,
2044 if (rc != LDAP_SUCCESS) {
2063 rc = __s_api_addRefInfo(
2070 if (rc != NS_LDAP_SUCCESS) {
2085 rc = ldap_parse_virtuallist_control(
2088 if (rc == LDAP_SUCCESS) {
2112 rc = ldap_parse_result(cookie->conn->ld, cookie->resultMsg,
2114 if (rc != LDAP_SUCCESS) {
2133 rc = __s_api_addRefInfo(
2140 if (rc != NS_LDAP_SUCCESS) {
2158 rc = ldap_parse_page_control(
2161 if (rc == LDAP_SUCCESS) {
2200 int rc;
2211 rc = ldap_result(cookie->conn->ld, cookie->msgId, LDAP_MSG_ALL,
2214 if (rc != -1 && rc != 0 && cookie->resultMsg != NULL) {
2223 if (rc == 0)
2259 int rc, ret;
2413 rc = setup_vlv_params(cookie);
2414 if (rc != LDAP_SUCCESS) {
2415 cookie->err_rc = rc;
2423 rc = setup_simplepg_params(cookie);
2424 if (rc != LDAP_SUCCESS) {
2425 cookie->err_rc = rc;
2438 rc = ldap_search_ext(cookie->conn->ld,
2448 if (rc != LDAP_SUCCESS) {
2449 if (rc == LDAP_BUSY ||
2450 rc == LDAP_UNAVAILABLE ||
2451 rc == LDAP_UNWILLING_TO_PERFORM ||
2452 rc == LDAP_CONNECT_ERROR ||
2453 rc == LDAP_SERVER_DOWN) {
2456 cookie->err_rc = rc;
2476 if ((rc == LDAP_CONNECT_ERROR ||
2477 rc == LDAP_SERVER_DOWN) &&
2494 cookie->err_rc = rc;
2513 } else if ((rc == LDAP_CONNECT_ERROR ||
2514 rc == LDAP_SERVER_DOWN) &&
2522 * rc has already
2528 rc,
2538 cookie->err_rc = rc;
2545 cookie->err_rc = rc;
2562 rc = ldap_result(cookie->conn->ld, cookie->msgId,
2566 if (rc == LDAP_RES_SEARCH_RESULT) {
2577 if (rc == LDAP_RES_SEARCH_REFERENCE) {
2584 if (rc != LDAP_RES_SEARCH_ENTRY) {
2585 switch (rc) {
2593 rc = LDAP_TIMEOUT;
2596 rc = ldap_get_lderrno(cookie->conn->ld,
2600 rc = ldap_result2error(cookie->conn->ld,
2604 if ((rc == LDAP_TIMEOUT ||
2605 rc == LDAP_SERVER_DOWN) &&
2608 if (rc == LDAP_TIMEOUT)
2621 if (rc == LDAP_BUSY ||
2622 rc == LDAP_UNAVAILABLE ||
2623 rc == LDAP_UNWILLING_TO_PERFORM) {
2625 cookie->err_rc = rc;
2633 if ((rc == LDAP_CONNECT_ERROR ||
2634 rc == LDAP_SERVER_DOWN) &&
2637 cookie->err_rc = rc;
2643 rc, &errorp);
2651 cookie->err_rc = rc;
2658 rc = ldap_get_entry_controls(cookie->conn->ld,
2661 if (rc != LDAP_SUCCESS) {
2663 cookie->err_rc = rc;
2667 rc = __s_api_getEntry(cookie);
2670 if (rc != NS_LDAP_SUCCESS) {
2682 rc = ldap_result(cookie->conn->ld, cookie->msgId,
2686 if (rc == LDAP_RES_SEARCH_RESULT) {
2687 rc = ldap_result2error(cookie->conn->ld,
2689 if (rc == LDAP_ADMINLIMIT_EXCEEDED &&
2699 if (rc != LDAP_SUCCESS) {
2700 cookie->err_rc = rc;
2712 if (rc == LDAP_RES_SEARCH_REFERENCE &&
2719 if (rc != LDAP_RES_SEARCH_ENTRY) {
2720 switch (rc) {
2728 rc = LDAP_TIMEOUT;
2731 rc = ldap_get_lderrno(cookie->conn->ld,
2735 rc = ldap_result2error(cookie->conn->ld,
2739 if ((rc == LDAP_TIMEOUT ||
2740 rc == LDAP_SERVER_DOWN) &&
2743 if (rc == LDAP_TIMEOUT)
2756 if (rc == LDAP_BUSY ||
2757 rc == LDAP_UNAVAILABLE ||
2758 rc == LDAP_UNWILLING_TO_PERFORM) {
2760 cookie->err_rc = rc;
2769 if ((rc == LDAP_CONNECT_ERROR ||
2770 rc == LDAP_SERVER_DOWN) &&
2773 cookie->err_rc = rc;
2779 rc, &errorp);
2787 cookie->err_rc = rc;
2793 rc = __s_api_getEntry(cookie);
2796 if (rc != NS_LDAP_SUCCESS) {
2814 rc = 0;
2818 rc = (*cookie->callback)(nextEntry,
2821 if (rc == NS_LDAP_CB_DONE) {
2823 rc = NS_LDAP_PARTIAL;
2824 cookie->err_rc = rc;
2826 } else if (rc != NS_LDAP_CB_NEXT) {
2828 rc = NS_LDAP_OP_FAILED;
2829 cookie->err_rc = rc;
2836 if (rc != 0) {
3072 int rc;
3095 rc = __s_api_toFollowReferrals(flags,
3097 if (rc != NS_LDAP_SUCCESS) {
3099 *rcp = rc;
3100 return (rc);
3104 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
3106 if (rc != NS_LDAP_SUCCESS) {
3109 *rcp = rc;
3110 return (rc);
3135 rc = __s_api_getDNs(&dns, service, &cookie->errorp);
3136 if (rc != NS_LDAP_SUCCESS) {
3145 *rcp = rc;
3146 return (rc);
3154 rc = __s_api_getSearchScope(&scope, &cookie->errorp);
3195 rc = check_shadow(cookie, service);
3196 if (rc != NS_LDAP_SUCCESS) {
3201 *rcp = rc;
3202 return (rc);
3218 rc = cookie->err_rc;
3220 if (rc == NS_LDAP_SUCCESS) {
3222 * Here rc == NS_LDAP_SUCCESS means that the state
3234 return (rc);
3245 rc = cookie->err_rc;
3246 if (rc != NS_LDAP_SUCCESS) {
3262 rc = NS_LDAP_NOTFOUND;
3263 *rcp = rc;
3264 return (rc);
3324 int rc = NS_LDAP_SUCCESS, trc;
3328 &try_cnt, &rc, errorp) == 0)
3330 rc = ldap_list(NULL, service, filter, sortattr, init_filter_cb,
3335 return (rc);
3371 int rc;
3387 rc = ldap_list(batch, service, filter, NULL, init_filter_cb, attribute,
3396 if (rc != NS_LDAP_SUCCESS && cu != NULL) {
3401 return (rc);
3452 int rc;
3478 rc = __s_api_setup_getnext(c->conn_user, &c->err_rc, &errorp);
3479 if (rc == LDAP_BUSY || rc == LDAP_UNAVAILABLE ||
3480 rc == LDAP_UNWILLING_TO_PERFORM) {
3486 } else if (rc == LDAP_CONNECT_ERROR ||
3487 rc == LDAP_SERVER_DOWN) {
3498 c->conn_user, rc, NULL);
3499 } else if (rc != NS_LDAP_SUCCESS) {
3501 *rcp = rc;
3504 *c->caller_rc = rc;
3584 int rc = NS_LDAP_SUCCESS;
3585 while (__ns_ldap_list_batch_process(batch, &rc) > 0)
3588 return (rc);
3605 int rc;
3620 rc = __s_api_toFollowReferrals(flags,
3622 if (rc != NS_LDAP_SUCCESS) {
3624 return (rc);
3661 rc = search_state_machine(cookie, INIT, 0);
3664 rc = cookie->err_rc;
3665 if (rc != NS_LDAP_SUCCESS) {
3673 rc = NS_LDAP_NOTFOUND;
3674 if (rc == NS_LDAP_SUCCESS) {
3680 rc = NS_LDAP_NOTFOUND;
3687 return (rc);
3702 int rc = NS_LDAP_SUCCESS;
3706 &try_cnt, &rc, errorp) == 0)
3708 rc = find_domainname(dn, domainname, cred, errorp, cu);
3711 return (rc);
3737 int rc;
3750 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
3752 if (rc != NS_LDAP_SUCCESS) {
3754 return (rc);
3772 rc = __s_api_getDNs(&dns, service, &error);
3773 if (rc != NS_LDAP_SUCCESS) {
3785 return (rc);
3801 rc = __s_api_getSearchScope(&scope, &cookie->errorp);
3822 rc = __s_api_toFollowReferrals(flags,
3824 if (rc != NS_LDAP_SUCCESS) {
3826 return (rc);
3858 rc = check_shadow(cookie, service);
3859 if (rc != NS_LDAP_SUCCESS) {
3864 return (rc);
3889 rc = cookie->err_rc;
3898 return (rc);
3900 rc = cookie->err_rc;
3901 if (rc != NS_LDAP_SUCCESS) {
3905 rc = NS_LDAP_NOTFOUND;
3909 return (rc);
3934 int rc = NS_LDAP_SUCCESS;
3938 &try_cnt, &rc, errorp) == 0)
3940 rc = firstEntry(service, filter, vlv_sort, init_filter_cb,
3944 return (rc);
3954 int rc;
3961 rc = __s_api_setup_getnext(cookie->conn_user,
3963 if (rc != NS_LDAP_SUCCESS)
3964 return (rc);
3981 rc = cookie->err_rc;
3984 return (rc);
3997 int rc;
4006 rc = search_state_machine(cookie, CLEAR_RESULTS, 0);
4009 rc = cookie->err_rc;
4010 if (rc != NS_LDAP_SUCCESS)
4023 return (rc);
4069 int rc = 0;
4086 rc = __s_api_getConnection(NULL, flags | NS_LDAP_NEW_CONN,
4094 if (rc == NS_LDAP_OP_FAILED && *errorp)
4099 return (rc);
4142 int rc = 0;
4199 rc = __ns_ldap_list("passwd", filter,
4208 if (rc != NS_LDAP_SUCCESS) {
4213 return (rc);
4246 int rc;
4277 rc = __ns_ldap_list("hosts", filter,
4286 if (rc != NS_LDAP_SUCCESS) {
4291 return (rc);
4319 int rc, pnum, i, j, len = 0;
4381 rc = __s_api_get_cachemgr_data(NS_CACHE_DN2DOMAIN,
4383 if (rc != NS_LDAP_SUCCESS) {
4387 rc = __s_api_find_domainname(dns[i], domain,
4396 if (rc == NS_LDAP_SUCCESS) {
4415 if (rc != NS_LDAP_SUCCESS)
4416 rc = NS_LDAP_NOTFOUND;
4417 return (rc);
4427 int rc, i, done = 0;
4445 rc = __ns_ldap_getParam(NS_LDAP_SERVICE_AUTH_METHOD_P, &param, &error);
4446 if (rc != NS_LDAP_SUCCESS || param == NULL) {
4448 return (rc);
4538 int rc = NS_LDAP_SUCCESS;
4599 rc = __s_api_replace_mapped_attr_in_dn(
4621 return (rc);
5017 int rc;
5019 rc = -1; /* pessimistic */
5022 return (rc);
5072 rc = 0;
5081 rc = adj_substring_filter(value);
5088 rc = 0;
5090 rc = 0;
5092 if (rc != -1) {
5093 rc = 0;
5098 return (rc);
5202 int rc;
5206 rc = adj_filter(filter);
5207 if (rc != 0) {
5288 int rc = NS_LDAP_SUCCESS;
5356 rc = NS_LDAP_INTERNAL;
5364 rc = NS_LDAP_INTERNAL;
5366 if (rc != NS_LDAP_SUCCESS) {
5372 return (rc);
5400 int rc = NS_LDAP_SUCCESS;
5412 rc = NS_LDAP_INTERNAL;
5431 rc = NS_LDAP_INTERNAL;
5440 rc = NS_LDAP_INTERNAL;
5450 rc = NS_LDAP_INTERNAL;
5460 rc = NS_LDAP_INTERNAL;
5464 return (rc);
5506 int rc = NS_LDAP_SUCCESS;
5560 rc = NS_LDAP_INTERNAL;
5576 rc = NS_LDAP_INTERNAL;
5600 rc = get_old_acct_opt_more_info(tag, ber, acctResp);
5631 rc = get_new_acct_more_info(ber, acctResp);
5638 rc = NS_LDAP_INTERNAL;
5643 return (rc);
5653 int scope, rc;
5672 rc = __s_api_toFollowReferrals(0,
5674 if (rc != NS_LDAP_SUCCESS) {
5680 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
5682 if (rc != NS_LDAP_SUCCESS) {
5692 rc = NS_LDAP_MEMORY;
5699 rc = NS_LDAP_MEMORY;
5705 rc = __s_api_getDNs(&dns, service, &cookie->errorp);
5706 if (rc != NS_LDAP_SUCCESS) {
5723 rc = NS_LDAP_MEMORY;
5731 rc = __s_api_getSearchScope(&scope, &cookie->errorp);
5739 rc = NS_LDAP_MEMORY;
5747 rc = NS_LDAP_MEMORY;
5752 if ((rc = setup_acctmgmt_params(cookie)) != NS_LDAP_SUCCESS)
5756 rc = search_state_machine(cookie, GET_ACCT_MGMT_INFO, 0);
5759 rc = cookie->err_rc;
5760 if (rc != NS_LDAP_SUCCESS)
5766 if ((rc = parse_acct_cont_resp_msg(cookie->resultctrl, acctResp))
5770 rc = NS_LDAP_SUCCESS;
5775 return (rc);
5794 int rc = NS_LDAP_SUCCESS;
5799 &try_cnt, &rc, &error) == 0)
5801 rc = getAcctMgmt(user, acctResp, cu);
5803 return (rc);