sfrench/samba-autobuild/.git
23 years agoChanged the sec desc access checks to match the spec. Needs testing.
Jeremy Allison [Tue, 8 Aug 2000 19:34:34 +0000 (19:34 +0000)]
Changed the sec desc access checks to match the spec. Needs testing.
Jeremy.

23 years agomake proto
Gerald Carter [Tue, 8 Aug 2000 07:23:20 +0000 (07:23 +0000)]
make proto

23 years agocleanup in init_unistr2_from_unistr()
Gerald Carter [Tue, 8 Aug 2000 06:59:35 +0000 (06:59 +0000)]
cleanup in init_unistr2_from_unistr()

--jerry

23 years agoAll changes related to rpcclient...
Gerald Carter [Tue, 8 Aug 2000 06:57:48 +0000 (06:57 +0000)]
All changes related to rpcclient...

- cleaned up some code
- Fixed a few memory leaks of my own making
- Add AddPrinterDriver(); I'm missing some of the semantics
  here as the call is done correctly, but I'm not getting all
  the information right in the DRIVER_INFO_3 struct I think.
  Will work on it tomorrow some more...

--jerry

23 years agoit is not my day it seems. :-(
Gerald Carter [Sat, 5 Aug 2000 19:18:25 +0000 (19:18 +0000)]
it is not my day it seems.  :-(
Fixed missing )

j-

23 years agoremoved the for() loop to copy the buffer in init_unistr2_from_unistr()
Gerald Carter [Sat, 5 Aug 2000 19:03:00 +0000 (19:03 +0000)]
removed the for() loop to copy the buffer in init_unistr2_from_unistr()
Replaced with a memcpy()

Forgot to commit this a few moments ago

j-

23 years agoFixed bug in init_unistr2_from_unistr() found by Elrond.
Gerald Carter [Sat, 5 Aug 2000 18:58:45 +0000 (18:58 +0000)]
Fixed bug in init_unistr2_from_unistr() found by Elrond.
Thanks :-)

j-

23 years agoAdding build file.
John Terpstra [Fri, 4 Aug 2000 21:03:10 +0000 (21:03 +0000)]
Adding build file.

23 years agoAdding build system files for Caldera OpenLinux.
John Terpstra [Fri, 4 Aug 2000 20:53:28 +0000 (20:53 +0000)]
Adding build system files for Caldera OpenLinux.

23 years agomake proto
Gerald Carter [Fri, 4 Aug 2000 20:47:06 +0000 (20:47 +0000)]
make proto

23 years agospoolss_addprinterex() was adding the printer and returning the
Gerald Carter [Fri, 4 Aug 2000 20:32:34 +0000 (20:32 +0000)]
spoolss_addprinterex() was adding the printer and returning the
correct handle, but was deleting the connection to the server.
Doh!!

--jerry

23 years agoFixed up se_access_check() to use the token list from the user struct
Jeremy Allison [Fri, 4 Aug 2000 19:56:58 +0000 (19:56 +0000)]
Fixed up se_access_check() to use the token list from the user struct
as the SID list. Now to go through and tidy up the algorithm.
Jeremy.

23 years agoAdded my course notes. Had asked Jeremy some weeks ago.
Volker Lendecke [Fri, 4 Aug 2000 16:08:04 +0000 (16:08 +0000)]
Added my course notes. Had asked Jeremy some weeks ago.
It's german language, feel free to remove it again.

Volker

23 years agomake proto
Gerald Carter [Fri, 4 Aug 2000 13:30:52 +0000 (13:30 +0000)]
make proto

23 years agoclunky support for calling AddPrinterEx(). The code currently reports
Gerald Carter [Fri, 4 Aug 2000 12:46:36 +0000 (12:46 +0000)]
clunky support for calling AddPrinterEx().  The code currently reports
that the call failed, but the printer shows up on the remote NT client.
(note this is the client side call).  I've botched the return value
somewhere and will fix that today.

jerry

