예제 #1
0
파일: net.c 프로젝트: AllardJ/Tomato
static int net_join(int argc, const char **argv)
{
	if (net_ads_check_our_domain() == 0) {
		if (net_ads_join(argc, argv) == 0)
			return 0;
		else
			d_fprintf(stderr, "ADS join did not work, falling back to RPC...\n");
	}
	return net_rpc_join(argc, argv);
}
예제 #2
0
파일: net_join.c 프로젝트: gojdic/samba
int net_join(struct net_context *c, int argc, const char **argv)
{
	if (argc < 1)
		return net_join_usage(c, argc, argv);

	if (StrCaseCmp(argv[0], "HELP") == 0) {
		net_join_usage(c, argc, argv);
		return 0;
	}

	if (net_ads_check_our_domain(c) == 0) {
		if (net_ads_join(c, argc, argv) == 0)
			return 0;
		else
			d_fprintf(stderr, "ADS join did not work, falling back to RPC...\n");
	}
	return net_rpc_join(c, argc, argv);
}