1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-24 04:23:53 +03:00
Commit Graph

306 Commits

Author SHA1 Message Date
Gerald Carter
2a30c243ec done! printer_info_2, devicemode, sec_desc, & printer data all enumerate
and display correctly in regedit.exe.

Not sure about REG_SZ values in PrinterDriverData.  If we store these
in UNICODE, I'll have to fix up a few things.

REG_BINARY & REG_DWORD are fine.
-
Tim Potter
11229aa88b Sync with APPLIANCE_HEAD branch (whitespace, const only) -
Tim Potter
825cdc49db Merge from APPLIANCE_HEAD. -
Jeremy Allison
4ff64f6970 Gone back to explicit queue number passing as snum - removed encoding of
queueid in job number. This means we must have an internal tdb to store
mapping from 16 bit RAP jobid's to 32 bit RPC jobids.
Jeremy.
-
Jeremy Allison
d3c73e5970 We must ZERO_STRUCT before using the buffer in copy_unistr2.
Fixes addprinterdriverex.
Jeremy.
-
Gerald Carter
dcb6d70706 added copyright -
Gerald Carter
17bb780e13 last check in for tonight.
* DeletePrinterDriverEx() now has the ability to delete
    driver files.  I need to do some more testing
    tro veriofy that we are in fact not deleting a file out from
    under another driver, but it looks ok so far.

  * DeletePrinterDriver() noiw deletes all versions of the
    specified driver (cversion == 0, 1, 2, 3)
-
Gerald Carter
7207662504 all that is left to do is to actually perform the
file deletion now.  I have the file list.
One more commit should do it.
-
Gerald Carter
3fa6c31329 intermediate work on DeletePrinterDriverEx(). This call
will actually delete driver files ( not yet though I don't think).
Just wanted to get it in since Jeremy and I are both
working on nt_printing.c
-
Gerald Carter
be926c3a1a fix typo -
Gerald Carter
55fbfd02ba added parsing routines for SPOOLSS_ADDPRINTERDRIVEREX and
SPOOLSS_DELETEPRINTERDRIVEREX.  Ran them through some testing.
I know I'm off by 2 x uint32's in the former RPC.
-
Gerald Carter
d675974d0c * basic implementation of SPOOLSS_DELETEPRINTERDATAEX and
SPOOLSS_DELETEPRINTERKEY
* stub funnctions for SPOOLSS_ADDPRINTERDRIVEREX and
  SPOOLSS_DELETEPRINTERDRIVEREX
-
Jeremy Allison
17cae0d683 Address the string_sub problem by changing len = 0 to mean "no expand".
Went through and checked all string_subs I could to ensure they're being
used correctly.
Jeremy.
-
Tim Potter
daf4c6a013 Merge of constant renames from APPLIANCE_HEAD. -
Jeremy Allison
3603cd4947 Proper merge of all the working printing stuff from APPLIANCE_HEAD.
Now let's keep this in sync !
Jeremy.
-
Gerald Carter
b07d6d4ceb compile fix -
Gerald Carter
f753676286 printing merge from SAMBA_2_2. Ther server code looks to be in sync now.
Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions
being

  * John driver init changes
  * Tim's printer enumeration bug fix
-
Simo Sorce
897e64d2e0 more debug classess activated -
Gerald Carter
30a0e72572 merge from 2.2 -
Tim Potter
e80e663706 Fix compile error - doh! -
Tim Potter
9d3933a592 Moved some notify related constants into srv_spoolss_nt.c since
they're only used there.

Added a PRINTER_NOTIFY_VERSION constant.
-
Tim Potter
7d9b8c58a6 Fixed out of date comment for _spoolss_rffpcnex() -
Gerald Carter
f0226a1d83 merge from SAMBA_2_2 -
Gerald Carter
83f109c940 merge from SAMBA_2_2.
Tim, please check the prs_align() removed from sec_io_desc()
and make sure it doesn't break anything else.  I know it is
right for the printing needs and I have tested some other
general things like viewing acls on directories, but I would
feel more comfortable if you would have a look as well.


jerry
-
Tim Potter
92b36482fd Patch to only set SV_TYPE_PRINTQ_SERVER in default_server_announce if a
print share is exported.  Needs some more testing.
-
Jeremy Allison
32fa089ade Merged in printing fixes... There were many missing !
Jeremy
-
Gerald Carter
5e381abbbf merge from SAMBA_2_2 -
Jeremy Allison
f988a1af03 Fix found by Li Shao @ HP - XP clients don't bother to set the devmode_ptr
in the SetPrinter() call - they send it in the devmode_ctr instead.
Jeremy.
-
Tim Potter
bc673c4204 Merge of print server permission handling fixes from HEAD.
Unit tests rock!
-
Jeremy Allison
42ae2334f2 Correctly emulate NT in printer handle opening access rights.
Jeremy.
-
Gerald Carter
d7c9b00253 s/werror_str/dos_errstr/g to fix compile -
Gerald Carter
32dc5dbbfb WERROR merge from SAMBA_2_2 -
Tim Potter
49e429a97f Fixed typo in debug statement. -
Tim Potter
be6f955107 Fixed some compiler warnings. -
Jeremy Allison
b8b88e863e Fix Gerry bug - MajorVersion should be 2 not 3.
Jeremy.
-
Gerald Carter
606450f3cb merge from SAMBA_2_2 -
Gerald Carter
619397cc90 OpenPrinter() merge from 2.2 -
Tim Potter
e66bdf1229 Stomped on some header file version numbers that have crept back in. -
Gerald Carter
9282aa02d4 merge from APPLIANCE_HEAD -
Gerald Carter
88d8897e21 resetprinter merge from SAMBA_2_2 -
Tim Potter
47b1003bc5 Merge from app-head:
> Don't put two copies of the server name in construct_printer_info_1()
-
Jeremy Allison
2e3133fbe5 Merge in JohnR's page count fixes.
Jeremy.
-
Tim Potter
ddb5753e36 Added dos_errstr() function. Not all errors in list yet. -
Tim Potter
1f007d3ed4 Renamed get_nt_error_msg() to nt_errstr(). -
Gerald Carter
5760315c1d syncing up printing code with SAMBA_2_2 (already done some merges
in the reverse).

  * add in new printer change notify code from SAMBA_2_2

  * add in se_map_standard() from 2.2 in _spoolss_open_printer_ex()

  * sync up the _print_queue_struct in smb.h (why did someone change the
    user/file names in fs_user/fs_file (or vice-versa) ? )

  * sync up some cli_spoolss_XXX functions
-
Tim Potter
d7efc5dd3d Backed out enumprinters stuff - leave it for another day. -
Tim Potter
dfd51bc8d0 Merge of enumprinters vs getprinter naming patch from 2.2 -
Gerald Carter
66eb969ade merge from 2.2 -
Gerald Carter
4960692e95 merge from 2.2 -
Jeremy Allison
d31d2dcd22 Turns out an Admin user shouldn't always have access on a handle.
Jeremy.
-