diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-12-04 05:03:03 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-12-04 05:03:03 +0000 |
commit | 3bc87626ae7894269535333aadb45ec786f3908d (patch) | |
tree | f6e2866016b836e79bcee221f23e19ff3c374331 /source3/utils/net_rpc.c | |
parent | 275a9f4ef74747970b0bd16b1cf1943812080343 (diff) | |
download | samba-3bc87626ae7894269535333aadb45ec786f3908d.tar.gz samba-3bc87626ae7894269535333aadb45ec786f3908d.tar.bz2 samba-3bc87626ae7894269535333aadb45ec786f3908d.zip |
Add 'net rpc join' to match the ADS equiv.
This kills off the offending code in smbpasswd -j -Uab%c
In the process we have changed from unsing compelatly random passwords
to random, 15 char ascii strings. While this does produce a decrese in
entropy, it is still vastly greater than we need, considering the application.
In the meantime this allows us to actually *type* the machine account
password duruign debugging.
This code also adds a 'check' step to the join, confirming that the
stored password does indeed do somthing of value :-)
Andrew Bartlett
(This used to be commit c0b7ee6ee547dc7ff798eaf8cb63fbe344073029)
Diffstat (limited to 'source3/utils/net_rpc.c')
-rw-r--r-- | source3/utils/net_rpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index db4c0c881d..e3e1d4fc70 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -23,13 +23,14 @@ int net_rpc_usage(int argc, const char **argv) { - d_printf("\nNot implemented\n"); + d_printf(" net rpc join \tto join a domin \n"); return -1; } int net_rpc(int argc, const char **argv) { struct functable func[] = { + {"join", net_rpc_join}, {NULL, NULL} }; return net_run_function(argc, argv, func, net_rpc_usage); |