1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

1019 Commits

Author SHA1 Message Date
Gerald Carter
88b1f6810b merge from APP_HEAD for GetJob()
(This used to be commit 3524a4a348686ae5144a744696606123e4a66622)
2002-09-11 19:29:02 +00:00
Gerald Carter
c989eaf48d DelPrinterDrvEx() fix from APP_HEAD
(This used to be commit 7841753a03f7fdbd2f7f22e1b184dc1891118283)
2002-09-11 17:35:12 +00:00
Volker Lendecke
66f90f97bf Merge the cli_shutdown change from 2_2. All except one call to
attempt_netbios_... assumed that cli_shutdown was _not_ called on
error anyway...

Volker
(This used to be commit f0c741594f0dad2da16b1d5692dd56a48b4157f1)
2002-09-11 15:18:53 +00:00
Gerald Carter
f1be21f211 removed warning about shadowed globals
(This used to be commit 8021bbbd0c5fad6db45a4c862848ea667cad0b79)
2002-09-10 21:41:25 +00:00
Gerald Carter
5d390fc5c7 AbortPrinter() fix merged from APP_HEAD.
(This used to be commit 97ede49e1271fa00c6ffdf9e6e3c2330ea935461)
2002-09-10 21:37:53 +00:00
Gerald Carter
5793e15a27 change notify merge from APP_HEAD
(This used to be commit b5227f0a645fdf2358fcb880f22e4662efdfe8e3)
2002-09-10 02:38:15 +00:00
Jeremy Allison
4c471811a4 Actually, I think Jerrys patch was incorrect as it didn't ever
add the printing msg flag, only remove it. Also, we already
refcount the printer backchannel connection to add the connection
tdb flag just before after we register/deregister the notification
message handler.
Jerry please check !
Jeremy.
(This used to be commit c45364ae82e06364cbb11545d1262032e12a21b1)
2002-09-09 06:44:29 +00:00
Gerald Carter
2968f8a6be merge of printer change notify fix from APP_HEAD
(This used to be commit 6a53a9cb7c56927423dea125c65d66605fae566f)
2002-09-07 17:08:59 +00:00
Andrew Bartlett
789d51b42c This is the 'easy' parts of the trusted domains patch n+3 patch from
Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl>

It includes a conversion of make_user_info*() to NTSTATUS and some minor
changes to other files.

It also picks up on a nasty segfault that can occour in some security=domain
cases.

Andrew Bartlett
(This used to be commit d1e1fc3e4bf72717b3593685f0ea5750d676952a)
2002-09-06 13:37:11 +00:00
Jeremy Allison
4cf5238599 Revert the "reverse" change to rpc_server/srv_spoolss_nt.c, simply
add then entries to the end of the list in printing/notify.c using
DLIST_ADD_END.
Jeremy.
(This used to be commit 047d6a05fb60172a2607bb7d7d03dda5403c61fa)
2002-09-05 12:55:56 +00:00
Tim Potter
9f43ccb98e Delivery notify messages over the back channel in *reverse* order in
which they are sent in the message.  This is because a DLIST_ADD is
used by the message sender which results in the first (post!) message
being at the end of the list.  Notify messages must be delivered in
the order the events occur in otherwise the port monitor gets
confused.
(This used to be commit d41ff1f1a6cfad71ef35698d45e9fb97d9100898)
2002-09-05 06:49:08 +00:00
Tim Potter
481c0db0ac Roussed on Jeremy for not putting in enough debugs in the new print
notify stuff.  (-:
(This used to be commit 87c156704f5d8913cf7bf3134ec5ba6403d36cca)
2002-09-05 04:22:16 +00:00
Jeremy Allison
2658e4ee23 Added better error code on out of space. Removed total jobs check - not
applicable any more.
Jeremy.
(This used to be commit 8828e2ea3c668aab6cda1b4be9a7e4ce1c23ca81)
2002-09-04 23:40:49 +00:00
Andrew Bartlett
cc5088b5f4 Only cache the user list on the SAMR handle for a particular
acb_mask/all_machines flag combination.  The avoids a bug where we were listing
users in the 'trusting domains' dialog in usrmgr.

We might also need to invalidate the cache for some other SAMR actions.

Andrew Bartlett
(This used to be commit 65047aee7fefefaecded9772184a54c046ab1784)
2002-09-04 22:02:53 +00:00
Jeremy Allison
cbaa14857b Merge of (apparently working :-) new printing notify code.
Jeremy.
(This used to be commit 8595c6ce4d74539089b600b3b0ff858a04b793ff)
2002-09-04 21:59:38 +00:00
Gerald Carter
59f40f31ed DeletePrinterDriver[Ex]() fixes from APP_HEAD
(This used to be commit 04874134ed83847988bad5fcad3463395dc283fb)
2002-09-04 01:14:24 +00:00
Volker Lendecke
e0a8b7e0d0 usrmgr expects unicode as ProductType.
This looks a bit like a hack ;-)

Volker
(This used to be commit f673eac06ab4af97a4d28427f7444696402ae680)
2002-09-02 13:47:51 +00:00
Andrew Bartlett
724d1c3d2d Add a fix for 'query_disp_info level 2', which should return all machines in
the DC's SAM.  We were only returning workstations, not PDCs or BDCs.

