1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-01 21:18:10 +03:00
Commit Graph

367 Commits

Author SHA1 Message Date
Tim Potter
cf1d442f40 Fixed some compiler warnings.
(This used to be commit 7c3090fb20)
2001-11-05 01:41:16 +00:00
Tim Potter
35e44b3a83 Allow the logon level to be passed to cli_netlogon_sam_logon() rather than
the validation level.
(This used to be commit c79e94ea27)
2001-10-30 05:41:07 +00:00
Tim Potter
160950ae0e Display some errors if the initial connection to the server could not be
made.
(This used to be commit c3f5df8d67)
2001-10-30 04:21:53 +00:00
Tim Potter
5c3ccf7766 Added samlogon command to test against win2k native mode server. I think
there's a bug in the marshalling of net_sam_logon.
(This used to be commit 7c5ac46b8a)
2001-10-30 01:49:44 +00:00
Tim Potter
879ecfae58 Converted a bunch of functions to use sscanf %i instead of atoi to
allow hex or decimal rids to be specified.
(This used to be commit d93488b953)
2001-10-29 05:38:02 +00:00
Jean-François Micouleau
f78a8a613f samr querydispinfo can change level, start index and max entries.
added level 4 decoding.

	J.F.
(This used to be commit 0573caa91b)
2001-10-22 06:30:18 +00:00
Jean-François Micouleau
0968ee87e1 allow the samr commands to work back and the help too ;-)
J.F.
(This used to be commit 0157fdc8a2)
2001-10-22 06:13:38 +00:00
Andrew Tridgell
a689b24db1 the next step in the intl changeover. This should get us compiling agian,
and also completes the switch to lang_tdb.c. SWAT should now work
with a po file in the lib/ directory

also removed useless SYSLOG defines in many files
(This used to be commit 5296b20ad8)
2001-10-14 12:10:29 +00:00
Tim Potter
6b09d3d067 Moved from include subdir.
(This used to be commit f6f0a444fa)
2001-10-12 05:59:41 +00:00
Tim Potter
439c7e0ca2 Some old stuff hanging around since the CIFS conference. Big cleanup of
rpcclient code.  Refactored cmd_* functions to move common mem_ctx and pipe
opening stuff up one level.  Moved rpcclient.h into rpcclient directory and
out of includes/smb.h
(This used to be commit a40facba96)
2001-10-12 05:56:23 +00:00
Jeremy Allison
5b24e783dd Fixup insure changes for rpcclient.
Jeremy.
(This used to be commit 4fdd45f3cc)
2001-10-03 03:05:55 +00:00
Jeremy Allison
4cfeacd871 Incorrect definition of debugf.
Jeremy.
(This used to be commit 9f5405d425)
2001-10-03 01:45:51 +00:00
Tim Potter
dc1fc3ee8e Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0ea)
2001-10-02 04:29:50 +00:00
Simo Sorce
14cc9a3101 return NT_STATUS_NO_MEMORY istead of NT_STATUS_OK if we are out of memory.
(This used to be commit d38bc1dcec)
2001-09-29 12:26:40 +00:00
Tim Potter
15a6649c01 Converted cli_net_auth2() and cli_nt_setup_creds() to return NTSTATUS.
(This used to be commit e0bdcbc599)
2001-09-18 02:49:35 +00:00
Simo Sorce
87945989c0 move to SAFE_FREE()
(This used to be commit 5ceecc7bef)
2001-09-17 10:26:23 +00:00
Andrew Bartlett
1c6b0ff99e Fix up NTSTATUS stuff in rpcclient's help function
(This used to be commit 512e9a5f94)
2001-09-15 03:57:12 +00:00
Tim Potter
b031544207 Produce correct lanman and nt hashes in samsync smbpasswd output. The
output from samsync -p produces the same output as running PWDUMP.EXE on
the domain controller except it happens via the sam synchronisation protocol.
(This used to be commit 5da9862002)
2001-09-14 04:37:49 +00:00
Tim Potter
f9f31ba33c Converted to NTSTATUS return codes.
Started on producing smbpasswd output from user account information.
Doesn't work yet.

Added -U option so samsync can be run interactively.
(This used to be commit 842fcd94fa)
2001-09-06 09:15:57 +00:00
Tim Potter
9dfa2edd7c oh foo
(This used to be commit 66c7bb9467)
2001-09-05 04:33:25 +00:00
Tim Potter
9888362b39 Don't crash if run with no command line arguments. (-:
(This used to be commit a46e9cc3a1)
2001-09-05 04:30:53 +00:00
Andrew Tridgell
c76dd14040 it now all compiles - so try enabling it by default and see what explodes on the build farm
(This used to be commit 5bb7e4f0f6)
2001-09-04 10:57:29 +00:00
Andrew Tridgell
19fea3242c the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work
(This used to be commit dcd6e735f7)
2001-09-04 07:13:01 +00:00
Andrew Tridgell
fd6ea43161 the next step in our error code handling change
- added WERROR for win32 error codes
- added a configure test for immediate structures