23 years agoAfter talking with Jeremy and JF (and staring at packet traces between
Gerald Carter [Fri, 4 Aug 2000 12:42:19 +0000 (12:42 +0000)]
After talking with Jeremy and JF (and staring at packet traces between
NT <-> NT), I've come to realize that UNISTR2 strings should be NULL
terminated.

jerry

23 years agoIn cli_error() return ENOENT when an ERROR_INVALID_NAME is received instead
Tim Potter [Fri, 4 Aug 2000 06:13:05 +0000 (06:13 +0000)]
In cli_error() return ENOENT when an ERROR_INVALID_NAME is received instead
of the generic EINVAL.

23 years agoFixed up the user/group contexts when using authenticated pipes.
Jeremy Allison [Fri, 4 Aug 2000 00:59:09 +0000 (00:59 +0000)]
Fixed up the user/group contexts when using authenticated pipes.
Added a become_root()/unbecome_root() (push/pop security context)
around the initgroups() call to ensure it would succeed. Hmmm - I
wonder if this call being done as non-root might explain any "group access"
bugs we've had in the past....
Jeremy.

23 years agoAdded an NT_USER_TOKEN structure that is copied/passed around associated
Jeremy Allison [Thu, 3 Aug 2000 22:38:43 +0000 (22:38 +0000)]
Added an NT_USER_TOKEN structure that is copied/passed around associated
with the current user. This will allow se_access_check() to quickly do
a SD check without having to translate uid/gid's to SIDs.
Still needs work on pipe calls.
Jeremy.

23 years agoMuch though I hate to admit it - JF was completely correct. I cannot
Jeremy Allison [Wed, 2 Aug 2000 18:49:36 +0000 (18:49 +0000)]
Much though I hate to admit it - JF was completely correct. I cannot
now reproduce the bug I had with adding a printer driver, and PrintMig.exe
crashes if I use my SD code but works with his.
I stand completely corrected :-). - So I'm reverting to his code as it works :-).
Jeremy.

23 years agoStarted to canonicalize our handling of uid -> sid code in order to
Jeremy Allison [Wed, 2 Aug 2000 02:11:55 +0000 (02:11 +0000)]
Started to canonicalize our handling of uid -> sid code in order to
get ready and fix se_access_check().
Added cannonical lookup_name(), lookup_sid(), uid_to_sid(), gid_to_sid()
functions that look via winbind first the fall back on local lookup.

All Samba should use these rather than trying to call winbindd code
directly.

Added NT_USER_TOKEN struct in user_struct, contains list of NT sids
associated with this user.

se_access_check() should use this (cached) value rather than attempting
to do the same thing itself when given a uid/gid pair.

More work needs to be done to preserve these things accross security
context changes (especially with the tricky pipe problem) but I'm
beginning to see how this will be done..... probably by registering
a new vuid for an authenticated RPC pipe and not treating the
pipe calls specially.

More thoughts needed - but we're almost there...

Jeremy.

23 years agoTidyup removing many of the 0xC0000000 | NT_STATUS_XXX stuff (only need NT_STATUS_XXX).
Jeremy Allison [Tue, 1 Aug 2000 18:32:34 +0000 (18:32 +0000)]
Tidyup removing many of the 0xC0000000 | NT_STATUS_XXX stuff (only need NT_STATUS_XXX).
Removed IS_BITS_xxx macros as they were just reproducing "C" syntax in a more
obscure way.
Jeremy.

23 years agoAdded print job substitutions for %{printername}, %{sharename} and %{portname}
Jeremy Allison [Tue, 1 Aug 2000 00:41:19 +0000 (00:41 +0000)]
Added print job substitutions for %{printername}, %{sharename} and %{portname}
from the NT printer tdb.
Also added checks for time restrictions before allowing a job to print.
Jeremy.

23 years agoSave & restore the port name correctly.
Jeremy Allison [Mon, 31 Jul 2000 21:41:03 +0000 (21:41 +0000)]
Save & restore the port name correctly.
Jeremy.

23 years agoAdded John Reilly's enumports/addprinter/delprinter scripting code plus the
Jeremy Allison [Mon, 31 Jul 2000 20:41:51 +0000 (20:41 +0000)]
Added John Reilly's enumports/addprinter/delprinter scripting code plus the
fix for the Win9x printer drivers.
Changed command names to add "command" string on the end for some consistancy
with the other scripting commands.
Added '%P' option to tdbpack/unpack to store long comment string.
Made port name be "Samba Printer Port" if no enum port script given.
Fixed prs_uint32_pre code to cope with null args.
Jeremy.

