1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r15136: Fix join consistency check

(This used to be commit a6e88785e7)
This commit is contained in:
Volker Lendecke 2006-04-19 15:38:43 +00:00 committed by Gerald (Jerry) Carter
parent 335637b2eb
commit d4d04313ea
2 changed files with 2 additions and 2 deletions

View File

@ -721,7 +721,7 @@ int net_ads_join(int argc, const char **argv)
const char *short_domain_name = NULL;
TALLOC_CTX *ctx = NULL;
if ((lp_server_role() != ROLE_DOMAIN_MEMBER) ||
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;

View File

@ -389,7 +389,7 @@ 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) ||
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;