1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

617 Commits

Author SHA1 Message Date
Tim Potter
7c3090fb20 Fixed some compiler warnings. -
Tim Potter
c79e94ea27 Allow the logon level to be passed to cli_netlogon_sam_logon() rather than
the validation level.
-
Tim Potter
c3f5df8d67 Display some errors if the initial connection to the server could not be
made.
-
Tim Potter
7c5ac46b8a Added samlogon command to test against win2k native mode server. I think
there's a bug in the marshalling of net_sam_logon.
-
Tim Potter
d93488b953 Converted a bunch of functions to use sscanf %i instead of atoi to
allow hex or decimal rids to be specified.
-
Jean-François Micouleau
0573caa91b samr querydispinfo can change level, start index and max entries.
added level 4 decoding.

	J.F.
-
Jean-François Micouleau
0157fdc8a2 allow the samr commands to work back and the help too ;-)
J.F.
-
Andrew Tridgell
5296b20ad8 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
-
Tim Potter
f6f0a444fa Moved from include subdir. -
Tim Potter
a40facba96 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
-
Jeremy Allison
4fdd45f3cc Fixup insure changes for rpcclient.
Jeremy.
-
Jeremy Allison
9f5405d425 Incorrect definition of debugf.
Jeremy.
-
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. -
Simo Sorce
d38bc1dcec return NT_STATUS_NO_MEMORY istead of NT_STATUS_OK if we are out of memory. -
Tim Potter
e0bdcbc599 Converted cli_net_auth2() and cli_nt_setup_creds() to return NTSTATUS. -
Simo Sorce
5ceecc7bef move to SAFE_FREE() -
Andrew Bartlett
512e9a5f94 Fix up NTSTATUS stuff in rpcclient's help function -
Tim Potter
5da9862002 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.
-
Tim Potter
842fcd94fa 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.
-
Tim Potter
66c7bb9467 oh foo -
Tim Potter
a46e9cc3a1 Don't crash if run with no command line arguments. (-: -
Andrew Tridgell
5bb7e4f0f6 it now all compiles - so try enabling it by default and see what explodes on the build farm -
Andrew Tridgell
dcd6e735f7 the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work -
Andrew Tridgell
24f9ab683d 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
-
Tim Potter
c96aae613d Start of samsync program invoked by smbd to perform sam synchronisation and
sam replication.  It doesn't work yet.  (-:
-
Tim Potter
3a60cb44f2 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.
-
Tim Potter
c292b63ff6 Fix bug in usage().
Allow user to invoke with \\ or // in front of server name.
-
Andrew Tridgell
1d36250e33 converted another bunch of stuff to NTSTATUS -
Simo Sorce
fd54412ce9 - 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
-
Tim Potter
5f5ed41ee8 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.
-
Tim Potter
2c7d09b38d Return an exit code when connect failed.
Patch from Michael Sweet <mike@easysw.com>
-
Tim Potter
2e33940360 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.  (-:
-
Tim Potter
37052a1bcc Started adding some help/usage info for rpcclient commands. -
Andrew Tridgell
b2a4a62b5e fixed anonymous login in rpcclient -
Andrew Tridgell
29d8f9bcb3 improved the command line parsing of rpcclient -
Andrew Tridgell
57e7df8ae5 missed a couple of strchr calls -
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. -
Andrew Tridgell
debb471267 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.
-
Simo Sorce
1959864490 fix compiler warnings -
Andrew Tridgell
674ee2f1d1 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
-
Tim Potter
aa9024c959 Added delete domain user rpcclient command. -
Tim Potter
13df2304b3 Added some msdfs client routines. -
Tim Potter
e65b486273 Added stub dfs client commands to rpcclient. -
Tim Potter
abc294c4a8 Added stubs for dfs rpc client routines. -
Tim Potter
2ca5ea16bd Fixups for new args to cli_samr_connect()
Added samlookupnames and samlookuprids rpcclient commands.
-
Tim Potter
6c9796286c Added add domain user to rpcclient.
Added cli_ functions for set userinfo and userinfo2.
-
Gerald Carter
c827787d67 merge from 2.2 -
Gerald Carter
e30a3be954 merge from 2.2 -
Gerald Carter
7e23ed4890 merge from 2.2 -
Tim Potter
c93718daa1 Added srvinfo and partial logonctrl and logonctrl2 commands. -