sfrench/samba-autobuild/.git
24 years agoregistry API moved over to new format. reg_connect() is the top-level
Luke Leighton [Wed, 24 Nov 1999 23:40:20 +0000 (23:40 +0000)]
registry API moved over to new format.  reg_connect() is the top-level
function, which takes \\server_name.

tested a _few_ functions.  found that regcreatekey receives a Fault PDU.

24 years agoservice control manager API completed. svcenum -i works, but does not
Luke Leighton [Wed, 24 Nov 1999 23:11:03 +0000 (23:11 +0000)]
service control manager API completed.  svcenum -i works, but does not
do so twice.  possible memory corruption, revolving around getopt().

24 years agook. *whew*. this is the first completed part of the restructure.
Luke Leighton [Wed, 24 Nov 1999 22:45:09 +0000 (22:45 +0000)]
ok.  *whew*.  this is the first completed part of the restructure.

verified that lsaquery, lsalookupsids work, and found some bugs in the
parameters of these commands :-)

soo... we now have an lsa_* api that has the same arguments as the nt
Lsa* api!  cool!

the only significant coding difference is the introduction of a
user_credentials structure, containing user, domain, pass and ntlmssp
flags.

24 years agofirst stages of removing struct cli_state* and uint16 fnum from all
Luke Leighton [Wed, 24 Nov 1999 20:24:33 +0000 (20:24 +0000)]
first stages of removing struct cli_state* and uint16 fnum from all
msrpc client code.  the intent is to hide / abstract / associate
connection info behind policy handles.

this makes the msrpc functions look more and more like their nt equivalents.

who-hou!

24 years agoWARNING! MOVED rpc_server/srv_lsa_hnd.c TO lib/util_hnd.c
Luke Leighton [Wed, 24 Nov 1999 18:15:50 +0000 (18:15 +0000)]
WARNING!  MOVED rpc_server/srv_lsa_hnd.c TO lib/util_hnd.c
CVS UPDATE MAY ISSUE WARNING ABOUT lib/util_hnd.c MODIFICATION
DATE BEING IN THE FUTURE.  CVS CHECKOUT A NEW REPOSITORY MAY BE
SAFER.

24 years agorewrote policy handle code to be generic (it's needed for client-side too)
Luke Leighton [Wed, 24 Nov 1999 18:09:33 +0000 (18:09 +0000)]
rewrote policy handle code to be generic (it's needed for client-side too)

attempted to fix regsetsec command

24 years agooops, freed argc,argv arguments twice.
Luke Leighton [Tue, 23 Nov 1999 23:14:10 +0000 (23:14 +0000)]
oops, freed argc,argv arguments twice.

24 years agoattempted a svcset command. password is encrypted / messed up, therefore
Luke Leighton [Tue, 23 Nov 1999 23:05:47 +0000 (23:05 +0000)]
attempted a svcset command.  password is encrypted / messed up, therefore
command fails.

24 years agooops!!!! wrong command!!!
Luke Leighton [Tue, 23 Nov 1999 20:32:52 +0000 (20:32 +0000)]
oops!!!! wrong command!!!

24 years agoadding svcctl 0x1b function
Luke Leighton [Tue, 23 Nov 1999 18:57:07 +0000 (18:57 +0000)]
adding svcctl 0x1b function

24 years agoshuffling msrpc code around so that it can be used independently of rpcclient
Luke Leighton [Tue, 23 Nov 1999 18:56:26 +0000 (18:56 +0000)]
shuffling msrpc code around so that it can be used independently of rpcclient

24 years agothe last one. that concludes the removal of all next_token() calls
Luke Leighton [Mon, 22 Nov 1999 20:14:13 +0000 (20:14 +0000)]
the last one.  that concludes the removal of all next_token() calls
from rpcclient/cmd_*.c.

24 years agoanother four next_token() removals (using getopt instead)
Luke Leighton [Mon, 22 Nov 1999 19:46:26 +0000 (19:46 +0000)]
another four next_token() removals (using getopt instead)

24 years agoanother two.
Luke Leighton [Mon, 22 Nov 1999 19:37:05 +0000 (19:37 +0000)]
another two.

24 years agoanother one
Luke Leighton [Mon, 22 Nov 1999 19:26:56 +0000 (19:26 +0000)]
another one

24 years agomoved two more commands over to getopt.
Luke Leighton [Mon, 22 Nov 1999 19:25:30 +0000 (19:25 +0000)]
moved two more commands over to getopt.

24 years agookay :) all cmd_() functions now take int argc, char **argv :) that
Luke Leighton [Mon, 22 Nov 1999 19:02:39 +0000 (19:02 +0000)]
okay :)  all cmd_() functions now take int argc, char **argv :)  that
means that some commands need more work, as they still use next_token(),
the use of which i wish to avoid.

