diff options
author | Jeremy Allison <jra@samba.org> | 2007-12-06 11:17:37 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-06 11:17:37 -0800 |
commit | 9bd35ef153ef4b7f892dcf9e69c2232b940a9e18 (patch) | |
tree | cf531cf8f0b2e0122d8956fecaae7370ab8bcebd /source3/utils | |
parent | 4acfce6b036ae1a0bf152a94bb5d6194e93f4004 (diff) | |
parent | bf80f40ca4bcbf0b5f5d3f7f988f121d29fd3edf (diff) | |
download | samba-9bd35ef153ef4b7f892dcf9e69c2232b940a9e18.tar.gz samba-9bd35ef153ef4b7f892dcf9e69c2232b940a9e18.tar.bz2 samba-9bd35ef153ef4b7f892dcf9e69c2232b940a9e18.zip |
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 48252d124d83aaa502b7821564978b9bf5babd03)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index dc4c9da3aa..e8fb2c4987 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -715,10 +715,15 @@ static int net_getdomainsid(int argc, const char **argv) DOM_SID domain_sid; fstring sid_str; + if (argc > 0) { + d_printf("usage: net getdomainsid\n"); + return 1; + } + if(!initialize_password_db(False, NULL)) { - DEBUG(0, ("WARNING: Could not open passdb - domain sid may " + DEBUG(0, ("WARNING: Could not open passdb - domain SID may " "not reflect passdb\n" - "backend knowledge (such as the sid stored in " + "backend knowledge (such as the SID stored in " "LDAP)\n")); } @@ -739,7 +744,7 @@ static int net_getdomainsid(int argc, const char **argv) return 1; } sid_to_string(sid_str, &domain_sid); - d_printf("SID for domain %s is: %s\n", global_myname(), sid_str); + d_printf("SID for local machine %s is: %s\n", global_myname(), sid_str); if (!secrets_fetch_domain_sid(opt_workgroup, &domain_sid)) { d_fprintf(stderr, "Could not fetch domain SID\n"); |