Win2k's 'Computer Manager' tool uses this to list all computers in the domain
(as opposed to using NetBIOS).

Andrew Bartlett
(This used to be commit 004090edffef6cc04c286b9924b8c47ea3260ef2)
2002-08-30 23:56:37 +00:00
Gerald Carter
3cbe892276 fix up print portion of registry. Merge from APP_HEAD.
(This used to be commit ec37633548ed329c05b93499f75883d987b78f1e)
2002-08-30 14:48:33 +00:00
Gerald Carter
de3d0310e2 merge of phant0m key fix from APP_HEAD
(This used to be commit cb13d334a53f27713665570d85607d57eb407f9f)
2002-08-30 10:47:34 +00:00
Volker Lendecke
1f02551bb1 Removed some misleading comment.
Volker
(This used to be commit 70cf2f1e2f0187c546a0193824ab85a416c5236c)
2002-08-30 08:24:26 +00:00
Jelmer Vernooij
8e729a4d84 Move samr_make_sam_obj_sd to lib/util_seaccess.c. samtest now compiles and
links successfully!
(This used to be commit 0ea4bcb6b772a0d95d20f7c1a2a0c08a0ba9e466)
2002-08-29 16:38:43 +00:00
Herb Lewis
b294ce9986 add proto for forward reference
(This used to be commit 7573fd1746dfe5034deb51a6d205e15af6ff81de)
2002-08-28 14:19:40 +00:00
Jelmer Vernooij
2b2b0f7119 Put in intermediate version of new SAM system. It's not stable yet, code
might be ugly, etc - please don't blame me for anything but instead try to fix
the code :-). Compiling of the new sam system can be enabled with the
configure option --with-sam

Removing passdb/passgrp.c as it's unused
fix typo in utils/testparm.c
(This used to be commit 4b7de5ee236c043e6169f137992baf09a95c6f2c)
2002-08-28 04:54:43 +00:00
Gerald Carter
6dad13d801 merge from APP_HEAD
(This used to be commit ebe89453b63467c87263c24f4380544fef1124a6)
2002-08-26 16:57:35 +00:00
Gerald Carter
68d5ab9a65 merge from APP_HEAD
(This used to be commit 4689e7ea5e55e22e1e4293c91ba69fee53436143)
2002-08-26 16:43:29 +00:00
Gerald Carter
2bd75e4714 fix registry editor API for printing backend after I changed
the NT_PRINTER_PARAM to a REGISTRY_VALUE
(This used to be commit 8d510abe125e15a8d71c58a13d170dc3d6371368)
2002-08-22 21:16:11 +00:00
Tim Potter
752f2adec5 Fix compile warnings.
(This used to be commit e84f47a234d31e98b0dc28c51f3ec337458e48d1)
2002-08-22 17:43:27 +00:00
Gerald Carter
c9c404b26c get the access check in addform() correct this time.
Needed to modify OpenPrinter() to store the access granted to
on the print server handle as well.
(This used to be commit 08b3f9688c6c3c83ad8949e6346d8fab5e563df4)
2002-08-22 03:12:10 +00:00
Gerald Carter
85b7d9904e addform fix from SAMBA_2_2
(This used to be commit db286e66ec4788b40e279fd230b2013f311e44ec)
2002-08-21 01:47:29 +00:00
Gerald Carter
42045afda9 segfault fixes merged from APP_HEAD
(This used to be commit cd9ee27d89a5cd489efac2029c22797ec9c383ca)
2002-08-20 03:01:37 +00:00
Andrew Bartlett
8674440d81 Based orginally by work by Kai, this patch moves our NT_TOKEN generation into
our authenticaion code - removing some of the duplication from the current
code.

This also gets us *much* closer to supporting a real SAM backend, becouse the
SAM can give us the right info then.

This also changes our service.c code, so that we do a VUID (rather than uid)
cache on the connection struct, and do full NT ACL/NT_TOKEN checks (or cached
equivilant) on every packet, for the same r or rw mode the whole share was open
for.

Andrew Bartlett
(This used to be commit d8122cee059fc7098bfa7e42e638a9958b3ac902)
2002-08-20 01:54:28 +00:00
Gerald Carter
11b71419b0 add support for the "value,OID" format described in MSDN.
I've not seen this on a real network, but we support it now :-)
(This used to be commit 1ed6f68f6f29e1a62b12764ec5e84de8351efbd3)
2002-08-19 21:17:22 +00:00
Gerald Carter
2b93ecc90b added wrapper for delete_printer_data() that write the printer out to disk.
(This used to be commit 113d960d77fc9e3671a448d093237ced25c2e18c)
2002-08-19 02:18:48 +00:00
Gerald Carter
0231bb451d change notify fix left out of merge by APP_HEAD by accident
(This used to be commit a413ff8b494e63b42fab213f12b44df6a5f0c34c)
2002-08-19 01:56:15 +00:00
Gerald Carter
12be900ece * Fix DeletePrinterDataEx() to work with arbitrary registry keys
* Fix delete_all_printer_data() to accept a key name for partial tree
  deletions