plus, i was getting fed up of the poor command-line processing in some
of these commands.  i'm starting to need getopt() in them, especially
in samsetuser.

WARNING: only cmd_samr has been modded to use getopt() so far!  reg
commands won't work, esp.

24 years agoimplement server-side generation of NTLMv2 session key. YESSS :-)
Luke Leighton [Sun, 21 Nov 1999 19:59:56 +0000 (19:59 +0000)]
implement server-side generation of NTLMv2 session key.  YESSS :-)

24 years agoyou know what? this sort of thing makes me laugh. hmm, what functions
Luke Leighton [Sun, 21 Nov 1999 19:24:01 +0000 (19:24 +0000)]
you know what?  this sort of thing makes me laugh.  hmm, what functions
have we got.  and what data do we have.  hmm.. i wonder what the NTLMv2
user session key can be... hmmm... weell.... there's some hidden data
here, generated from the user password that doesn't go over-the-wire,
so that's _got_ to be involved.  and... that bit of data took a lot of
computation to produce, so it's probably _also_ involved... and md4 no, md5?
no, how about hmac_md5 yes let's try that one (the other's didn't work)
oh goodie, it worked!

i love it when this sort of thing happens.  took all of fifteen minutes to
guess it.  tried concatenating client and server challenges.  tried
concatenating _random_ bits of client and server challenges.  tried
md5 of the above.  tried hmac_md5 of the above.  eventually, it boils down
to this:

