Luke Leighton [Tue, 16 Nov 1999 21:14:53 +0000 (21:14 +0000)]
attempting to get nt5 wksta to join domain.
1) had to fix samr "create user" and "set user info" (level 23).
2) had to fix netlogon enum trust domains
3) registry key needed \\ in it not \.
Luke Leighton [Tue, 16 Nov 1999 17:27:41 +0000 (17:27 +0000)]
added two new params: "trusted domains" and "trusting domains".
these _may_ not actually ever get used, as trust relationships
really need to be established with shared secrets, and you need
to get the SID of the trusted and trusting domains, so this
may have to go in a private/xxx.mac file.
Luke Leighton [Tue, 16 Nov 1999 17:25:45 +0000 (17:25 +0000)]
added another dummy key so that NT5 can check in the registry whether
password changes are allowed or not. *dur*!!!!
Luke Leighton [Tue, 16 Nov 1999 17:15:45 +0000 (17:15 +0000)]
oops, mistake in parsing command-arguments. repeated calls to
next_token() should not have line to parse as first arg. oops.
Luke Leighton [Tue, 16 Nov 1999 15:39:09 +0000 (15:39 +0000)]
Shirish Kalele <kalele@veritas.com> noticed that NT workstations are
sending anonymous NTLMSSP user credentials to set up \PIPE\samr.
added anonymous NTLMSSP sessions.
Richard Sharpe [Tue, 16 Nov 1999 14:10:23 +0000 (14:10 +0000)]
Changes to implement NET_AUTH based on NET_AUTH2, to get Win2000
happier in joining a Samba domain.
Luke Leighton [Mon, 15 Nov 1999 23:46:27 +0000 (23:46 +0000)]
added server-side samr enum domains. fixed some parsing issues, server-side.
Luke Leighton [Mon, 15 Nov 1999 22:43:08 +0000 (22:43 +0000)]
added rpcclient "enumdomains" command. enumerates names of domains
for which a PDC is responsible. typical answers are:
<Name of Domain> plus <Builtin>.
against a hierarchical, down-level-compatible NT5 PDC, there's likely to
be more than these two entries!!!!!
Luke Leighton [Mon, 15 Nov 1999 22:11:10 +0000 (22:11 +0000)]
- added DCE/RPC "fault" PDU support.
- disabled (AGAIN) the GETDC "if (MAILSLOT\NTLOGON)" code that will get
NT5rc2 to work but WILL break win95 (AGAIN). this needs _not_ to be
re-enabled but to be replaced with a better mechanism.
- added SMBwrite support (note: SMBwriteX already existed) as NT5rc2 is
sending DCE/RPC over SMBwrite not SMBwriteX.
Luke Leighton [Fri, 12 Nov 1999 15:37:05 +0000 (15:37 +0000)]
split array-handling functions into separate module.
Luke Leighton [Tue, 9 Nov 1999 19:35:30 +0000 (19:35 +0000)]
debugging rpcclient spoolenum and spooljobs commands. oh, did i forget
to mention, there's a spooljobs <printer name> command, and it uses
command-line completion? prints out NT print jobs really nicely, too.
Luke Leighton [Tue, 9 Nov 1999 17:39:21 +0000 (17:39 +0000)]
riccardo sibilia spotted line 1884 has uint32 group_rid[0] not group_rid[1]
oops!
Luke Leighton [Mon, 8 Nov 1999 22:00:41 +0000 (22:00 +0000)]
preparation for doing a spoolss enum jobs command. had to rewrite
spoolss_enumjobs parsing code to do read / writes not just writes.
Luke Leighton [Mon, 8 Nov 1999 20:58:06 +0000 (20:58 +0000)]
const feeding frenzy
Luke Leighton [Mon, 8 Nov 1999 19:32:05 +0000 (19:32 +0000)]
const feeding frenzy
Tim Potter [Mon, 8 Nov 1999 03:34:35 +0000 (03:34 +0000)]
Fixed typo in automatic printer install share name.
Removed confusing 'writeable = no' parameter from example [printers]
entry.
Luke Leighton [Sat, 6 Nov 1999 22:45:31 +0000 (22:45 +0000)]
horrible code to do SMBwriteX / SMBreadX for large MSRPC reads. ARGH!
Luke Leighton [Sat, 6 Nov 1999 21:25:52 +0000 (21:25 +0000)]
missed mem_grow_data call
Luke Leighton [Sat, 6 Nov 1999 21:08:35 +0000 (21:08 +0000)]
added command-completion printer enum code.
Luke Leighton [Sat, 6 Nov 1999 20:36:07 +0000 (20:36 +0000)]
fixed string function for reading in printer_info_N.
Luke Leighton [Sat, 6 Nov 1999 19:52:04 +0000 (19:52 +0000)]
added rpcclient spoolenum command. enumerates printers.
spoolss_r_io_enumprinters doesn't decode strings correctly
as printer_info_1/2 code has only been written to write
structures, not read them.
Luke Leighton [Sat, 6 Nov 1999 18:11:19 +0000 (18:11 +0000)]
spoolss openprinterex / closeprinter client-code.
experimental spoolopen <printer name> command added.
jean-francois, f.y.i. i changed the #define for SPOOLSS_OPENPRINTEREX from
op code 0x44 to 0x45.
Luke Leighton [Fri, 5 Nov 1999 18:40:38 +0000 (18:40 +0000)]
experimental spoolss rpcclient commands
Luke Leighton [Fri, 5 Nov 1999 17:46:16 +0000 (17:46 +0000)]
This is an experimental program to shutdown a group of NTws in a
Samba domain via rpcclient.
Copyright (c) David Bannon 1999
David Bannon, D.Bannon@latrobe.edu.au, 4th November, 1999
Luke Leighton [Fri, 5 Nov 1999 17:45:29 +0000 (17:45 +0000)]
rpcclient example scripts / programs.
Luke Leighton [Thu, 4 Nov 1999 21:41:36 +0000 (21:41 +0000)]
samuserset <username> -p password. YESSSSS :)
you have to use "ntlmv1" at the moment (i.e set client ntlmv2 = no).
Luke Leighton [Thu, 4 Nov 1999 00:09:15 +0000 (00:09 +0000)]
adding experimental set user password command to rpcclient, it returns
error wrong password against nt. ????
Luke Leighton [Wed, 3 Nov 1999 22:14:38 +0000 (22:14 +0000)]
created msrpc_srv_enum_tprt() function by massaging cmd_srv_enum_tprt().
Luke Leighton [Wed, 3 Nov 1999 21:51:29 +0000 (21:51 +0000)]
dynamic mem allocation in net_srv_transport_enum() parsing.
Luke Leighton [Wed, 3 Nov 1999 20:01:07 +0000 (20:01 +0000)]
had to move unistr2_dup(), unistr2_free() and unistr2_copy() into
util_unistr.c in order to get bin/testparm to compile.
Luke Leighton [Wed, 3 Nov 1999 19:58:47 +0000 (19:58 +0000)]
three types of array-creation / array-deletion functions:
char*
UNISTR2*
SID*
decided to create a higher-order function set, add_item_to_array()
free_item_array().
higher-order support routines needed to add a new type:
type* item_dup(const type*)
void item_free(type*)
of course, strdup() and free() are perfect, pre-existing examples
of such functions, used in the implementation of add_chars_to_array()
and free_char_array().
sid_dup() and free() work for the add_sids_to_array() and free_sid_array()
implementations.
use unistr2_dup() and created unistr2_free() because the functionality
behind these may change into something horrible, like [horror] dynamic
memory allocation of the UNISTR2 character array. argh!!!!
jean-francois, this function set implements what we talked about over...
a year ago, now :-)
Luke Leighton [Tue, 2 Nov 1999 23:47:17 +0000 (23:47 +0000)]
added samalias <aliasname> rpcclient command (shows info on alias)
added samaliasmem <aliasname> rpcclient command (shows members in alias)
added tab command-completion to SAM alias related commands (inc 2 above).
Luke Leighton [Tue, 2 Nov 1999 23:32:16 +0000 (23:32 +0000)]
free up memory allocated by enum dom groups / aliases
Luke Leighton [Tue, 2 Nov 1999 23:31:16 +0000 (23:31 +0000)]
dynamic mem allocation in enum dom groups and enum dom aliases
Luke Leighton [Tue, 2 Nov 1999 23:29:44 +0000 (23:29 +0000)]
yet another attempt to get lsaquerysecret working.
Luke Leighton [Mon, 1 Nov 1999 23:16:07 +0000 (23:16 +0000)]
const char* issues
Luke Leighton [Mon, 1 Nov 1999 22:25:38 +0000 (22:25 +0000)]
added lsaenumdomains command.
attempting to get blood out of a stone^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H
querysecret to work, it keeps returning access denied.
Luke Leighton [Mon, 1 Nov 1999 21:09:24 +0000 (21:09 +0000)]
rewrote rpcclient enumaliases command.
Luke Leighton [Mon, 1 Nov 1999 17:52:11 +0000 (17:52 +0000)]
added rpcclient svcstop <service name> command. gnu readline
command-completion works.
Matthew Chapman [Mon, 1 Nov 1999 12:11:05 +0000 (12:11 +0000)]
Fixed typo which was preventing the omission of seconds in the 'at' command.
I *love* this scheduler stuff, it's so useful!
Luke Leighton [Sun, 31 Oct 1999 05:23:32 +0000 (05:23 +0000)]
added yet another rpcclient command: svcstart <service name> [arg0] [arg1] ...
works with command-line completion on the service name (ohh yesss, this
is becoming my favourite bit of functionality-on-the-side hee hee :)
had to fix the svc_io_q_start_service() code which was missing the
ptr_argv[] array in between the array-size and the UNISTR2-array.
i.e it's actually an array of _pointers_ to unicode strings...
Luke Leighton [Sun, 31 Oct 1999 04:19:58 +0000 (04:19 +0000)]
command-line completion for new svcinfo command
Luke Leighton [Sun, 31 Oct 1999 04:11:17 +0000 (04:11 +0000)]
added svcinfo <service name> command.
Luke Leighton [Sat, 30 Oct 1999 22:35:44 +0000 (22:35 +0000)]
connection info level renamed to transport info level
Luke Leighton [Sat, 30 Oct 1999 22:34:38 +0000 (22:34 +0000)]
NetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added.
Luke Leighton [Sat, 30 Oct 1999 20:32:40 +0000 (20:32 +0000)]
general, drastic improvements to rpcclient.
added samgroup <groupname> command
added samgroupmem <groupname> command
added proper registry key completion
added sam command user-completion (e.g samuser [tab])
added sam command group-completion (e.g samgroup [tab])
John Terpstra [Sat, 30 Oct 1999 02:33:12 +0000 (02:33 +0000)]
Updating build specs for TurboLinux 6.0 and later
Luke Leighton [Fri, 29 Oct 1999 23:15:10 +0000 (23:15 +0000)]
messing with command-line completion. it sort-of works to be able
to enumerate down a key tree, but it's a serious fudge. oops.
Luke Leighton [Fri, 29 Oct 1999 21:31:19 +0000 (21:31 +0000)]
added gnu readline command-line completion to the regenum command.
Luke Leighton [Fri, 29 Oct 1999 20:24:18 +0000 (20:24 +0000)]
rpcclient regenum key client code rewritten to use higher order functions.
Luke Leighton [Fri, 29 Oct 1999 19:31:32 +0000 (19:31 +0000)]
rewrite rpcclient sam enum user code to use higher order functions.
Luke Leighton [Fri, 29 Oct 1999 18:57:22 +0000 (18:57 +0000)]
using #defines for function prototypes
Luke Leighton [Fri, 29 Oct 1999 17:37:27 +0000 (17:37 +0000)]
more reshuffling of enum groups code. more higher order functions.
Luke Leighton [Fri, 29 Oct 1999 16:24:11 +0000 (16:24 +0000)]
added HKEY_CLASSES_ROOT MSRPC open call. reg_open_hkcr etc. supported
in rpcclient, regenum HKEY_CLASSES_ROOT or regenum HKCR to test.
Luke Leighton [Fri, 29 Oct 1999 16:19:17 +0000 (16:19 +0000)]
using higher-order-function in enum groups as a test. makes it really
useful for doing things _other_ than just "print me".
Luke Leighton [Fri, 29 Oct 1999 15:53:18 +0000 (15:53 +0000)]
cli_nt_setup_creds() returns uint32 NT status code not a BOOL.
removed all comparisons to if (fn() == False), replaced with if (!fn()).
Luke Leighton [Thu, 28 Oct 1999 20:34:28 +0000 (20:34 +0000)]
restructuring sam enum dom groups code to do multiple calls to
sam_enum_dom_groups. enum dom aliases is still left to do (dom users
already done).
Luke Leighton [Thu, 28 Oct 1999 20:02:29 +0000 (20:02 +0000)]
restructuring samr client code.
Luke Leighton [Thu, 28 Oct 1999 19:02:23 +0000 (19:02 +0000)]
removed samr_* variables from info struct.
Luke Leighton [Thu, 28 Oct 1999 17:52:12 +0000 (17:52 +0000)]
rewrote samr enum groups code a bit.
Luke Leighton [Wed, 27 Oct 1999 17:20:55 +0000 (17:20 +0000)]
rewrote api_net_sam_logon() to be a little clearer.
Luke Leighton [Wed, 27 Oct 1999 16:58:35 +0000 (16:58 +0000)]
no CLIX, no !HAVE_READLINE blah blah. argh.
Luke Leighton [Tue, 26 Oct 1999 20:03:48 +0000 (20:03 +0000)]
created samr_query_groupmem() function from existing code.
Luke Leighton [Tue, 26 Oct 1999 16:46:45 +0000 (16:46 +0000)]
adding extra parameter back in to trust account functions (trust account name).
restoring opening S-1-5-20 in sam enum users code.
Luke Leighton [Tue, 26 Oct 1999 14:27:46 +0000 (14:27 +0000)]
cut/paste code from smbclient for wait_keyboard() function. oops.
Luke Leighton [Mon, 25 Oct 1999 19:03:27 +0000 (19:03 +0000)]
- typecast malloc / Realloc issues.
- signed / unsigned issues.
Luke Leighton [Mon, 25 Oct 1999 17:10:54 +0000 (17:10 +0000)]
signed / unsigned and typecast issues
Luke Leighton [Mon, 25 Oct 1999 16:23:42 +0000 (16:23 +0000)]
the new CAP_EXTENDED_SECURITY code needed to support NTLMv2. also removed
switching on CAP_STATUS32 from non-CAP_EXTENDED_SECURITY code (enabled
for test purposes only)
Luke Leighton [Mon, 25 Oct 1999 16:22:08 +0000 (16:22 +0000)]
one of those wonderful moments when running against a different MSRPC
implementation (NT5) when you discover that your code is trash.
samr_enum_dom_users(), samr_enum_dom_aliases() and samr_enum_dom_groups()
all take a HANDLE for multiple-call enumeration purposes.
Luke Leighton [Thu, 21 Oct 1999 19:02:57 +0000 (19:02 +0000)]
the dynamic memory alloc blood-fest goes on...
Luke Leighton [Thu, 21 Oct 1999 18:25:12 +0000 (18:25 +0000)]
turning some of the rpcclient functions dynamic. this is likely to
break a few things...
Luke Leighton [Thu, 21 Oct 1999 16:53:50 +0000 (16:53 +0000)]
various. debug levels changed. nmbd doesn't need libsmb/clienttrust.c.
samr_lookup_rids() moved to a dynamic memory structure not a
static one limited to 32 RIDs. cli_pipe.c reading wasn't checking
ERRmoredata when DOS error codes negotiated (this terminates
MSRPC code with prejudice).
Luke Leighton [Thu, 21 Oct 1999 15:38:59 +0000 (15:38 +0000)]
split modify_trust_account_password into a separate module.
Luke Leighton [Thu, 21 Oct 1999 15:22:30 +0000 (15:22 +0000)]
use DEBUGADD instead of DEBUG: clears up some of the more verbose trash.
Luke Leighton [Tue, 19 Oct 1999 19:55:43 +0000 (19:55 +0000)]
need status codes from cli_net_req_chal() and cli_net_auth2().
this format is what i would like _all_ these functions to be
(returning status codes, not BOOL) but that's a horrendous
amount of work at the moment :)
Luke Leighton [Tue, 19 Oct 1999 19:54:01 +0000 (19:54 +0000)]
oops, added wait_keyboard back, but _this_ time wrapped it with
HAVE_READLINE
Luke Leighton [Mon, 18 Oct 1999 16:26:55 +0000 (16:26 +0000)]
initialising enum dom users mem and account name ptrs to NULL.
John Terpstra [Sun, 17 Oct 1999 17:40:49 +0000 (17:40 +0000)]
Bringing samba-2.1.x samba2.spec.tmpl file into line with samba-2.0.x release tree.
Luke Leighton [Fri, 15 Oct 1999 20:10:46 +0000 (20:10 +0000)]
added prs_struct "error" member, set and checked when prs_struct
data is handled.
Luke Leighton [Fri, 15 Oct 1999 20:00:30 +0000 (20:00 +0000)]
adding error checking in parsing code
Luke Leighton [Fri, 15 Oct 1999 19:23:48 +0000 (19:23 +0000)]
renamed "class" local variable to avoid global clash
Luke Leighton [Fri, 15 Oct 1999 19:21:18 +0000 (19:21 +0000)]
oops! srvinfo 2 command caught bug where strings in containers assumed
to exist. not good!
Luke Leighton [Fri, 15 Oct 1999 19:20:30 +0000 (19:20 +0000)]
renamed args due to global "class" variable
Luke Leighton [Fri, 15 Oct 1999 18:46:22 +0000 (18:46 +0000)]
return results on prs_xxxxx() and all xxx_io_xxx() routines.
the whole task is not complete, yet. xxx_io_xxx() routines that
_call_ xxx_io_xxx() routines not done.
prs_xxxx() covered by macros. considering doing xxx_io_xxxx in the same way.
Luke Leighton [Fri, 15 Oct 1999 18:44:33 +0000 (18:44 +0000)]
removed unused static wait_keyboard()
Tim Potter [Fri, 15 Oct 1999 00:12:39 +0000 (00:12 +0000)]
According to params/loadparm.c, the "case sensitive", "casesignames",
and "short preserve case" name mangling parameters are local options
but the documentation says they are globals.
Luke Leighton [Thu, 14 Oct 1999 19:45:52 +0000 (19:45 +0000)]
const issues
Luke Leighton [Thu, 14 Oct 1999 19:21:23 +0000 (19:21 +0000)]
stop over-runs in reading / writing data stream.
Luke Leighton [Thu, 14 Oct 1999 18:49:24 +0000 (18:49 +0000)]
adding CAP_EXTENDED_SECURITY support in a hurry last week. forgot to
deal with linking issues in other binaries
Luke Leighton [Thu, 7 Oct 1999 22:10:29 +0000 (22:10 +0000)]
- added rudimentary CAP_UNICODE support because i thought it was part of
a problem i was having.
- added rudimentary CAP_STATUS32 support for same reason.
- added hard-coded, copy-the-same-data-from-over-the-wire version of
CAP_EXTENDED_SECURITY, which is a security-blob to encapsulate
GSSAPI which encodes
SPNEGO which is used to negotiate
Kerberos or NTLMSSP. i have implemented
NTLMSSP which negotiates
NTLMv1 or NTLMv2 and 40-bit or 128-bit etc. i have implemented
NTLMv1 / 40-bit.
*whew*.
Luke Leighton [Tue, 5 Oct 1999 21:35:17 +0000 (21:35 +0000)]
David van Geyn spotted that ulong is not defined on FREEBSD, not supposed
to use ulong use uint32 instead.
Luke Leighton [Fri, 1 Oct 1999 18:44:33 +0000 (18:44 +0000)]
splitting dom info into sam_query_dominfo function
Luke Leighton [Fri, 1 Oct 1999 18:27:29 +0000 (18:27 +0000)]
permissions on SamrConnect changed to 0x02000000 (maximum allowed)
Luke Leighton [Fri, 1 Oct 1999 18:11:57 +0000 (18:11 +0000)]
error-code checking in lsa_lookup_sids. anonymous connections for
domain info. adjusting net_srv_get_info function.
Luke Leighton [Tue, 28 Sep 1999 20:54:58 +0000 (20:54 +0000)]
memory problems associated with when lsalookupsids returns
NT_STATUS_NONE_MAPPED.
Herb Lewis [Tue, 28 Sep 1999 15:10:38 +0000 (15:10 +0000)]
add description of -P option
Jean-François Micouleau [Mon, 27 Sep 1999 13:12:55 +0000 (13:12 +0000)]
don't leak printer handles,
don't coredump when adding forms,
and a small non obvious memory leak in the rpc buffers
J.F.
Jean-François Micouleau [Sat, 25 Sep 1999 14:18:48 +0000 (14:18 +0000)]
Don't duplicate forms anymore, just update the definition.
Many memory leaks fixed.
J.F.
Jean-François Micouleau [Fri, 24 Sep 1999 14:45:21 +0000 (14:45 +0000)]
Correctly handle the dependent files in the printer_driver_info_3 struct
It means complex printer drivers should now download fine.
J.F.
Jean-François Micouleau [Fri, 24 Sep 1999 10:13:38 +0000 (10:13 +0000)]
Alan (alanh@pinacl.co.uk) found a nasty bug
J.F.