Lines Matching refs:retcode

329 	int		retcode;  in main()  local
407 retcode = clientSetParam(optlist, paramFlag, attrVal); in main()
408 if (retcode != CLIENT_SUCCESS) { in main()
413 retcode, optarg); in main()
487 retcode = clientSetParam( in main()
491 if (retcode != CLIENT_SUCCESS) { in main()
496 retcode); in main()
590 retcode = client_list(optlist); in main()
599 retcode = client_uninit(optlist); in main()
608 retcode = client_init(optlist); in main()
617 retcode = client_genProfile(optlist); in main()
626 retcode = client_manual(optlist); in main()
635 retcode = client_mod(optlist); in main()
639 if ((retcode == CLIENT_SUCCESS) || in main()
640 (retcode == CLIENT_ERR_FAIL) || in main()
641 (retcode == CLIENT_ERR_CREDENTIAL)) in main()
642 return (retcode); in main()
651 int retcode = CLIENT_SUCCESS; in client_list() local
661 retcode = CLIENT_ERR_FAIL; in client_list()
670 return (retcode); in client_list()
676 int retcode = CLIENT_SUCCESS; in client_uninit() local
696 retcode = stop_services(STATE_SAVE); in client_uninit()
701 if (retcode != CLIENT_SUCCESS) { in client_uninit()
709 retcode = recover(STATE_SAVE); in client_uninit()
710 if (retcode != CLIENT_SUCCESS) { in client_uninit()
717 retcode = start_services(START_UNINIT); in client_uninit()
718 if (retcode != CLIENT_SUCCESS) { in client_uninit()
727 if (retcode == CLIENT_SUCCESS) { in client_uninit()
733 return (retcode); in client_uninit()
748 retcode = 0; \
751 retcode = __ns_ldap_setParam(argdef, (void *)argval, &ldaperr); \
752 if (retcode != NS_LDAP_SUCCESS) { \
758 return (retcode ? CLIENT_ERR_FAIL : CLIENT_SUCCESS); \
784 int retcode = CLIENT_SUCCESS; in client_manual() local
895 retcode = credCheck(arglist); in client_manual()
896 if (retcode == CLIENT_SUCCESS) in client_manual()
897 retcode = adminCredCheck(arglist); in client_manual()
898 if (retcode != CLIENT_SUCCESS) { in client_manual()
902 return (retcode); in client_manual()
912 retcode = stop_services(STATE_SAVE); in client_manual()
913 if (retcode != CLIENT_SUCCESS) { in client_manual()
920 retcode = file_backup(); in client_manual()
921 if (retcode == CLIENT_ERR_RESTORE) { in client_manual()
932 return (retcode); in client_manual()
933 } else if (retcode != CLIENT_SUCCESS) { in client_manual()
938 retcode = recover(STATE_NOSAVE); in client_manual()
939 if (retcode != CLIENT_SUCCESS) { in client_manual()
945 return (retcode); in client_manual()
955 return (retcode); in client_manual()
964 retcode = recover(STATE_NOSAVE); in client_manual()
965 if (retcode != CLIENT_SUCCESS) { in client_manual()
971 return (retcode); in client_manual()
989 retcode = recover(STATE_NOSAVE); in client_manual()
990 if (retcode != CLIENT_SUCCESS) { in client_manual()
996 return (retcode); in client_manual()
1013 retcode = recover(STATE_NOSAVE); in client_manual()
1014 if (retcode != CLIENT_SUCCESS) { in client_manual()
1033 retcode = recover(STATE_NOSAVE); in client_manual()
1034 if (retcode != CLIENT_SUCCESS) { in client_manual()
1054 retcode = start_services(START_INIT); in client_manual()
1056 if (retcode == CLIENT_SUCCESS) { in client_manual()
1087 return (retcode); in client_manual()
1097 int retcode = CLIENT_SUCCESS; in client_mod() local
1191 retcode = credCheck(arglist); in client_mod()
1192 if (retcode == CLIENT_SUCCESS) in client_mod()
1193 retcode = adminCredCheck(arglist); in client_mod()
1194 if (retcode != CLIENT_SUCCESS) { in client_mod()
1198 return (retcode); in client_mod()
1208 retcode = stop_services(STATE_SAVE); in client_mod()
1209 if (retcode != CLIENT_SUCCESS) { in client_mod()
1216 retcode = mod_backup(); in client_mod()
1217 if (retcode != CLIENT_SUCCESS) { in client_mod()
1222 return (retcode); in client_mod()
1232 retcode = mod_recover(); in client_mod()
1233 if (retcode != CLIENT_SUCCESS) { in client_mod()
1256 retcode = mod_recover(); in client_mod()
1257 if (retcode != CLIENT_SUCCESS) { in client_mod()
1277 retcode = mod_recover(); in client_mod()
1278 if (retcode != CLIENT_SUCCESS) { in client_mod()
1297 retcode = start_services(START_INIT); in client_mod()
1299 if (retcode == CLIENT_SUCCESS) { in client_mod()
1333 return (retcode); in client_mod()
1341 int retcode; /* required for LDAP_SET_PARAM macro */ in client_genProfile() local
1447 int retcode = CLIENT_SUCCESS; in client_init() local
1730 retcode = credCheck(arglist); in client_init()
1731 if (retcode == CLIENT_SUCCESS) in client_init()
1732 retcode = adminCredCheck(arglist); in client_init()
1733 if (retcode != CLIENT_SUCCESS) { in client_init()
1740 return (retcode); in client_init()
1750 retcode = stop_services(STATE_SAVE); in client_init()
1751 if (retcode != CLIENT_SUCCESS) { in client_init()
1762 retcode = file_backup(); in client_init()
1763 if (retcode == CLIENT_ERR_RESTORE) { in client_init()
1768 return (retcode); in client_init()
1770 } else if (retcode != CLIENT_SUCCESS) { in client_init()
1775 retcode = recover(STATE_NOSAVE); in client_init()
1776 if (retcode != CLIENT_SUCCESS) { in client_init()
1791 return (retcode); in client_init()
1800 retcode = recover(STATE_NOSAVE); in client_init()
1801 if (retcode != CLIENT_SUCCESS) { in client_init()
1825 retcode = recover(STATE_NOSAVE); in client_init()
1826 if (retcode != CLIENT_SUCCESS) { in client_init()
1849 retcode = recover(STATE_NOSAVE); in client_init()
1850 if (retcode != CLIENT_SUCCESS) { in client_init()
1869 retcode = recover(STATE_NOSAVE); in client_init()
1870 if (retcode != CLIENT_SUCCESS) { in client_init()
1890 retcode = start_services(START_INIT); in client_init()
1892 if (retcode == CLIENT_SUCCESS) { in client_init()
1923 return (retcode); in client_init()
2086 int sysret, retcode = CLIENT_SUCCESS, rc = NS_LDAP_SUCCESS; in start_services() local
2149 retcode = CLIENT_ERR_FAIL; in start_services()
2157 retcode = CLIENT_ERR_FAIL; in start_services()
2169 retcode = CLIENT_ERR_FAIL; in start_services()
2174 retcode = CLIENT_ERR_FAIL; in start_services()
2177 rc == NS_LDAP_SUCCESS && retcode == CLIENT_SUCCESS) { in start_services()
2185 retcode = CLIENT_ERR_FAIL; in start_services()
2212 retcode = CLIENT_ERR_FAIL; in start_services()
2220 retcode = CLIENT_ERR_FAIL; in start_services()
2238 retcode == CLIENT_SUCCESS && in start_services()
2243 retcode = CLIENT_ERR_FAIL; in start_services()
2256 return (retcode); in start_services()
2274 int retcode; in credCheck() local
2277 retcode = __ns_ldap_getParam(NS_LDAP_CREDENTIAL_LEVEL_P, in credCheck()
2279 if (retcode != 0) { in credCheck()
2283 retcode); in credCheck()
2286 retcode = __ns_ldap_getParam(NS_LDAP_AUTH_P, in credCheck()
2288 if (retcode != 0) { in credCheck()
2291 "authMethod\n"), retcode); in credCheck()
2294 retcode = __ns_ldap_getParam(NS_LDAP_BINDDN_P, in credCheck()
2296 if (retcode != 0) { in credCheck()
2299 retcode); in credCheck()
2302 retcode = __ns_ldap_getParam(NS_LDAP_BINDPASSWD_P, in credCheck()
2304 if (retcode != 0) { in credCheck()
2307 "proxyPassword\n"), retcode); in credCheck()
2379 if (retcode != 0) { in credCheck()
2409 int retcode, rc; in adminCredCheck() local
2412 retcode = __ns_ldap_getParam(NS_LDAP_ENABLE_SHADOW_UPDATE_P, in adminCredCheck()
2414 if (retcode != 0) { in adminCredCheck()
2417 "enableShadowUpdate\n"), retcode); in adminCredCheck()
2432 retcode = __ns_ldap_getParam(NS_LDAP_CREDENTIAL_LEVEL_P, in adminCredCheck()
2434 if (retcode != 0) { in adminCredCheck()
2437 retcode); in adminCredCheck()
2443 retcode = __ns_ldap_getParam(NS_LDAP_AUTH_P, in adminCredCheck()
2445 if (retcode != 0) { in adminCredCheck()
2448 retcode); in adminCredCheck()
2454 retcode = __ns_ldap_getParam(NS_LDAP_ADMIN_BINDDN_P, in adminCredCheck()
2456 if (retcode != 0) { in adminCredCheck()
2459 retcode); in adminCredCheck()
2465 retcode = __ns_ldap_getParam(NS_LDAP_ADMIN_BINDPASSWD_P, in adminCredCheck()
2467 if (retcode != 0) { in adminCredCheck()
2470 "adminPassword\n"), retcode); in adminCredCheck()
2547 if (retcode != 0) { in adminCredCheck()
2580 int stat_ret, retcode, fd; in recover() local
2681 retcode = file_move(ldap_file_back, NSCONFIGFILE); in recover()
2685 ldap_file_back, NSCONFIGFILE, retcode); in recover()
2686 if (retcode != 0) in recover()
2701 retcode = file_move(ldap_cred_back, NSCREDFILE); in recover()
2705 ldap_cred_back, NSCREDFILE, retcode); in recover()
2706 if (retcode != 0) in recover()
2730 retcode = file_move(yp_dir_back, yp_dir); in recover()
2735 yp_dir_back, yp_dir, retcode); in recover()
2736 if (retcode != 0) { in recover()
2755 retcode = file_move(NSSWITCH_BACK, NSSWITCH_CONF); in recover()
2759 NSSWITCH_BACK, NSSWITCH_CONF, retcode); in recover()
2760 if (retcode != 0) in recover()
2772 retcode = file_move(DOMAINNAME_BACK, DOMAINNAME); in recover()
2776 DOMAINNAME_BACK, DOMAINNAME, retcode); in recover()
2777 if (retcode != 0) in recover()
2783 retcode = rmdir(LDAP_RESTORE_DIR); in recover()
2784 if (retcode != 0) { in recover()
2808 int retcode, namelen, ret; in file_backup() local
2839 retcode = mkdir(LDAP_RESTORE_DIR, 0755); in file_backup()
2840 if (retcode != 0) { in file_backup()
2844 LDAP_RESTORE_DIR, retcode); in file_backup()
2858 retcode = file_move(NSSWITCH_CONF, NSSWITCH_BACK); in file_backup()
2859 if (retcode != 0) { in file_backup()
2863 NSSWITCH_CONF, NSSWITCH_BACK, retcode); in file_backup()
2883 retcode = file_move(DOMAINNAME, DOMAINNAME_BACK); in file_backup()
2884 if (retcode != 0) { in file_backup()
2888 DOMAINNAME, DOMAINNAME_BACK, retcode); in file_backup()
2931 retcode = file_move(yp_dir, yp_dir_back); in file_backup()
2932 if (retcode != 0) { in file_backup()
2936 yp_dir, yp_dir_back, retcode); in file_backup()
2964 retcode = file_move(NSCONFIGFILE, ldap_file_back); in file_backup()
2965 if (retcode != 0) { in file_backup()
2969 NSCONFIGFILE, ldap_file_back, retcode); in file_backup()
2979 retcode = file_move(NSCREDFILE, ldap_cred_back); in file_backup()
2980 if (retcode != 0) { in file_backup()
2984 NSCREDFILE, ldap_cred_back, retcode); in file_backup()
3008 int retcode = CLIENT_SUCCESS; in mod_backup() local
3011 retcode += rc; in mod_backup()
3018 retcode += rc; in mod_backup()
3025 retcode += rc; in mod_backup()
3031 if (retcode != CLIENT_SUCCESS) in mod_backup()
3032 retcode = CLIENT_ERR_RENAME; in mod_backup()
3033 return (retcode); in mod_backup()
3047 int retcode = CLIENT_SUCCESS; in mod_recover() local
3050 retcode += rc; in mod_recover()
3057 retcode += rc; in mod_recover()
3064 retcode += rc; in mod_recover()
3070 if (retcode != CLIENT_SUCCESS) in mod_recover()
3071 retcode = CLIENT_ERR_RENAME; in mod_recover()
3072 return (retcode); in mod_recover()
3390 int retcode = 0; in clientSetParam() local
3401 retcode = multival_add(optlist->serviceAuthenticationMethod, in clientSetParam()
3403 if (retcode != CLIENT_SUCCESS) { in clientSetParam()
3424 retcode = multival_add(optlist->serviceCredentialLevel, in clientSetParam()
3426 if (retcode != CLIENT_SUCCESS) { in clientSetParam()
3463 retcode = multival_add(optlist->objectclassMap, attrVal); in clientSetParam()
3464 if (retcode != CLIENT_SUCCESS) { in clientSetParam()
3508 retcode = multival_add(optlist->attributeMap, attrVal); in clientSetParam()
3509 if (retcode != CLIENT_SUCCESS) { in clientSetParam()
3525 retcode = multival_add(optlist->serviceSearchDescriptor, in clientSetParam()
3527 if (retcode != CLIENT_SUCCESS) { in clientSetParam()
3568 return (retcode); in clientSetParam()
3581 int retcode; in file_move() local
3594 retcode = system(cmd_buffer); in file_move()
3596 return (retcode); in file_move()