kr = MD4(NT#,username,domainname)
hmacntchal=hmac_md5(kr, nt server challenge)
sess_key = hmac_md5(kr, hmacntchal);

24 years agohmmm... have to add client-side support in domain_client_validate() to
Luke Leighton [Sun, 21 Nov 1999 17:27:20 +0000 (17:27 +0000)]
hmmm... have to add client-side support in domain_client_validate() to
_use_ user session key.

24 years agoadding user session key into network netlogon response.
Luke Leighton [Sun, 21 Nov 1999 17:11:00 +0000 (17:11 +0000)]
adding user session key into network netlogon response.

24 years agomoving create user function into msrpc_samr.c
Luke Leighton [Sun, 21 Nov 1999 17:09:20 +0000 (17:09 +0000)]
moving create user function into msrpc_samr.c

24 years agooops, #ifdef'd cli_shutdown out, as the fun has _already_ started:
Luke Leighton [Sat, 20 Nov 1999 22:05:31 +0000 (22:05 +0000)]
oops, #ifdef'd cli_shutdown out, as the fun has _already_ started:
NT refuses to play nice, and establish a trust relationship.

24 years agoattempting to establish inter-domain trust relationships. modified
Luke Leighton [Sat, 20 Nov 1999 21:59:16 +0000 (21:59 +0000)]
attempting to establish inter-domain trust relationships.  modified
smbpasswd so it can be used to set up inter-domain trust account.

24 years agomodified domain_client_validate to take trust account name / type. this
Luke Leighton [Sat, 20 Nov 1999 20:54:29 +0000 (20:54 +0000)]
modified domain_client_validate to take trust account name / type.  this
is to pass DOMAIN_NAME$ and SEC_CHAN_DOMAIN instead of WKSTA_NAME$ and
SEC_CHAN_WKSTA.

modified check_domain_security to determine if domain name is own domain,
and to use wksta trust account if so, otherwise check "trusting domains"
parameter and use inter-domain trust account if so, otherwise return
False.

24 years agodoing a code reshuffle. want to add code to establish trust relationships.
Luke Leighton [Sat, 20 Nov 1999 19:43:37 +0000 (19:43 +0000)]
doing a code reshuffle.  want to add code to establish trust relationships.

24 years agodynamic memory allocation i added a month ago: forgot to ZERO_STRUCT()
Luke Leighton [Sat, 20 Nov 1999 18:17:29 +0000 (18:17 +0000)]
dynamic memory allocation i added a month ago: forgot to ZERO_STRUCT()
some of the server-side stuff.  Realloc() was being used, so it
Realloc()d some random area of memory.  oops.dynamic memory allocation i added a month ago: forgot to ZERO_STRUCT()
some of the server-side stuff.  Realloc() was being used, so it
Realloc()d some random area of memory.  oops.dynamic memory allocation i added a month ago: forgot to ZERO_STRUCT()
some of the server-side stuff.  Realloc() was being used, so it
Realloc()d some random area of memory.  oops.

24 years agoadding bits about SAM database security, and what the SAM commands are
Luke Leighton [Sat, 20 Nov 1999 17:57:28 +0000 (17:57 +0000)]
adding bits about SAM database security, and what the SAM commands are
actually for.

24 years agoexplicit reference to tell people that rpcclient doesn't work with
Luke Leighton [Sat, 20 Nov 1999 17:41:35 +0000 (17:41 +0000)]
explicit reference to tell people that rpcclient doesn't work with
Windows 95.  i can just imagine some people saying "it dunna wurk on
my box at home", and me having to reply, "i dunna care".

24 years agoyodl update
Luke Leighton [Sat, 20 Nov 1999 17:35:54 +0000 (17:35 +0000)]
yodl update

24 years agooops.
Luke Leighton [Sat, 20 Nov 1999 17:00:33 +0000 (17:00 +0000)]
oops.

24 years agoadding some command descriptions behind the rpcclient commands.
Luke Leighton [Sat, 20 Nov 1999 16:57:38 +0000 (16:57 +0000)]
adding some command descriptions behind the rpcclient commands.

24 years agoyodl update - rpcclient
Luke Leighton [Fri, 19 Nov 1999 23:26:42 +0000 (23:26 +0000)]
yodl update - rpcclient

24 years agoadded an rpcclient man page. wow!
Luke Leighton [Fri, 19 Nov 1999 23:18:00 +0000 (23:18 +0000)]
added an rpcclient man page.  wow!

24 years agont5rc2 falling over because the LsaQueryInfoPolicy() response _must_
Luke Leighton [Fri, 19 Nov 1999 02:05:19 +0000 (02:05 +0000)]
nt5rc2 falling over because the LsaQueryInfoPolicy() response _must_
have the string max length = string length + 1.

if not, then it gets its knickers in a twist over whether the string
is NULL-terminated or not.

four days.

four days i spent on this one.

24 years agoThe First Necessary UNICODE String Support.
Luke Leighton [Fri, 19 Nov 1999 01:37:16 +0000 (01:37 +0000)]
The First Necessary UNICODE String Support.

the random workstation trust account password is TOTAL garbage.  i mean,
complete garbage.  it's nowhere CLOSE to being a UNICODE string.  therefore
we can't just take every second character.

created nt_owf_genW() which creates NT#(password) instead of NT#(Unicode(pw)).
followed through to the password setting in srv_samr.c

24 years ago- surprise! the number of UNICODE strings that didn't have alignment
Luke Leighton [Fri, 19 Nov 1999 01:24:41 +0000 (01:24 +0000)]
- surprise!  the number of UNICODE strings that didn't have alignment
  after them is incredible.  how did we get away with this for so long?

24 years ago- bug in nmbd registering DOMAIN_NAME<1c> to WINS server; recursion
Luke Leighton [Fri, 19 Nov 1999 01:01:07 +0000 (01:01 +0000)]
- bug in nmbd registering DOMAIN_NAME<1c> to WINS server; recursion
  desired flag MUST be set in any NBT UDP packets sent to a WINS
  server, else they will go to the WINS client side of the NT NetBIOS
  kernel instead, and will get trashed.

- added \PIPE\browser server-side code.

24 years agoadded \PIPE\browser plus experimental brsinfo command. you wouldn't
Luke Leighton [Fri, 19 Nov 1999 00:12:16 +0000 (00:12 +0000)]
added \PIPE\browser plus experimental brsinfo command.  you wouldn't
believe the XXXX that MIGHT be involved in getting nt5rc2 to join
a samba domain...

24 years agoresponses to UDP samquery go back to SERVER<00> not DOMAIN<1c>, the
Luke Leighton [Thu, 18 Nov 1999 23:15:45 +0000 (23:15 +0000)]
responses to UDP samquery go back to SERVER<00> not DOMAIN<1c>, the
request name.

modified createuser rpcclient command to examine name being added.  if it
ends in a $, assume that a workstation trust account is being added.

24 years agoset "key does not exist" response to reg_query_val() (win32 status code
Luke Leighton [Thu, 18 Nov 1999 22:03:47 +0000 (22:03 +0000)]
set "key does not exist" response to reg_query_val() (win32 status code
of 0x2).  [p.s. getting REALLY bored of this nt5rc2->samba domain stuff].

24 years agoadded samuserset2 rpcclient command to test ACB_XXX bit-setting on
Luke Leighton [Thu, 18 Nov 1999 19:29:08 +0000 (19:29 +0000)]
added samuserset2 rpcclient command to test ACB_XXX bit-setting on
samr opcode 0x25.  _yet_ another failed attempt to get nt5rc2 to join
a samba domain.  what _is_ it with this stuff, dammit?

24 years agoupdating reg_value_info() parsing code to take BUFFER2 instead of just
Luke Leighton [Thu, 18 Nov 1999 17:57:21 +0000 (17:57 +0000)]
updating reg_value_info() parsing code to take BUFFER2 instead of just
a char*.  now copes with multiple types.

24 years agoadded regqueryval command (experimental) to get reg_io_q_info() and
Luke Leighton [Thu, 18 Nov 1999 00:26:11 +0000 (00:26 +0000)]
added regqueryval command (experimental) to get reg_io_q_info() and
reg_io_r_info() working properly.  previously they weren't well
understood (well, they were the first of the registry functions i did,
back in december 97, ok??? :-)

set ntversion to 0x1 in SAMQUERY, so that we reply same as NT4 srv.

24 years agoattempting to get nt5 wksta to join domain.
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 \.

24 years agoadded two new params: "trusted domains" and "trusting domains".
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.

24 years agoadded another dummy key so that NT5 can check in the registry whether
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*!!!!

24 years agooops, mistake in parsing command-arguments. repeated calls to
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.

24 years agoShirish Kalele <kalele@veritas.com> noticed that NT workstations are
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.

24 years agoChanges to implement NET_AUTH based on NET_AUTH2, to get Win2000
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.

24 years agoadded server-side samr enum domains. fixed some parsing issues, server-side.
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.

24 years agoadded rpcclient "enumdomains" command. enumerates names of domains
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!!!!!

24 years ago- added DCE/RPC "fault" PDU support.
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.

24 years agosplit array-handling functions into separate module.
Luke Leighton [Fri, 12 Nov 1999 15:37:05 +0000 (15:37 +0000)]
split array-handling functions into separate module.

24 years agodebugging rpcclient spoolenum and spooljobs commands. oh, did i forget
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.

24 years agoriccardo sibilia spotted line 1884 has uint32 group_rid[0] not group_rid[1]
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!

24 years agopreparation for doing a spoolss enum jobs command. had to rewrite
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.

24 years agoconst feeding frenzy
Luke Leighton [Mon, 8 Nov 1999 20:58:06 +0000 (20:58 +0000)]
const feeding frenzy

24 years agoconst feeding frenzy
Luke Leighton [Mon, 8 Nov 1999 19:32:05 +0000 (19:32 +0000)]
const feeding frenzy

24 years agoFixed typo in automatic printer install share name.
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.

24 years agohorrible code to do SMBwriteX / SMBreadX for large MSRPC reads. ARGH!
Luke Leighton [Sat, 6 Nov 1999 22:45:31 +0000 (22:45 +0000)]
horrible code to do SMBwriteX / SMBreadX for large MSRPC reads.  ARGH!

24 years agomissed mem_grow_data call
Luke Leighton [Sat, 6 Nov 1999 21:25:52 +0000 (21:25 +0000)]
missed mem_grow_data call

24 years agoadded command-completion printer enum code.
Luke Leighton [Sat, 6 Nov 1999 21:08:35 +0000 (21:08 +0000)]
added command-completion printer enum code.

24 years agofixed string function for reading in printer_info_N.
Luke Leighton [Sat, 6 Nov 1999 20:36:07 +0000 (20:36 +0000)]
fixed string function for reading in printer_info_N.

24 years agoadded rpcclient spoolenum command. enumerates printers.
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.

24 years agospoolss openprinterex / closeprinter client-code.
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.

24 years agoexperimental spoolss rpcclient commands
Luke Leighton [Fri, 5 Nov 1999 18:40:38 +0000 (18:40 +0000)]
experimental spoolss rpcclient commands

24 years agoThis is an experimental program to shutdown a group of NTws in a
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

24 years agorpcclient example scripts / programs.
Luke Leighton [Fri, 5 Nov 1999 17:45:29 +0000 (17:45 +0000)]
rpcclient example scripts / programs.

24 years agosamuserset <username> -p password. YESSSSS :)
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).

