summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-21 17:26:37 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-21 17:26:37 +0000
commit13c8154ccdfc36445e66472a7448bdd710a909ae (patch)
tree5a0490e5ecf89010a92841508feaf16a974aebbf /source3
parentcca63db35b2b20c823b57e0487c67325d29989e1 (diff)
downloadsamba-13c8154ccdfc36445e66472a7448bdd710a909ae.tar.gz
samba-13c8154ccdfc36445e66472a7448bdd710a909ae.tar.bz2
samba-13c8154ccdfc36445e66472a7448bdd710a909ae.zip
Use the -W domain option to select the SID to show
(This used to be commit 715bd4cf4e2d9d11db031ef3ed5e614b4c1a8a13)
Diffstat (limited to 'source3')
-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;
}