1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-17 15:17:09 +03:00

57 Commits

Author SHA1 Message Date
Kai Blin
f7d0903a58 net: The top level help function for net cmd is always net_cmd_usage 2008-05-20 14:28:12 +02:00
Kai Blin
d26681b169 net: Move help for "net status" to net_status.c 2008-05-20 14:28:07 +02:00
Kai Blin
2ee3d1aefa net: Move printer help to net_rpc where it's used. 2008-05-20 14:28:03 +02:00
Kai Blin
25d4c6f692 net: Split out "net share" 2008-05-20 14:28:01 +02:00
Kai Blin
3f10527f79 net: Split out "net afs" 2008-05-20 14:27:56 +02:00
Kai Blin
84a116be9c net: Split out "net file" 2008-05-20 14:27:47 +02:00
Kai Blin
3ddd9c09e3 net: Split out "net group" 2008-05-20 14:27:40 +02:00
Kai Blin
4ca08a5acc net: Split out "net user" 2008-05-20 14:27:27 +02:00
Kai Blin
d0237a7368 net: Move "net join" handling into a separate file. 2008-05-20 14:27:24 +02:00
Kai Blin
efc863e375 net: Split out common help functions. 2008-05-20 14:27:21 +02:00
Kai Blin
1813e545a9 net: more whitespace cleanup 2008-05-20 14:27:12 +02:00
Kai Blin
ef0184d580 net: more whitespace cleanup 2008-05-10 09:22:31 +02:00
Kai Blin
1e9319cf88 net: Remove globals 2008-05-10 09:22:27 +02:00
Jeremy Allison
757653966f Add general '-e' option to enable smb encryption
on tools.
Jeremy.
2008-01-05 00:23:35 -08:00
Günther Deschner
a41f9aef84 Add "net dom" command suite to "net".
Guenther
2007-11-30 22:25:01 +01:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Michael Adam
ae7e3c9708 r23593: Mention "net conf" in top level net usage.
Michael
2007-10-10 12:23:34 -05:00
Gerald Carter
dbee1088bb r23207: merge net help test fix from SAMBA_3_0_26 2007-10-10 12:22:54 -05:00
Volker Lendecke
66c20f2592 r19883: Fix bug 4248 -- thanks to Pascal Terjan :-) 2007-10-10 12:16:04 -05:00
Günther Deschner
5d776d5fab r16344: Allow to set passwords directly when creating users via "net rpc user
add" (as the documentation says, and currently onle "net ads user add"
did). Fixes #3843.

Guenther
2007-10-10 11:17:36 -05:00
Simo Sorce
51df47c772 r15646: Implement an setdomainsid command as well 2007-10-10 11:17:05 -05:00
Gerald Carter
17e63ac4ed r13316: Let the carnage begin....
Sync with trunk as off r13315
2007-10-10 11:06:23 -05:00
John Terpstra
3f11401335 r12031: Added net idmap to common help list. 2007-10-10 11:05:42 -05:00
Günther Deschner
a11bb4476c r7636: Docu for "net rpc share migrate security" is now valid.
Guenther
2007-10-10 10:57:18 -05:00
John Terpstra
2529d615a6 r6820: Remove claim that password can be set with account creation (RPC). 2007-10-10 10:56:55 -05:00
Günther Deschner
5c578d14ba r5776: Fix typo (found by lieschen).
Guenther
2007-10-10 10:56:00 -05:00
Herb Lewis
bd4405b415 r5650: add help lines for net rpc group addmem and delmem commands
partial fix for Bug 2417 - we need to look for other missing
commands
2007-10-10 10:55:53 -05:00
Volker Lendecke
5818b092e6 r5316: Get 'net afskey' into a subcommand of its own, 'net afs key'.
Implement 'net afs impersonate', generate a token for a specified user. You
obviously need to be root for this operation.

Volker
2007-10-10 10:55:37 -05:00
Günther Deschner
1eabfa050b r4972: Fix a warning and some debugging-outputs.
Guenther
2007-10-10 10:55:10 -05:00
Günther Deschner
b2c8220931 r4868: Add "net rpc user RENAME"-command.
Note that Samba3 does not yet support it server-side.

Guenther
2007-10-10 10:55:05 -05:00
Günther Deschner
4eec06b461 r4311: 'Document' the -L switch when adding groups with "net rpc group".
Guenther
2007-10-10 10:53:43 -05:00
Günther Deschner
69b745fb98 r2942: Add client-side support of triggering ads printer publishing over msrpc
setprinter calls inside the net-tool.

This is usefull to mimic the same queries a windows-client does. At
least win2k returns WERR_IO_PENDING when printer is published via
setprinter, samba returns WERR_OK but this does not hurt.

Guenther
2007-10-10 10:52:57 -05:00
Volker Lendecke
f7f84aa1de r2935: This is a long-standing one in my patch-queue: A pair of net commands
(usersidlist/allowedusers) to scan a file server's share and list all users
who have permission to connect there.