* Fix EnumPrinterKey() to work with subkeys

* Fix DeletePrinterKey() to work with ful or partial registry
  trees

* Fix get_printer_subkeys() to return a list of unique keynames
  ( some were getting added twice due to subkeys names )

* fix a couple of typos for good measure
(This used to be commit b6ceb8c2e50b7fcdc614a3b6782db05b60689a85)
2002-08-18 16:52:51 +00:00
Gerald Carter
50d224a898 fix to allow EnumPrinterKey() to enumerate multiple levels of subkeys.
Works on the top level.  Needs more testing for levels > 1.
(This used to be commit 32a7083843f2bf9a3f32027189dbb0ff92927cd4)
2002-08-18 11:11:48 +00:00
Gerald Carter
caf8f949b6 * small formatting fixes
* Fix EnumPrinterKey() to enumerate all printer keys
  ( this will break if we have more than one level deep of printer keys )
(This used to be commit e72184ce13a5645dc1e1a137468207270ed20ed6)
2002-08-18 02:10:07 +00:00
Gerald Carter
409d7ff3f5 fixed up a few comments
removed now unused getprinterdata)printer() function
(This used to be commit 2d5e4cdc3a4128c6747350d8f66b783218045ce2)
2002-08-18 01:02:32 +00:00
Gerald Carter
66992aff21 * fix Get/SetPrinterDataEx() to work with printer key other
than SPOOL_PRINTERDATA_KEY

* created an internal set/get_printer_dataex() call for reuse in
  Set/GetPrinterData()
(This used to be commit 4eb8ffba032971cf83a0fcec7ca3730b4ded0bf0)
2002-08-18 00:59:47 +00:00
Gerald Carter
cb36e520b3 * the printing code should now be back to the working state it was
before the swap from NT_PRINTER_PARAM to REGISTRY_VALUE.

* XxxPrinterDataEx() functions have not been expanded to support
  keys other than SPOOL_PRINTERDATA_KEY yet

* fixed apparent long standing bug regarding the dependentfiles
  list in the DRIVER_INFO struct
(This used to be commit d59b0eb1236cf5bb9371030a94eb60d4131c15fb)
2002-08-17 13:17:41 +00:00
Gerald Carter
f56e06476f fix seg fault in _spoolss_enumprinterkey after changes...
add SPOOL_PNPDATA_KEY define
(This used to be commit cdaa3f55e1fcc38b1d7a63d502a9fea3b92bf193)
2002-08-17 00:38:20 +00:00
Tim Potter
3a226d149d Return access granted in create_user2.
(This used to be commit 8ebc295f4a487993474390e0686d2aa9313be8d1)
2002-08-16 17:35:38 +00:00
Gerald Carter
31514f67ae fix small bug in enumprinterdataex due to my changes (still more lurking
though).
(This used to be commit 2feb89601fc45dea13fe45a55a9c058726a5de84)
2002-08-16 16:46:50 +00:00
Gerald Carter
4ed429481c Fairly large change to printing code.
* removed support for PHANTOM_DEVMODE printer data

* s/NT_PRINTER_PARAM/REGISTRY_VALUE/g - This was a good bit
  of work.  Everything seems stable, but is not complete.

* support for printer data keys other than PrinterDriverData
  in the store and fetch routines.  Still needs to be plugged
  into the XxxPrinterDataEx() calls.

Tested against NT4.0 & 2k.  Like I said, it's not done, but doesn't
crash so it shouldn't upset anyone (unless you're trying to build
a Samba printer server off of HEAD).  More work to come.  Should
settle by Monday.


jerry
(This used to be commit 7ba7c04c0e961618c82c2112b9627af114c6cc42)
2002-08-16 15:36:37 +00:00
Andrew Bartlett
b84315e2d5 Return the error if get_group_domain_entries() fails.
(This used to be commit bc9e9e3e2e0d861f34de26a9ef8b627a86c9954d)
2002-08-16 08:47:10 +00:00
Tim Potter
9b38f76ab1 Rename unknown_0 field in create_user2 reply in the actual struct.
(This used to be commit 482d873c26bf02e27ffcd92042b476eda765a5ff)
2002-08-15 19:40:34 +00:00
Gerald Carter
14d385439d printing change notification merge from APPLIANCE_HEAD
(This used to be commit 11ddfd9cfa550dcd3186c8aaf0cc038ce7f1791f)
2002-08-08 20:54:37 +00:00
Tim Potter
335aa54b46 Merge of incomplete rffpcnex testing code from APPLIANCE_HEAD.
(This used to be commit fe43c2ac2d2e1dd3b3a25c807d4dd379c5ac4960)
2002-08-08 04:58:19 +00:00
Jim McDonough
5e42dcfe46 Add SAMR 0x3e, which is samr_connect4. Seems to be the same as our
existing connect (which I've been told is really connect2), with one
extra dword.  We've only seen 0x00000002 there...
(This used to be commit 266344634944dff30f56453f9d86c490e7ac7a55)
2002-08-06 18:02:56 +00:00