diff options
author | Stef Walter <stefw@redhat.com> | 2013-05-23 17:23:07 +0200 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2013-06-11 10:49:34 +0200 |
commit | 084ec6754cac5c49f86ca770a4bde93d46d083e7 (patch) | |
tree | 82e5ae68ae86243d44b309c5e8b6eece3fa31ac9 | |
parent | 7f83bf30444ddbabfeaf7ba33a4babd5aed3613c (diff) |
Always show info for --domain-controller if provided
-rw-r--r-- | tools/info.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/info.c b/tools/info.c index 473fff1..e7e20ad 100644 --- a/tools/info.c +++ b/tools/info.c @@ -165,18 +165,16 @@ adcli_tool_info (adcli_conn *unused, else if (argc != 0) errx (2, "specify one user name to create"); - if (domain) { - adcli_disco_domain (domain, &disco); - if (disco == NULL) - errx (1, "couldn't discover domain: %s", domain); - for_host = 0; - - }else if (server) { + if (server) { adcli_disco_host (server, &disco); if (disco == NULL) errx (1, "couldn't discover domain controller: %s", server); for_host = 1; - + } else if (domain) { + adcli_disco_domain (domain, &disco); + if (disco == NULL) + errx (1, "couldn't discover domain: %s", domain); + for_host = 0; } else { errx (2, "specify a domain to discover"); } |