1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

349 Commits

Author SHA1 Message Date
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 842fcd94fa847f71d828a46b092f5837743ffcde)
2001-09-06 09:15:57 +00:00
Tim Potter
9dfa2edd7c oh foo
(This used to be commit 66c7bb9467c1acaf7e5b310a2ebc753f455b18c9)
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 a46e9cc3a1a247fba8fe9b4cdfa16954071b4a35)
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 5bb7e4f0f65edf1db20245f403cbe81833134240)
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 dcd6e735f709a9231860ceb9682db40ff26c9a66)
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 24f9ab683dec52587ee56717e821b49c0fa3d70f)
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 c96aae613dfe97808dedffc836c5d4cc9ae52185)
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 3a60cb44f22d5f3f8c78a56ed8f5ea4794cd7ab3)
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 c292b63ff60ca80c0f1804fbfb28d582c3308014)
2001-08-27 21:32:06 +00:00
Andrew Tridgell
b031af348c converted another bunch of stuff to NTSTATUS
(This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
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 fd54412ce9c3504a547e232602d6129e08dd9d4d)
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 5f5ed41ee872d842e944cd2e84a80de714ad4385)
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 2c7d09b38dceb58b85fe49efb7c7e3def84c587b)
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 2e339403605177b15d5185a8fdd1b06f3f043168)
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 37052a1bcc5cd049918c3d5ac4c41c3a669290af)
2001-07-20 04:38:58 +00:00
Andrew Tridgell
282d295a37 fixed anonymous login in rpcclient
(This used to be commit b2a4a62b5ed581bf89fe20cdf427c1740fd73266)
2001-07-08 20:28:17 +00:00
Andrew Tridgell
b4230fb93a improved the command line parsing of rpcclient
(This used to be commit 29d8f9bcb3f55365740a5bbafc75dd2dffc107a9)
2001-07-08 18:25:56 +00:00
Andrew Tridgell
5a2b87d810 missed a couple of strchr calls
(This used to be commit 57e7df8ae58020ab653307c1fdfbadd44983e900)
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 c41fc06376d1a2b83690612304e85010b5e5f3cf)
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 debb471267960e56005a741817ebd227ecfc512a)
2001-07-04 07:15:53 +00:00
Simo Sorce
6ad1fcc279 fix compiler warnings
(This used to be commit 1959864490e79756257ba10431b188de78b8c8a7)
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 674ee2f1d12b0afc164a9e9072758fd1c5e54df7)
2001-06-21 09:10:42 +00:00
Tim Potter
5ebfcadf81 Added delete domain user rpcclient command.
(This used to be commit aa9024c95996dec67d76c5ed108cfba733dcdbfe)
2001-06-20 07:07:43 +00:00
Tim Potter
5eee0f1968 Added some msdfs client routines.
(This used to be commit 13df2304b309a2bd14d4441db0e72e75b8742262)
2001-06-13 06:37:02 +00:00
Tim Potter
971cbd57dc Added stub dfs client commands to rpcclient.
(This used to be commit e65b4862733668feb62befe03ea5724c0a862acc)
2001-06-06 07:35:08 +00:00
Tim Potter
68e83b0fee Added stubs for dfs rpc client routines.
(This used to be commit abc294c4a82dc132b937aec374ee947992a1b93f)
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 2ca5ea16bda131c6314444be5c671165d09c8422)
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 6c9796286c489a79c96d28b081ecf151803dbf7c)
2001-06-04 04:34:50 +00:00
Gerald Carter
9c2f185242 merge from 2.2
(This used to be commit c827787d679b3bbf9f57ff6d5aaab150456b1662)
2001-05-31 18:35:14 +00:00
Gerald Carter
d1e4606740 merge from 2.2
(This used to be commit e30a3be954c0eacb3ccffdaa1165a9f0e8b93a23)
2001-05-31 18:03:45 +00:00
Gerald Carter
7a33f253e1 merge from 2.2
(This used to be commit 7e23ed48908cf396610d26efda9f54d5f5f0e83c)
2001-05-31 17:28:40 +00:00
Tim Potter
43bc613e74 Added srvinfo and partial logonctrl and logonctrl2 commands.
(This used to be commit c93718daa1375269e4e0ef52016271b7a607e292)
2001-05-24 08:10:50 +00:00
Tim Potter
95dbe55e57 Fixed compiler warning.
(This used to be commit 6e0805c191d7434366e4a8d752b6e34656232371)
2001-05-24 08:07:13 +00:00
Tim Potter
3d876c5df1 Removed some level 0 debugs accidentally left in - oops.
(This used to be commit c4e7ce267f63c1b1b0942d8b0a434f6e44a5312f)
2001-05-24 02:21:18 +00:00
Tim Potter
b30730b56e Replaced next_command() with call to next_token().
(This used to be commit c9b4ed79c84dde3421c457cd0a33dae5d84fcae1)
2001-05-24 00:31:53 +00:00
Tim Potter
40ff4007c7 Added stubs for SRVSVC and NETLOGON rpcclient commands.
(This used to be commit 3343c9f0d67d98687e5933e1a73c0ff487279160)
2001-05-24 00:20:32 +00:00
Gerald Carter
43000d8d06 merge from 2.2 (deleteprinterdriver RPC)
(This used to be commit 515caaf7b448e55206433a9ca04fb5078f91cde2)
2001-05-18 04:11:17 +00:00
Gerald Carter
013b454d1a merge from 2.2 DeletePrinterDriver() server side stud coming
in separate commit after I get it working in 2.2.
(This used to be commit 09506ac0e64b84d73e3b8fdd4942fa52dba6060f)
2001-05-17 18:57:25 +00:00
Tim Potter
baff5a6569 Fixed up SAM_USERINFO_CTR dynamic stuff in cmd_samr_query_user()
(This used to be commit 22b760e246f8fcf79daf24542cc35bdf41d1fea7)
2001-05-15 05:02:29 +00:00
Tim Potter
c24bf6d8ab Added arg to querygroupinfo.
(This used to be commit ab58fdf77a12d101f5ac6b6702cd8ed9dc2c7d55)
2001-05-14 03:51:39 +00:00
Tim Potter
862fe3b7ed Memory leak fixes plus general cleanup.
(This used to be commit 48688c4592d03d6404631a7d57701f0af38cfb2d)
2001-05-11 07:04:47 +00:00
Tim Potter
481a727687 Fixed querydispinfo command.
(This used to be commit 727d2929bc4025ab418e933356d8ba4f31420423)
2001-05-08 03:53:16 +00:00
Tim Potter
8e84cde71d iAdded querydispinfo and querydominfo functions.
Allow rid to be specified in lookupuser.
(This used to be commit 1ea5aa4a80f9da56b071b403fb8f1cfa0ff79b8d)
2001-05-07 02:00:28 +00:00
Tim Potter
b8adb72139 Added queryaliasmem function.
Moved fetch_domain_sid() calls out of harms way so they didn't spam out
queries on SAMR pipe.
(This used to be commit 982195c89d2ea0e66c24f6426f50c7d2f35800e0)
2001-05-04 07:35:25 +00:00
Tim Potter
a8be5dced6 Tidyup of server vs servername, username vs user to remove compiler
warnings.
(This used to be commit d4f6ce9422ae53fb5b0cc72407131d5a9e1bd36d)
2001-05-04 07:34:16 +00:00
Tim Potter
206a2a61da Added cmd_samr_enum_dom_groups() function.
(This used to be commit 23427a57da8b18506bbd970e5d7491c0917f6d06)
2001-05-04 04:17:39 +00:00
Tim Potter
0eaa469aa8 More usability fixes.
(This used to be commit 3434e0bf7fe5cdc8478518c6b1311dda7a7d3e81)
2001-05-04 04:15:48 +00:00
Tim Potter
1bbc3d193b Allow ctrl-d to exit rpcclient.
Don't try to run anything if user just presses return at rpcclient prompt.
(This used to be commit 37cdf37fee8414183c4ecb49e68a468ad235787d)
2001-05-04 01:04:23 +00:00
Gerald Carter
e40449fa72 rpcclient merge from 2.2 (including Jeremy's non-void return fix)
(This used to be commit 0a6ceed279cc8111008b21f75c6791efbd993f4b)
2001-04-28 00:32:56 +00:00
Jeremy Allison
f9a15ce1a6 Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
(This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
2001-04-08 20:22:39 +00:00