23 years agomake proto
Gerald Carter [Mon, 31 Jul 2000 15:17:29 +0000 (15:17 +0000)]
make proto

23 years agoMore work on rpcclient...
Gerald Carter [Mon, 31 Jul 2000 14:56:01 +0000 (14:56 +0000)]
More work on rpcclient...

  * Fixed to work with Jeremy's recent changes re: dunamic
    memory allocation when unmarshalling unistr[2]
  * included EnumPorts level 1
  * more work on AddPrinterEx

--jerry

23 years agoMore work on rpcclient...
Gerald Carter [Mon, 31 Jul 2000 14:50:53 +0000 (14:50 +0000)]
More work on rpcclient...

  * Fixed to work with Jeremy's recent changes re: dunamic
    memory allocation when unmarshalling unistr[2]
  * included EnumPorts level 1
  * more work on AddPrinterEx

--jerry

23 years agoAdding pages oopsed.
John Terpstra [Sun, 30 Jul 2000 07:40:18 +0000 (07:40 +0000)]
Adding pages oopsed.

23 years agoAdding Using_Samba book back to Samba-pre3.
John Terpstra [Sun, 30 Jul 2000 07:38:43 +0000 (07:38 +0000)]
Adding Using_Samba book back to Samba-pre3.

23 years agoAdding missing man pages.
John Terpstra [Sun, 30 Jul 2000 06:52:16 +0000 (06:52 +0000)]
Adding missing man pages.

23 years agoAdding missing smbsh.1 man page source.
John Terpstra [Sun, 30 Jul 2000 06:50:39 +0000 (06:50 +0000)]
Adding missing smbsh.1 man page source.

23 years agoUpdating for Samba-3.
John Terpstra [Sun, 30 Jul 2000 06:37:46 +0000 (06:37 +0000)]
Updating for Samba-3.

23 years agoAdding files provided by Klaus Singvogel of Caldera
John Terpstra [Sun, 30 Jul 2000 06:33:30 +0000 (06:33 +0000)]
Adding files provided by Klaus Singvogel of Caldera

23 years agoFixed read overrun in init_string2()
Tim Potter [Fri, 28 Jul 2000 06:27:32 +0000 (06:27 +0000)]
Fixed read overrun in init_string2()

23 years agoremove warnings
Jean-François Micouleau [Thu, 27 Jul 2000 08:00:25 +0000 (08:00 +0000)]
remove warnings

J.F.

23 years agofix the devmode.orientation being set to 0.
Jean-François Micouleau [Thu, 27 Jul 2000 07:59:39 +0000 (07:59 +0000)]
fix the devmode.orientation being set to 0.

that bug was *subtle* :-(

J.F.

23 years agoOk - this is a *BIG* change - but it fixes the problems with static strings
Jeremy Allison [Thu, 27 Jul 2000 00:47:19 +0000 (00:47 +0000)]
Ok - this is a *BIG* change - but it fixes the problems with static strings
in the RPC code. This change was prompted by trying to save a long (>256)
character comment in the printer properties page.

The new system associates a TALLOC_CTX with the pipe struct, and frees
the pool on return of a complete PDU.

A global TALLOC_CTX is used for the odd buffer allocated in the BUFFERxx
code, and is freed in the main loop.

This code works with insure, and seems to be free of memory leaks and
crashes (so far) but there are probably the occasional problem with
code that uses UNISTRxx structs on the stack and expects them to contain
storage without doing a init_unistrXX().

This means that rpcclient will probably be horribly broken.
A TALLOC_CTX also needed associating with the struct cli_state also,
to make the prs_xx code there work.

The main interface change is the addition of a TALLOC_CTX to the
prs_init calls - used for dynamic allocation in the prs_XXX calls.

Now this is in place it should make dynamic allocation of all RPC
memory on unmarshall *much* easier to fix.

Jeremy.

23 years agoif no comment in TDB, use comment from print share.
Jean-François Micouleau [Wed, 26 Jul 2000 10:31:05 +0000 (10:31 +0000)]
if no comment in TDB, use comment from print share.

J.F.

23 years agoFound out that we are crashing spoolss in enumprinterdata.
Jean-François Micouleau [Wed, 26 Jul 2000 09:40:49 +0000 (09:40 +0000)]
Found out that we are crashing spoolss in enumprinterdata.

So fixed enumprinterdatas in rpcclient to debug the server code,
and found that the parsing code was missing 2 prs_align().

We are not crashing NT anymore. :-)

        J.F.

