1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

r15123: Don't even try to join with an inproper configuration.

Guenther
(This used to be commit 22b6875897)
This commit is contained in:
Günther Deschner
2006-04-18 13:22:14 +00:00
committed by Gerald (Jerry) Carter
parent bdbd173e8c
commit 4549efe696
2 changed files with 13 additions and 0 deletions

View File

@ -389,6 +389,12 @@ static int rpc_join_usage(int argc, const char **argv)
int net_rpc_join(int argc, const char **argv)
{
if ((lp_server_role() != ROLE_DOMAIN_MEMBER) ||
(lp_server_role() != ROLE_DOMAIN_BDC)) {
d_printf("can only join as domain member or as BDC\n");
return -1;
}
if ((net_rpc_perform_oldjoin(argc, argv) == 0))
return 0;