[patch] add trivial online documentation for 'net join'

Steve Langasek vorlon at netexpress.net
Sat Nov 9 17:46:01 GMT 2002


Currently in 3.0 CVS, 'net help join' returns the message 'No command: join'.
It should at least be possible to get limited usage information about
the command; below is a patch to do this.  This doesn't call
net_common_methods_usage(), because there's no support for domain
joining using RAP.

Cheers,
-- 
Steve Langasek
postmodern programmer

Index: source/utils/net_help.c
===================================================================
RCS file: /cvsroot/samba/source/utils/net_help.c,v
retrieving revision 1.2.2.2
diff -u -w -r1.2.2.2 net_help.c
--- source/utils/net_help.c	25 Sep 2002 15:19:00 -0000	1.2.2.2
+++ source/utils/net_help.c	9 Nov 2002 10:26:48 -0000
@@ -94,6 +94,18 @@
 	return -1;
 }
 
+int net_help_join(int argc, const char **argv)
+{
+	d_printf("\nnet [<method>] join [misc. options]\n"
+	         "\tjoin this server to an NT4 domain or ADS realm\n");
+	d_printf("Valid methods: (auto-detected if not specified)\n");
+	d_printf("\tads\t\t\t\tActive Directory (LDAP/Kerberos)\n");
+	d_printf("\trpc\t\t\t\tDCE-RPC\n");
+	d_printf("\n");
+	net_common_flags_usage(argc, argv);
+	return -1;
+}
+
 int net_help_share(int argc, const char **argv)
 {
 	d_printf(
@@ -165,6 +177,7 @@
 		{"PRINTQ", net_rap_printq_usage},
 		{"USER", net_help_user},
 		{"GROUP", net_help_group},
+		{"JOIN", net_help_join},
 		{"VALIDATE", net_rap_validate_usage},
 		{"GROUPMEMBER", net_rap_groupmember_usage},
 		{"ADMIN", net_rap_admin_usage},
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20021109/843ecaf6/attachment.bin


More information about the samba-technical mailing list