23 years agoFixed memory leaks in root and non-root password changing.
Tim Potter [Wed, 26 Jul 2000 03:55:17 +0000 (03:55 +0000)]
Fixed memory leaks in root and non-root password changing.

23 years agoFixed memory leaks in _spoolss_addprinterdriver()
Tim Potter [Wed, 26 Jul 2000 03:38:30 +0000 (03:38 +0000)]
Fixed memory leaks in _spoolss_addprinterdriver()

23 years agoFixed memory leak in modify_trust_password()
Tim Potter [Wed, 26 Jul 2000 03:04:01 +0000 (03:04 +0000)]
Fixed memory leak in modify_trust_password()

23 years agoFixed up error checking and move printer file code. Fixed a memory leak.
Jeremy Allison [Tue, 25 Jul 2000 22:35:57 +0000 (22:35 +0000)]
Fixed up error checking and move printer file code. Fixed a memory leak.
Jeremy.

23 years agomake proto
Gerald Carter [Tue, 25 Jul 2000 21:14:49 +0000 (21:14 +0000)]
make proto

--jerry

23 years agosome initial code for AddPrinterEx() project. Most is ifdef'd out
Gerald Carter [Tue, 25 Jul 2000 21:07:46 +0000 (21:07 +0000)]
some initial code for AddPrinterEx() project.  Most is ifdef'd out
'cause it's not all written.

-jerry

23 years agoif the sids are not the same pointer and either of the sids are NULL
Andrew Tridgell [Tue, 25 Jul 2000 20:26:50 +0000 (20:26 +0000)]
if the sids are not the same pointer and either of the sids are NULL
then the two sids are not equal

23 years agoAdded some error checking and returns to the new 'move' code.
Jeremy Allison [Tue, 25 Jul 2000 17:09:29 +0000 (17:09 +0000)]
Added some error checking and returns to the new 'move' code.
Jeremy.

23 years agoA rather big change set ! (listed in no particular order)
Jean-François Micouleau [Tue, 25 Jul 2000 13:15:16 +0000 (13:15 +0000)]
A rather big change set ! (listed in no particular order)

- changed the default forms flag to 2
- all short architecture name are uppercased
- get_short_archi() is now case unsensitive
- the drivers TDB is indexed by archi/version/name
- implemented code to move drivers from the upload area to the download
area. Someone else need to look at that code.
- don't return anymore a default driver if it doesn't exist in the TDB.
Instead return an error.
- cleaned prs_unistr.
- #ifdef out jeremy's new SD parsing in printer_info_2
- removed the unused MANGLE_CODE

- #ifdef out the security checking in update_printer() as it doesn't work
for me.

Zap your ntdrivers.tdb, it won't work anymore.

J.F.

23 years agoFix for mounting a printer as a share. Not that there's anything
Tim Potter [Tue, 25 Jul 2000 06:10:59 +0000 (06:10 +0000)]
Fix for mounting a printer as a share.  Not that there's anything
specifically wrong with this, but Samba is fooled by the client into
thinking the printer is a file share.  Files copied to the share gather
dust in the spool directory and aren't printed.

This patch has the effect of not allowing printers to be mounted as file
shares.  Not sure whether this is the correct solution or not.
{Jeremy,JF,Tridge} please check!

23 years agoTidy up code to add printer. Always index in tdb by sharename. This
Jeremy Allison [Tue, 25 Jul 2000 01:50:53 +0000 (01:50 +0000)]
Tidy up code to add printer. Always index in tdb by sharename. This
is beginning to come together...
Jeremy.