24 years agoadding experimental set user password command to rpcclient, it returns
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.  ????

24 years agocreated msrpc_srv_enum_tprt() function by massaging cmd_srv_enum_tprt().
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().

24 years agodynamic mem allocation in net_srv_transport_enum() parsing.
Luke Leighton [Wed, 3 Nov 1999 21:51:29 +0000 (21:51 +0000)]
dynamic mem allocation in net_srv_transport_enum() parsing.

24 years agohad to move unistr2_dup(), unistr2_free() and unistr2_copy() into
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.

24 years agothree types of array-creation / array-deletion functions:
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 :-)

24 years agoadded samalias <aliasname> rpcclient command (shows info on alias)
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).

24 years agofree up memory allocated by enum dom groups / aliases
Luke Leighton [Tue, 2 Nov 1999 23:32:16 +0000 (23:32 +0000)]
free up memory allocated by enum dom groups / aliases

24 years agodynamic mem allocation in enum dom groups and enum dom 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

24 years agoyet another attempt to get lsaquerysecret working.
Luke Leighton [Tue, 2 Nov 1999 23:29:44 +0000 (23:29 +0000)]
yet another attempt to get lsaquerysecret working.

24 years agoconst char* issues
Luke Leighton [Mon, 1 Nov 1999 23:16:07 +0000 (23:16 +0000)]
const char* issues

