1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

Use the -W domain option to select the SID to show

(This used to be commit 715bd4cf4e2d9d11db031ef3ed5e614b4c1a8a13)
This commit is contained in:
Andrew Bartlett 2003-04-21 17:26:37 +00:00
parent cca63db35b
commit 13c8154ccd

View File

@ -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;
}