Lines Matching refs:rc

131 	int			rc	= 0;
152 rc = parse_ldap_cmd_line(cmdline_options, &proxyInfo,
156 rc = 0;
159 if (rc == 0) {
161 rc = yp_parse_ldap_default_conf(&proxyInfo, &ldapConfig,
164 rc = parse_ldap_default_conf(&proxyInfo, &ldapConfig,
178 if (rc == 0 && config_file != NULL) {
183 rc = yp_parse_ldap_config_file(config_file, &proxyInfo,
187 rc = parse_ldap_config_file(config_file, &proxyInfo,
194 if (rc == 0 && (config_info.config_dn != NULL) &&
196 rc = parse_ldap_config_dn_attrs(&proxyInfo,
203 if (rc == 0 && got_config_data == FALSE)
204 rc = 1;
208 if (yp2ldap == 1 && rc == 0) {
209 rc = second_parser_pass(&ldapTableMapping);
210 if (rc == 0)
211 rc = final_parser_pass(&ldapTableMapping, &ypDomains);
212 if (rc == -2)
216 if (rc == 0)
217 rc = finish_parse(&proxyInfo, &ldapTableMapping);
219 if (rc == 0)
220 rc = linked2hash(ldapTableMapping);
222 if ((rc == 0) && yptol_mode)
223 rc = map_id_list_init();
225 if (rc != 0) {
229 return (rc);
251 int rc = 0;
268 rc = -1;
271 rc = add_config_attribute(attrib_num,
274 rc = add_bind_attribute(attrib_num,
277 rc = add_operation_attribute(attrib_num,
281 rc = add_mapping_attribute(attrib_num,
285 if (rc < 0) {
293 return (rc);
303 int rc = 0;
361 rc = -1;
386 rc = add_bind_attribute(attrib_num,
389 rc = add_operation_attribute(attrib_num,
395 rc = -1;
403 return (rc);
413 int rc = 0;
451 rc = -1;
476 rc = add_bind_attribute(attrib_num,
479 rc = add_operation_attribute(attrib_num,
485 rc = -1;
493 return (rc);
575 int rc = 0;
597 rc = add_config_attribute(attrib_num,
600 rc = add_bind_attribute(attrib_num,
603 rc = add_operation_attribute(attrib_num,
606 rc = add_mapping_attribute(attrib_num,
610 if (rc < 0) {
624 rc = -1;
628 return (rc);
653 int rc = 0;
675 rc = add_config_attribute(attrib_num,
678 rc = add_bind_attribute(attrib_num,
681 rc = add_operation_attribute(attrib_num,
684 rc = add_ypdomains_attribute(attrib_num,
687 rc = add_mapping_attribute(attrib_num,
690 rc = -1;
694 if (rc < 0) {
710 rc = -1;
714 return (rc);
941 int rc = 0;
971 rc = add_bind_attribute(attrib_num, attr_val,
974 rc = add_operation_attribute(attrib_num,
977 rc = add_mapping_attribute(attrib_num, attr_val,
984 rc = add_bind_attribute(attrib_num, attr_val,
987 rc = add_operation_attribute(attrib_num,
990 rc = add_mapping_attribute(attrib_num, attr_val,
1024 rc = -1;
1025 return (rc);
1050 int rc;
1055 if ((rc = ldap_url_parse(url, &ludpp)) != LDAP_SUCCESS)
1086 rc = -1;
1088 rc = process_ldap_config_result(ld, resultMsg, proxy_info,
1097 return (rc);
1126 int rc;
1128 rc = ldap_parse_result(ld, resultMsg, &errCode, NULL, NULL, &referralsp,
1131 if (rc != LDAP_SUCCESS || errCode != LDAP_REFERRAL) {
1134 rc = -1;
1137 rc = process_ldap_referral(referralsp[i], attrs,
1140 if (rc <= 0)
1147 if (rc > 0) {
1156 return (rc);
1179 int rc = 0;
1230 rc = process_ldap_referral_msg(ld, resultMsg,
1236 rc = -1;
1238 rc = process_ldap_config_result(ld, resultMsg, proxy_info,
1247 return (rc);