24 years agoadded lsaenumdomains command.
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.

24 years agorewrote rpcclient enumaliases command.
Luke Leighton [Mon, 1 Nov 1999 21:09:24 +0000 (21:09 +0000)]
rewrote rpcclient enumaliases command.

24 years agoadded rpcclient svcstop <service name> command. gnu readline
Luke Leighton [Mon, 1 Nov 1999 17:52:11 +0000 (17:52 +0000)]
added rpcclient svcstop <service name> command.  gnu readline
command-completion works.

24 years agoFixed typo which was preventing the omission of seconds in the 'at' command.
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!

24 years agoadded yet another rpcclient command: svcstart <service name> [arg0] [arg1] ...
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...

24 years agocommand-line completion for new svcinfo command
Luke Leighton [Sun, 31 Oct 1999 04:19:58 +0000 (04:19 +0000)]
command-line completion for new svcinfo command

24 years agoadded svcinfo <service name> command.
Luke Leighton [Sun, 31 Oct 1999 04:11:17 +0000 (04:11 +0000)]
added svcinfo <service name> command.

24 years agoconnection info level renamed to transport info level
Luke Leighton [Sat, 30 Oct 1999 22:35:44 +0000 (22:35 +0000)]
connection info level renamed to transport info level

24 years agoNetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added.
Luke Leighton [Sat, 30 Oct 1999 22:34:38 +0000 (22:34 +0000)]
NetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added.

24 years agogeneral, drastic improvements to rpcclient.
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])

24 years agoUpdating build specs for TurboLinux 6.0 and later
John Terpstra [Sat, 30 Oct 1999 02:33:12 +0000 (02:33 +0000)]
Updating build specs for TurboLinux 6.0 and later

24 years agomessing with command-line completion. it sort-of works to be able
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.

24 years agoadded gnu readline command-line completion to the regenum command.
Luke Leighton [Fri, 29 Oct 1999 21:31:19 +0000 (21:31 +0000)]
added gnu readline command-line completion to the regenum command.

24 years agorpcclient regenum key client code rewritten to use higher order functions.
Luke Leighton [Fri, 29 Oct 1999 20:24:18 +0000 (20:24 +0000)]
rpcclient regenum key client code rewritten to use higher order functions.

24 years agorewrite rpcclient sam enum user code 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.

24 years agousing #defines for function prototypes
Luke Leighton [Fri, 29 Oct 1999 18:57:22 +0000 (18:57 +0000)]
using #defines for function prototypes

24 years agomore reshuffling of enum groups code. more higher order functions.
Luke Leighton [Fri, 29 Oct 1999 17:37:27 +0000 (17:37 +0000)]
more reshuffling of enum groups code.  more higher order functions.

24 years agoadded HKEY_CLASSES_ROOT MSRPC open call. reg_open_hkcr etc. supported
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.

24 years agousing higher-order-function in enum groups as a test. makes it really
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".

24 years agocli_nt_setup_creds() returns uint32 NT status code not a BOOL.
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()).