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

38 Commits

Author SHA1 Message Date
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. -
Andrew Bartlett
de24fcb097 Merge from HEAD:
new 'net ads dn'

doxygen fixes

net help fixes.
-
Gerald Carter
25a9681ddd [merge]
* removed unused variable from rpcclient code
* added container option to net command (patch from SuSE)
* Makefile patch for examples/VFS from SuSE
-
Jim McDonough
307d942ccd Add net help join text, from Steve Langasek.
Also update the other commands to his correct example of [<method>], since
it is optional.

Thanks, Steve.
-
Gerald Carter
65e7b5273b sync'ing up for 3.0alpha20 release -
Andrew Tridgell
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 -
Andrew Tridgell
da794d3bbd fixed a return value for a help function -
Jim McDonough
9daa5788c8 Lots more net consistency work:
- Added net_help.c for unified help when possible
- Added net rpc user listing, delete, info commands
- Unified net user command to autodetect ads/rpc/rap (try in that order)
- Added generic routine for detecting rpc (protocol > PROTOCOL_NT1)
- I'm sure I forgot something.
-