23 years agoRun main server loop with sys_select() instead of sys_select_intr(). The
Tim Potter [Mon, 24 Jul 2000 06:20:13 +0000 (06:20 +0000)]
Run main server loop with sys_select() instead of sys_select_intr().  The
main daemon was not catching sighup and reloading the service file.

23 years agoTest for reloading smb.conf after SIGHUP. Needs to be run as root.
Tim Potter [Mon, 24 Jul 2000 06:18:21 +0000 (06:18 +0000)]
Test for reloading smb.conf after SIGHUP.  Needs to be run as root.

23 years agoFixed open handle code in printers - 3 functions were always being done
Jeremy Allison [Sat, 22 Jul 2000 00:48:29 +0000 (00:48 +0000)]
Fixed open handle code in printers - 3 functions were always being done
in order - moved them into open_printer_hnd().
Added saving of comment field.
Jeremy.

23 years agomake proto
Gerald Carter [Fri, 21 Jul 2000 20:10:52 +0000 (20:10 +0000)]
make proto

23 years ago* Added EnumPorts()
Gerald Carter [Fri, 21 Jul 2000 20:03:18 +0000 (20:03 +0000)]
* Added EnumPorts()
* Fixed an off-by-one bug noticed by JF in GetPrinterDriverDirectory()

jerry

23 years agoAdded EnumPorts() and fixed up some problems
Gerald Carter [Fri, 21 Jul 2000 20:01:20 +0000 (20:01 +0000)]
Added EnumPorts() and fixed up some problems
with the other spoolss client calls.

Also cleaned up output for 'help' command.

jerry

23 years agoAdded EnumPorts() and fixed up some problems
Gerald Carter [Fri, 21 Jul 2000 19:59:51 +0000 (19:59 +0000)]
Added EnumPorts() and fixed up some problems
with the other spoolss client calls.

Also cleaned up output for 'help' command.

jerry

23 years agoAdded functions for enumerating ports on remote print server.
Gerald Carter [Fri, 21 Jul 2000 19:58:24 +0000 (19:58 +0000)]
Added functions for enumerating ports on remote print server.

Tim,  You should also look at new_smb_io_printer_info_2()
and see if the change from NULL to &i regarding the secdesc is ok.

jerry

23 years agomake proto
Gerald Carter [Thu, 20 Jul 2000 13:52:02 +0000 (13:52 +0000)]
make proto

23 years agoreadded util_list.c (just to the RPCCLIENT_OBJ). I need to split
Gerald Carter [Thu, 20 Jul 2000 13:39:51 +0000 (13:39 +0000)]
readded util_list.c (just to the RPCCLIENT_OBJ).  I need to split
the file up i think.  Later.

--jerry

23 years agoFixed unitilized secdesc pointer which was causing spoolgetprinter
Gerald Carter [Thu, 20 Jul 2000 13:38:48 +0000 (13:38 +0000)]
Fixed unitilized secdesc pointer which was causing spoolgetprinter
rpcclient command to fail on shared printers.

jerry

23 years agoModified the patch to look in the tdb *first* - thus allowing legacy text
Jeremy Allison [Wed, 19 Jul 2000 23:47:10 +0000 (23:47 +0000)]
Modified the patch to look in the tdb *first* - thus allowing legacy text
filed to be ignored when an upload is done.
Modified to code to goto err on problems, simplifies it.
Jeremy.

23 years agoCode from John Reilly <jreilly@hp.com> to add tdb lookups into the Win95
Jeremy Allison [Wed, 19 Jul 2000 20:11:11 +0000 (20:11 +0000)]
Code from John Reilly <jreilly@hp.com> to add tdb lookups into the Win95
printer driver download if looking for the default driver files fail.
Jeremy.

