summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-21 17:25:54 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-21 17:25:54 +0000
commit4437f7f76d4d4d541e42ec37fe49800bc40d35dc (patch)
treea7b2b6c70f3505c86d659c5e8c84866c62d10cb2
parenta489b0a8d8bd2f6769b5a3f11e780be7d795bb7e (diff)
downloadsamba-4437f7f76d4d4d541e42ec37fe49800bc40d35dc.tar.gz
samba-4437f7f76d4d4d541e42ec37fe49800bc40d35dc.tar.bz2
samba-4437f7f76d4d4d541e42ec37fe49800bc40d35dc.zip
Make it easier to select which domain to show the sid for.
(This used to be commit 4c7efe25c3f2336938050086ffe5f4cfe462e6f6)
-rw-r--r--source3/utils/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index b404bac595..aa245a920a 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -425,13 +425,13 @@ static int net_getdomainsid(int argc, const char **argv)
sid_to_string(sid_str, &domain_sid);
d_printf("SID for domain %s is: %s\n", global_myname(), sid_str);
- if (!secrets_fetch_domain_sid(lp_workgroup(), &domain_sid)) {
+ if (!secrets_fetch_domain_sid(opt_workgroup, &domain_sid)) {
d_printf("Could not fetch domain SID\n");
return 1;
}
sid_to_string(sid_str, &domain_sid);
- d_printf("SID for domain %s is: %s\n", lp_workgroup(), sid_str);
+ d_printf("SID for domain %s is: %s\n", opt_workgroup, sid_str);
return 0;
}