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

r15194: We need to be able to join as PDC as well. Thanks to Andrew Bartlett.

Guenther
(This used to be commit ba81b508ca)
This commit is contained in:
Günther Deschner
2006-04-24 10:09:45 +00:00
committed by Gerald (Jerry) Carter
parent e241563472
commit 8fca274e47
2 changed files with 4 additions and 6 deletions

View File

@ -389,9 +389,8 @@ 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");
if (lp_server_role() == ROLE_STANDALONE) {
d_printf("cannot join as standalone machine\n");
return -1;
}