Lines Matching defs:errorp

73 		ns_ldap_error_t **errorp,
808 * Failure: returns NULL, error code and message should be in errorp
813 ns_ldap_error_t **errorp, int fail_if_new_pwd_reqd,
830 if (conp == NULL || errorp == NULL || auth == NULL)
832 *errorp = NULL;
878 *errorp,
909 rc = openConnection(&ld, *bindHost, auth, timeoutSec, errorp,
923 /* First free any password info in errorp */
925 (void) __ns_ldap_freeError(errorp);
926 *errorp = NULL;
933 MKERROR(LOG_WARNING, *errorp, ldap_rc,
966 rc = __s_api_requestServer(hReq, host, &sinfo, errorp,
971 if (*errorp) {
976 (*errorp)->message);
1008 rc = openConnection(&ld, *bindHost, auth, timeoutSec, errorp,
1026 if (rc == NS_LDAP_INTERNAL && *errorp != NULL) {
1027 if ((*errorp)->status == LDAP_CONNECT_ERROR ||
1028 (*errorp)->status == LDAP_SERVER_DOWN) {
1082 if (*errorp) {
1086 * keep *errorp and exit
1088 if ((*errorp)->pwd_mgmt.status != NS_PASSWD_GOOD ||
1089 (*errorp)->status == LDAP_INVALID_CREDENTIALS) {
1093 (void) __ns_ldap_freeError(errorp);
1094 *errorp = NULL;
1106 * If password control attached in **errorp,
1110 if (*errorp) {
1111 (void) __ns_ldap_freeError(errorp);
1112 *errorp = NULL;
1131 * If password control attached in **errorp,
1135 if (*errorp) {
1136 (void) __ns_ldap_freeError(errorp);
1137 *errorp = NULL;
1149 if (__s_api_conn_mt_add(con, conn_user, errorp) ==
1156 return ((*errorp)->status);
1165 * If password control attached in **errorp,
1169 if (*errorp) {
1170 (void) __ns_ldap_freeError(errorp);
1171 *errorp = NULL;
1285 char *errmsg, ns_ldap_error_t **errorp,
1325 MKERROR_PWD_MGMT(*errorp,
1329 MKERROR(LOG_ERR, *errorp, ldaprc, strdup(errstr),
1423 MKERROR_PWD_MGMT(*errorp,
1431 MKERROR_PWD_MGMT(*errorp,
1452 MKERROR_PWD_MGMT(*errorp,
1499 int timeoutSec, ns_ldap_error_t **errorp,
1515 *errorp = NULL;
1543 errorp);
1556 errorp);
1576 ret_code = __s_api_toFollowReferrals(flags, &followRef, errorp);
1598 errorp,
1655 ns_ldap_error_t *errorp = NULL;
1730 rc = requestAdminCred(&AdminCred, &errorp);
1734 (void) __ns_ldap_freeError(&errorp);
1747 &paramVal, &errorp);
1750 (void) __ns_ldap_freeError(&errorp);
1788 &paramVal, &errorp);
1791 (void) __ns_ldap_freeError(&errorp);
1817 &paramVal, &errorp)) != NS_LDAP_SUCCESS) {
1820 (void) __ns_ldap_freeError(&errorp);
1857 ns_ldap_error_t **errorp,
1884 rc = __s_api_conn_mt_get(server, flags, cred, session, errorp,
1892 &paramVal, errorp)) != NS_LDAP_SUCCESS)
1897 MKERROR(LOG_WARNING, *errorp, NS_CONFIG_FILE, strdup(errmsg),
1906 (void) __ns_ldap_getParam(NS_LDAP_BIND_TIME_P, &paramVal, errorp);
1911 if (*errorp)
1912 (void) __ns_ldap_freeError(errorp);
1917 (void ***)&aMethod, errorp)) != NS_LDAP_SUCCESS)
1940 (void ***)&cLevel, errorp)) != NS_LDAP_SUCCESS) {
1966 sessionId, timeoutSec, errorp,
1997 sessionId, timeoutSec, errorp,
2045 sessionId, timeoutSec, errorp,
2110 * password management info in *errorp
2138 * errorp Set if there are any INTERNAL, or CONFIG error.
2147 ns_ldap_error_t **errorp,
2155 errorp, fail_if_new_pwd_reqd, nopasswd_acct_mgmt,
2160 __s_api_conn_mt_remove(conn_user, rc, errorp);
2186 * provide an additional info pointed by *errorp.
2192 LDAP **ldp, ns_ldap_error_t **errorp)
2209 MKERROR(LOG_WARNING, *errorp, LDAP_CONNECT_ERROR,
2231 MKERROR(LOG_WARNING, *errorp, LDAP_CONNECT_ERROR,
2245 MKERROR(LOG_WARNING, *errorp, LDAP_CONNECT_ERROR,
2366 * an NS error code and provides an additional info pointed by *errorp.
2372 LDAP **ldp, ns_ldap_error_t **errorp)
2404 MKERROR(LOG_WARNING, *errorp, LDAP_CONNECT_ERROR,
2413 MKERROR(LOG_WARNING, *errorp, LDAP_CONNECT_ERROR,
2435 * and provides an additional info pointed by *errorp.
2441 LDAP **ldp, ns_ldap_error_t **errorp)
2458 MKERROR(LOG_WARNING, *errorp,
2474 timeoutMilliSec, ldp, errorp));
2477 ldp, errorp));
2483 * pointed by *errorp.
2490 ns_ldap_error_t **errorp,
2511 MKERROR(LOG_WARNING, *errorp, LDAP_INVALID_CREDENTIALS,
2531 MKERROR(LOG_WARNING, *errorp, errnum, strdup(errstr),
2548 MKERROR(LOG_WARNING, *errorp, errnum, strdup(errstr),
2564 MKERROR(LOG_WARNING, *errorp, NS_LDAP_INTERNAL,
2572 errorp,
2603 * pointed by *errorp.
2610 ns_ldap_error_t **errorp,
2631 MKERROR(LOG_WARNING, *errorp,
2645 MKERROR(LOG_WARNING, *errorp,
2679 MKERROR(LOG_WARNING, *errorp, errnum,
2710 MKERROR(LOG_WARNING, *errorp, errnum,
2728 MKERROR(LOG_WARNING, *errorp, NS_LDAP_INTERNAL,
2736 errorp,
2755 MKERROR(LOG_WARNING, *errorp, ret_code,
2783 MKERROR(LOG_WARNING, *errorp, NS_LDAP_INTERNAL,
2794 MKERROR(LOG_WARNING, *errorp,
2818 * and provides an additional info pointed by *errorp.
2825 ns_ldap_error_t **errorp,
2835 ns_ldap_error_t **errorp,
2843 MKERROR(LOG_WARNING, *errorp,
2871 MKERROR(LOG_WARNING, *errorp,
2882 errorp,