23 years agoInstead of handing back a string (which might be a DNS name or an IP
Christopher R. Hertel [Wed, 19 Jul 2000 05:32:43 +0000 (05:32 +0000)]
Instead of handing back a string (which might be a DNS name or an IP
string), the wins_srv module now hands back a struct in_addr when it's
called.  It caches the IP address once it has been looked up.  The IP
is cleared (and must be looked up again) if the 'wins server' parameter
is reread, or if the node is marked 'dead'.  A dead node will not be
re-tried for 10 minutes (per a #define in wins_srv.c).

As it was, the code was reading the WINS server name or IP directly from
lp_wins_server.  That's okay, except that if the value was expressed as
a name, then a DNS lookup would be done every time the client wanted to
talk to the server.

I still need to work out the implications of failover regarding the
'unicast subnet' list.

Chris -)-----

23 years agoFirst cut toward adding WINS server failover.
Christopher R. Hertel [Wed, 19 Jul 2000 01:21:30 +0000 (01:21 +0000)]
First cut toward adding WINS server failover.

*Note: failover doesn't actually work yet!*  It's just that the code I'm
adding provides all of the pieces necessary.

I do have one big question.  Something that I'll have to ask Jeremy, I'm
thinkin'.  In nmbd/nmbd_subnetdb.c the IP of the WINS server is used to
set up the Unicast subnet.

...so what happens if the WINS server changes?

My guess is either:
  a) nothing.
  b) I'd have to change the unicast subnet entry whenever the WINS server
     changes.

Urq.

BTW, the lp_wins_server() function no longer returns the WINS server name
or IP.  It returns the list of WINS servers entered in smb.conf.  To get
the currently 'live' WINS server, use the wins_srv() function.

Fun, eh?

Chris -)-----

23 years agoRemoved the sanity check on the WINS SERVER parameter because it simply
Christopher R. Hertel [Tue, 18 Jul 2000 20:15:15 +0000 (20:15 +0000)]
Removed the sanity check on the WINS SERVER parameter because it simply
checked to see that only one server was listed.  As I am working on an
enhancement that allows multiple servers to be listed...this was a bit
contrary.  ;)

23 years agorpc_parse/parse_prs.c: Removed extraneous ()'s.
Jeremy Allison [Tue, 18 Jul 2000 19:25:32 +0000 (19:25 +0000)]
rpc_parse/parse_prs.c: Removed extraneous ()'s.
rpc_parse/parse_spoolss.c: Fixed the security descriptor marshalling in a INFO_2 struct.
for some reason SD's should be done inline after the info2, not
as the last buffer marshall.
rpc_server/srv_spoolss_nt.c: Removed extraneous ()'s.
Jeremy.

23 years agoremove util_list from LIB_OBJS since it broke smbd build
Gerald Carter [Tue, 18 Jul 2000 19:05:50 +0000 (19:05 +0000)]
remove util_list from LIB_OBJS since it broke smbd build
(undefined references in link).  This is a quick fix.
I'll resolve things later.

Sorry everyone.

jerry

23 years agoAdded lib/util_list.[c|o] to Makefile.in
Gerald Carter [Tue, 18 Jul 2000 05:19:29 +0000 (05:19 +0000)]
Added lib/util_list.[c|o] to Makefile.in

--jerry

23 years agoFixed some more client SPOOLSS functions. The following
Gerald Carter [Tue, 18 Jul 2000 05:16:30 +0000 (05:16 +0000)]
Fixed some more client SPOOLSS functions.  The following
functions work now:

  - spoolenum
  - spoolopen
  - spoolgetprinter
  - spoolgetprinterdriver

Items todo:

  - track down memory bug with spoolenumdata
  - fix spoolgetprinterdriverdir
  - fix spoolgetdata
  - fix display_job_info_ctr in spooljobs

All part of the ongoing rpcclient work.