still lots to do, so its not enabled by default, but the main
structure is there
(This used to be commit 24f9ab683d)
2001-09-03 08:50:59 +00:00
Tim Potter
fab372f657 Start of samsync program invoked by smbd to perform sam synchronisation and
sam replication.  It doesn't work yet.  (-:
(This used to be commit c96aae613d)
2001-08-28 06:44:54 +00:00
Tim Potter
d5c9172ada Merge of sam sync code from TNG.
Reverse-engineered the sam replication protocol from staring at hex dumps
for a while.  It's pretty similar to the sam sync protocol with a couple of
different delta header types.

I wasn't able to figure out the format of the privilege stuff - needs more
time and a whiteboard.  (-:

The impressive bit is that the sam sync stuff from tng basically just
worked thanks mainly to Luke Leighton's efforts in this area.
(This used to be commit 3a60cb44f2)
2001-08-28 06:43:43 +00:00
Tim Potter
8b6b1b2e82 Fix bug in usage().
Allow user to invoke with \\ or // in front of server name.
(This used to be commit c292b63ff6)
2001-08-27 21:32:06 +00:00
Andrew Tridgell
b031af348c converted another bunch of stuff to NTSTATUS
(This used to be commit 1d36250e33)
2001-08-27 19:46:22 +00:00
Simo Sorce
acc149c427 - avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)
- ported two rpc back from TNG (WINREG: shutdown and abort shutdown)
- some optimizations and changed some DEBUG statement in loadparm.c
- changed rpcclient a bit moved from non reentrant next_token_nr to next_token
- in cmd_reg.c not sure if getopt will work ok on all platforms only setting optind=0
(This used to be commit fd54412ce9)
2001-08-10 09:52:10 +00:00
Tim Potter
047a7c88d7 Replaced the duplicate DOS constants with appropriate ones from doserr.h to
emphasise the fact that the spoolss pipe returns DOS error codes instead of
32-bit nt status codes.
(This used to be commit 5f5ed41ee8)
2001-08-10 05:41:53 +00:00
Tim Potter
df2cdf6d7b Return an exit code when connect failed.
Patch from Michael Sweet <mike@easysw.com>
(This used to be commit 2c7d09b38d)
2001-07-27 22:54:50 +00:00
Tim Potter
648528196c Held a shoot-out between NT_STATUS_NO_PROBLEMO and NT_STATUS_NOPROBLEMO.
According to the incorruptible judges find and grep, the latter won.

Mmm - procrastination.  (-:
(This used to be commit 2e33940360)
2001-07-25 06:42:05 +00:00
Tim Potter
8db78af970 Started adding some help/usage info for rpcclient commands.
(This used to be commit 37052a1bcc)
2001-07-20 04:38:58 +00:00
Andrew Tridgell
282d295a37 fixed anonymous login in rpcclient
(This used to be commit b2a4a62b5e)
2001-07-08 20:28:17 +00:00
Andrew Tridgell
b4230fb93a improved the command line parsing of rpcclient
(This used to be commit 29d8f9bcb3)
2001-07-08 18:25:56 +00:00
Andrew Tridgell
5a2b87d810 missed a couple of strchr calls
(This used to be commit 57e7df8ae5)
2001-07-04 07:39:01 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
(This used to be commit debb471267)
2001-07-04 07:15:53 +00:00
Simo Sorce
6ad1fcc279 fix compiler warnings
(This used to be commit 1959864490)
2001-06-23 14:58:38 +00:00
Andrew Tridgell
91b8a8d1d2 next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
(This used to be commit 674ee2f1d1)
2001-06-21 09:10:42 +00:00
Tim Potter
5ebfcadf81 Added delete domain user rpcclient command.
(This used to be commit aa9024c959)
2001-06-20 07:07:43 +00:00
Tim Potter
5eee0f1968 Added some msdfs client routines.
(This used to be commit 13df2304b3)
2001-06-13 06:37:02 +00:00
Tim Potter
971cbd57dc Added stub dfs client commands to rpcclient.
(This used to be commit e65b486273)
2001-06-06 07:35:08 +00:00
Tim Potter
68e83b0fee Added stubs for dfs rpc client routines.
(This used to be commit abc294c4a8)
2001-06-06 07:32:51 +00:00
Tim Potter
da408d6298 Fixups for new args to cli_samr_connect()
Added samlookupnames and samlookuprids rpcclient commands.
(This used to be commit 2ca5ea16bd)
2001-06-06 07:18:58 +00:00
Tim Potter
f903ec893a Added add domain user to rpcclient.
Added cli_ functions for set userinfo and userinfo2.
(This used to be commit 6c9796286c)
2001-06-04 04:34:50 +00:00
Gerald Carter
9c2f185242 merge from 2.2
(This used to be commit c827787d67)
2001-05-31 18:35:14 +00:00
Gerald Carter
d1e4606740 merge from 2.2
(This used to be commit e30a3be954)
2001-05-31 18:03:45 +00:00
Gerald Carter
7a33f253e1 merge from 2.2
(This used to be commit 7e23ed4890)
2001-05-31 17:28:40 +00:00
Tim Potter
43bc613e74 Added srvinfo and partial logonctrl and logonctrl2 commands.
(This used to be commit c93718daa1)
2001-05-24 08:10:50 +00:00