Volker
2007-10-10 10:52:57 -05:00
Tim Potter
7f161702fa r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid of
'..' from all #include preprocessor commands.   This fixes bugzilla #1880
where OpenVMS gets confused about the '.' characters.
2007-10-10 10:52:55 -05:00
Günther Deschner
4aa670385f r2477: Document "--destination" for "net rpc [printer|share] migrate".
Guenther
2007-10-10 10:52:45 -05:00
Günther Deschner
0e990582a0 r1966: further work on and cleanup of the net-migration-tool.
It's now possible to migrate files preserving dos-attributes and correct
timestamps. Also added some small docu- and syntax-fixes.

Guenther
2007-10-10 10:52:25 -05:00
Günther Deschner
8f1716a29b r1692: first commit :)
* add IA64 to the architecture table of printer-drivers

* add new "net"-subcommands:

  net rpc printer migrate {drivers|printers|forms|security|settings|all}
        [printer]
  net rpc share migrate {shares|files|all} [share]

  this is the first part of the migration suite. this will will (once
  feature-complete) allow to do 1:1 server-cloning in the best possible way by
  making heavy use of samba's rpc_client-functions. all migration-steps
  are implemented as rpc/smb-client-calls; net communicates via rpc/smb
  with two servers at the same time (a remote, source server and a
  destination server that currently defaults to the local smbd). this
  allows e. g. printer-driver migration including driverfiles, recursive
  mirroring of file-shares including file-acls, etc. almost any migration
  step can be called with a migrate-subcommand to provide more flexibility
  during a migration process (at the cost of quite some redundancy :) ).

  "net rpc printer migrate settings" is still in a bad condition (many
  open questions that hopefully can be adressed soon).

  "net rpc share migrate security" as an isolated call to just migrate
  share-ACLs will be added later.

  Before playing with it, make sure to use a test-server. Migration is a
  serious business and this tool-set can perfectly overwrite your
  existing file/print-shares.

* along with the migration functions had to make I the following
  changes:

        - implement setprinter level 3 client-side

        - implement net_add_share level 502 client-side

        - allow security descriptor to be set in setprinterdata level 2
          serverside

guenther
2007-10-10 10:52:19 -05:00
Volker Lendecke
e9391e206a Beautify the net status help message a bit
Volker
-
Volker Lendecke
63d877c6b4 I needed a decently parseable format of smbstatus. Looking at smbstatus code
tells me that this should not be expanded, so I implemented

net status [sessions|shares] [parseable]

Volker
-
Volker Lendecke
39e4ee0c5b Implement 'net rpc group list [global|local|builtin]*' for a select listing of
the respective user databases.

Volker
-
Volker Lendecke
4e3a2eb8e0 Implement "net rpc group members": Get members of a domain group in
human-readable format.

Volker
-
Tim Potter
c030d14019 Formatting fixups for help output. -
Volker Lendecke
5775690ee8 Nobody complained on the team-list, so commit it ...
This implements some kind of improved AFS support for Samba on Linux with
OpenAFS 1.2.10. ./configure --with-fake-kaserver assumes that you have
OpenAFS on your machine. To use this, you have to put the AFS server's KeyFile
into secrets.tdb with 'net afskey'. If this is done, on each tree connect
smbd creates a Kerberos V4 ticket suitable for use by the AFS client and
gives it to the kernel via the AFS syscall. This is meant to be very
light-weight, so I did not link in a whole lot of libraries to be more
platform-independent using the ka_SetToken function call.

Volker
-
Gerald Carter
ce09037144 fixing typos pointed out by Vance in WHATSNEW
Include patch to manually set the machine trust account
password (on request from jht) to mimic 2.2. behavior.

last changes before RC2 (not counting syncing the docs).
-
Andrew Bartlett
477f2d9e39 This removes the StrCaseCmp() stuff from 'net idmap' and 'net
groupmap'.  The correct way to implement this stuff is via a function
table, as exampled in all the other parts of 'net'.

This also moves the idmap code into a new file.  Volker, is this your
code?  You might want to put your name on it.

Andrew Bartlett
-
Volker Lendecke
c0575be936 Add 'net idmap restore'. This restores a broken idmap file
from the output of 'net idmap dump'.

'net idmap dump' now also prints the USER/GROUP HWM.

Volker
-
Volker Lendecke
18f3a5efea Trivial extension to 'net' to dump current local idmap. -
Gerald Carter
f2fd0ab41f Merging smbgroupedit into 'net groupmap'. Not entirely done.
Need to check on where the privilege code is sitting
and update the docs.

Examples:

root# bin/net help groupmap
net groupmap add
  Create a new group mapping
net groupmap modify
  Update a group mapping
net groupmap delete
  Remove a group mapping
net groupmap list
  List current group map

# bin/net groupmap add
Usage: net groupmap add rid=<int> name=<string> type=<domain|local|builtin> [comment=<string>]

# bin/net groupmap delete
Usage: net groupmap delete name=<string|SID>

# bin/net groupmap modify
Usage: net groupmap modify name=<string|SID> [comment=<string>] [type=<domain|local>
-
Tim Potter
6a5b88c95b Merge of Jelmer's usage updates for net. -