Also included a new generic list ADT.  Cleaner and simplier
than the stuff in util_array.c i think (but then that's why I wrote it).

--jerry

23 years agofixed a bug (my own) in create_ntc_from_cli_state()
Gerald Carter [Tue, 18 Jul 2000 05:13:44 +0000 (05:13 +0000)]
fixed a bug (my own) in create_ntc_from_cli_state()

--jerry

23 years agoI really didn't like the way generic arrays (lists) were
Gerald Carter [Tue, 18 Jul 2000 05:12:49 +0000 (05:12 +0000)]
I really didn't like the way generic arrays (lists) were
implemented in util_array.c so I wrote a smaller (and simplier
package).

I would like to replace the use of util_array.c functions
in the rest of the source tree if no one objects.
This will be an interface change, but not really a difference
in the functionality provided.

--jerry

23 years agograb functions that return RPC_HND_NODE (declared
Gerald Carter [Tue, 18 Jul 2000 05:10:26 +0000 (05:10 +0000)]
grab functions that return RPC_HND_NODE (declared
in include/util_list.h)

-- jerry

23 years agoFixed some more client SPOOLSS functions. The following
Gerald Carter [Tue, 18 Jul 2000 05:07:28 +0000 (05:07 +0000)]
Fixed some more client SPOOLSS functions.  The following
functions work now:

  - spoolenum
  - spoolopen
  - spoolgetprinter
  - spoolgetprinterdriver

Items todo:

  - track down memory bug with spoolenumdata
  - fix spoolgetprinterdriverdir
  - fix spoolgetdata
  - fix display_job_info_ctr in spooljobs

All part of the rpcclient work.

Jeremy, this check includes emthods for associating
POLICY_HNDs and client states.  See the RpcHndList_...()
function calls (implemented in lib/util_list.c)

--jerry

23 years agoFixed some more SPOOLSS functions. The following
Gerald Carter [Tue, 18 Jul 2000 05:02:16 +0000 (05:02 +0000)]
Fixed some more SPOOLSS functions.  The following
functions work now:

  - spoolenum
  - spoolopen
  - spoolgetprinter
  - spoolgetprinterdriver

Items todo:

  - track down memory bug with spoolenumdata
  - fix spoolgetprinterdriverdir
  - fix spoolgetdata
  - fix display_job_info_ctr in spooljobs

--jerry

23 years agoMissing var.
Tim Potter [Mon, 17 Jul 2000 06:04:23 +0000 (06:04 +0000)]
Missing var.

23 years agoReverted changes from rpcclient merge - contains memory leak!
Tim Potter [Mon, 17 Jul 2000 05:40:48 +0000 (05:40 +0000)]
Reverted changes from rpcclient merge - contains memory leak!

23 years agoFree security descriptor after access check in update_printer_sec()
Tim Potter [Mon, 17 Jul 2000 05:38:26 +0000 (05:38 +0000)]
Free security descriptor after access check in update_printer_sec()

23 years agoInitialise current time to time(NULL) in add_a_printer_2()
Tim Potter [Mon, 17 Jul 2000 05:37:16 +0000 (05:37 +0000)]
Initialise current time to time(NULL) in add_a_printer_2()

Added get and free security old descriptor in nt_printing_setsec() after
access checking was moved up to rpc level.

23 years agomake proto
Tim Potter [Mon, 17 Jul 2000 03:13:06 +0000 (03:13 +0000)]
make proto

23 years agomake proto
Tim Potter [Mon, 17 Jul 2000 02:43:12 +0000 (02:43 +0000)]
make proto

23 years agoAllow job owner to delete own print job.
Tim Potter [Mon, 17 Jul 2000 02:42:25 +0000 (02:42 +0000)]
Allow job owner to delete own print job.

23 years agoMoved access check for nt_printing_setsec() up into rpc function.
Tim Potter [Mon, 17 Jul 2000 02:41:38 +0000 (02:41 +0000)]
Moved access check for nt_printing_setsec() up into rpc function.

Use sid + rid instead of lp_workgroup()/Administrator for printer owner sid
as per JF's advice.

Default printer owner is either the administrator of the pdc workgroup or
Everyone depending on whether winbindd is running.  Still the subject of
some debate...

Renamed se_access_check() parameters.

23 years agoRenamed arguments to se_access_check()
Tim Potter [Mon, 17 Jul 2000 02:38:43 +0000 (02:38 +0000)]
Renamed arguments to se_access_check()

23 years agoRenamed a parameter in init_request() function.
Tim Potter [Mon, 17 Jul 2000 02:37:11 +0000 (02:37 +0000)]
Renamed a parameter in init_request() function.

Initialise response structure correctly.

23 years agoAdded some debugs.
Tim Potter [Mon, 17 Jul 2000 02:36:19 +0000 (02:36 +0000)]
Added some debugs.

Changed interface to se_access_check to take a user struct instead of each
bit as a separate parameter.

23 years agoI committed this change to the cliffs archive a while back and have heard
Christopher R. Hertel [Sat, 15 Jul 2000 20:57:24 +0000 (20:57 +0000)]
I committed this change to the cliffs archive a while back and have heard
no complaints.  ;)

Basically, instead of ignoring single-line C-style comments in IDL source
files this change allows token.awk to ignore both single- and multi-line
C-style comments.

Chris -)-----

23 years agoLots of changes but no real progress in functionality.
Gerald Carter [Sat, 15 Jul 2000 08:37:17 +0000 (08:37 +0000)]
Lots of changes but no real progress in functionality.
more changes to remove the ncarpc_l_* stuff.

Fixed some cut and paste errors from TNG

There are very subtle bugs in this code.  I'll work on simplifying
them in round two or three.

--jerry

23 years agoreverted a some previous additions.
Gerald Carter [Sat, 15 Jul 2000 08:33:43 +0000 (08:33 +0000)]
reverted a some previous additions.
Removed msrpc_local struct

--jerry

23 years agoa few changes to Makefile.in to clean up dependencies for rpcclient
Gerald Carter [Fri, 14 Jul 2000 17:04:57 +0000 (17:04 +0000)]
a few changes to Makefile.in to clean up dependencies for rpcclient

--jerry

23 years agoMore functions merged from TNG for rpcclient. They don't all work
Gerald Carter [Fri, 14 Jul 2000 17:04:04 +0000 (17:04 +0000)]
More functions merged from TNG for rpcclient.  They don't all work
currently as I have to do something about the policy handle caching
issues.

--jerry

23 years agocleaned up access to prs_struct variables. Replaced all calls
Gerald Carter [Fri, 14 Jul 2000 17:01:49 +0000 (17:01 +0000)]
cleaned up access to prs_struct variables.  Replaced all calls

prs_free_data() => prs_mem_free
prs_realloc_data => prs_grow

--jerry

23 years agoremoved references to loopback RPC connections.
Gerald Carter [Fri, 14 Jul 2000 16:59:41 +0000 (16:59 +0000)]
removed references to loopback RPC connections.
added a few more kfunctions from TNG for rpcclient

--jerry

23 years agoremoved prs_data(), prs_free_data(), and prs_realloc_data()
Gerald Carter [Fri, 14 Jul 2000 16:58:03 +0000 (16:58 +0000)]
removed prs_data(), prs_free_data(), and prs_realloc_data()
as these were unneeded and replaced by the real functions
already in HEAD.

Added a few more functions to parse_spoolss.c to help with the
rpcclient merge from TNG.

23 years agoFixed a bug in cmd_interp.c where if user%pass was entered on
Gerald Carter [Fri, 14 Jul 2000 16:54:07 +0000 (16:54 +0000)]
Fixed a bug in cmd_interp.c where if user%pass was entered on
the command line, the password would still be cached in memory
in plain text for the lifetime of the rpcclient command line session.

removed loopback connection functions from msrpc-client.c since
we don't support that in the server code now anyways.  simplify,
simplify, ...

--jerry

23 years agomake proto
Gerald Carter [Fri, 14 Jul 2000 16:31:06 +0000 (16:31 +0000)]
make proto
and a few changes to ntdomain for rpcclient printing functions

--jerry

23 years agoadding more spoolss command into rpcclient. They don't all work
Gerald Carter [Fri, 14 Jul 2000 16:29:22 +0000 (16:29 +0000)]
adding more spoolss command into rpcclient.  They don't all work
currently.  More to come later.

--jerry

23 years agoDon't return winbind groups or users when responding to samr_enum_dom_users
Tim Potter [Thu, 13 Jul 2000 04:33:25 +0000 (04:33 +0000)]
Don't return winbind groups or users when responding to samr_enum_dom_users
and samr_enum_dom_aliases commands.  Unfortunately the algorithm for
determining winbind groups from normal groups is simply to check for the
presence of the lp_winbind_separator() character.  )-:

23 years agoUninitialised variables.
Tim Potter [Thu, 13 Jul 2000 01:21:21 +0000 (01:21 +0000)]
Uninitialised variables.