summaryrefslogtreecommitdiff
path: root/source3/printing/nt_printing.c
AgeCommit message (Collapse)AuthorFilesLines
2000-06-22lib/util_unistr.c: Removed ascii_to_unistr() as it does no codepage.Jeremy Allison1-11/+9
Removed unistr_to_ascii() as it was never used. printing/nt_printing.c: Removed "DUMMY.XX" files. rpc_server/srv_spoolss_nt.c: Use dos_PutUniCode() instead of ascii_to_unistr(). Attempted to fix the "return value" size code based on J.F's comments. This needs looking at. Jeremy. (This used to be commit de99011bf3b2a23bd1854a047382a107aaeb9c68)
2000-06-20Fixes for Win2k "add printer driver" INFO_LEVEL_6 was wrong, also someJeremy Allison1-2/+10
memory fixes. Jeremy. (This used to be commit 2a9e645cbddef1cddc5c978310b7efed492758d2)
2000-06-16Added print_access_check() function for checking printer securityTim Potter1-0/+71
descriptors. Currently returns True (plus debug output) which should not affect the behaviour of nt or lanman printing. (This used to be commit a9b4710e649e887e07d68c1bf826e00c9811e4ee)
2000-06-09untiltime should be 0 by default to cover the whole 24 hours.Jean-François Micouleau1-3/+3
J.F. (This used to be commit 53aff484a6a37c83fd2e21d48fd1a5fcbad2f511)
2000-06-08make_sec_acl was passed pointer to static array ace[2], oops.Luke Leighton1-1/+1
(This used to be commit f3502d846c99c77b13ce75977f5dc79cc1a3506d)
2000-06-08Cause printer SD's to be displayed correctly (full control).Jeremy Allison1-7/+9
Jeremy. (This used to be commit 341d07c516865bdd9be99f98cd0754d12b25f9c0)
2000-06-07Fixing get/set of security descriptors.Jeremy Allison1-4/+17
Removed ugly hack for NT printing. Fixed up tdb parse stuff memory leaks. Jeremy. (This used to be commit 8ef41f31c53e14ad057d883810a1cd2301fede2a)
2000-06-06fixed sizeof() typoAndrew Tridgell1-4/+4
(This used to be commit 1da9c5531a8e26dc63b31a27fa73e0932278acb4)
2000-06-06fixed!!Andrew Tridgell1-10/+27
yipee! the damn "device settings cannot be displayed" error is gone. We needed to supply a default set of forms. I've added A4 and Letter by default. (This used to be commit 36f1189be1609490b6a825a2608b9cf5dc682656)
2000-06-06Create elements in default, not in read.Jeremy Allison1-0/+9
Jeremy. (This used to be commit 0d681ea252e0cf7fdf57d316d2bfe7caa9b4fbf5)
2000-06-05fixed a off by one bug in ntforms read from the databaseAndrew Tridgell1-1/+1
(This used to be commit 1c5f70821981e961b81c31f5c83bb56c08ef5018)
2000-06-04we no longer need the code to cope with setprinter having corruptedAndrew Tridgell1-6/+0
data (This used to be commit c602b703a05b94748a890add751f47fc6b539c60)
2000-06-04some printer parameters are getting corrupted, possibly by the clientAndrew Tridgell1-2/+12
possibly by smbd. Reset them so printing at least works while I try to figure out what is going on. (This used to be commit 70476d6767a571460fa375fb1dae884df77ca143)
2000-06-04fixed the pack/unpack of the devicemodeAndrew Tridgell1-50/+82
we were being bitten by uint16/uint32 mixups (This used to be commit 1d37f76953534f7bf9d8890dda30c7e00cbb024c)
2000-06-04someone forgot a !Andrew Tridgell1-1/+1
(This used to be commit 29fa2e1d99235bc15b2916c404b46012eb77b7e2)
2000-06-03fixed some ptr declarationsAndrew Tridgell1-2/+2
(This used to be commit 7a670f5f3b627543bf776fc9698a2b5d46c110a3)
2000-06-02More memory corruption (leaks etc.) fixes.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 71a0621f552083880e89923055e8bd14d0b1b82f)
2000-06-01More insure found memory leak and corruption fixes.Jeremy Allison1-2/+19
Jeremy. (This used to be commit 3cdcfa6325b9cd2d7f7c90c4b2d1c6ec73fc2f6d)
2000-06-01param/loadparm.c: Looks like someone ran indent on this !Jeremy Allison1-5/+15
passdb/smbpass.c: Insure uninitialized memory reference fix. printing/nt_printing.c: rpc_server/srv_spoolss_nt.c: Insure memory leak fixes. smbd/unix_acls.c: Shadow ref fix. Jeremy. (This used to be commit d175d3ebefc053e9badd91ca5f2d8bd03eb6705d)
2000-06-01Back to building. Now to test with insure.Jeremy Allison1-3/+1
Added some frees needed to stop memory leaks. Jeremy. (This used to be commit eba31e4e802120c9eb8c4688f521b4de9cb91f5c)
2000-06-01Getting back to a compilable state (not there yet but close).Jeremy Allison1-91/+186
Added patches for random -> sys_random. Added set_effective_xxx patches for AFS code. Memory allocation changes in spoolss code. Jeremy. (This used to be commit c2099cfb033c2cdb6035f4f7f50ce21b98e1584d)
2000-05-29if the tdb stored driver isn't formatted right then return a defaultAndrew Tridgell1-1/+1
driver (This used to be commit 48bf12d23ee39ccc7c19363012abd48f43dfac11)
2000-05-28fixed a couple of bugs in the driver return codeAndrew Tridgell1-1/+9
(This used to be commit 8695cb0023597fd118241a431eeeddc559484465)
2000-05-27getting and setting security descriptors on printers now worksAndrew Tridgell1-16/+61
this needed some fixes in tdb_unpack(). Tim, you'll need to update (This used to be commit 9422719ab4c35e4ce3199b62dd632433bf391283)
2000-05-27fixed return from nt_printing_init()Andrew Tridgell1-1/+4
(This used to be commit 7e13ba75444eb82b257a7a3578aa30ae2f52fe1a)
2000-05-27fixed call of firstkey/nextkey to traverse driver databaseAndrew Tridgell1-4/+4
(This used to be commit 11010f946af4d60d88bed450692e43c6a7860ab7)
2000-05-27dummy trash in secdesc.Luke Leighton1-3/+7
(This used to be commit 56c2dbbf813e1dc120d199b173fd462c658572a0)
2000-05-27bug-fix from tim (insure). dummy fn call for andrew to fill in.Luke Leighton1-1/+12
(This used to be commit 1e3c0ab29d178fe58add32672301ac497d43a3fe)
2000-05-27security descs in spoolss. needs parse_sec.c nttrans.c broken.Luke Leighton1-2/+2
(This used to be commit f9f2a04fdb7b2af1cfe5bf26ec6f0d955ea948b9)
2000-05-24a fairly big change in spoolss.Andrew Tridgell1-760/+460
got rid of the forms, drivers and printers files in the nt drivers directory and instead use a single tdb note that this is _not_ all finished. (This used to be commit 06763d1ec2fafc42f8ee3f36f0aeacceb3a7109d)
2000-05-12added spool_io_printer_driver_info_level_6()Andrew Tridgell1-1/+76
thsi function and the associated header structure were autogenerated using a little awk based code geerator I wroe ths evening. I'll commit that next ... (This used to be commit 974813f0d4afb6c14ed27c48ab24b19932557f9f)
2000-05-02added support for deleting printers into the spoolss systemAndrew Tridgell1-0/+15
(This used to be commit e72a5718537b84409fc20ff21951b1d1ab24d97f)
2000-04-25moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell1-1/+0
(This used to be commit d7cd7c88fdabb01d9e40ae8a657737907a21ac37)
2000-04-24fixed another memory leakAndrew Tridgell1-0/+1
(This used to be commit 780713f67a848ade49c523cda96015ab46337cde)
2000-04-23fixed a memory leak I caused last week with my lines[] changesAndrew Tridgell1-6/+1
(This used to be commit 4c889d08aed3cebba54abbc96f28a2d1c545a4b5)
2000-04-18don't parse blank linesAndrew Tridgell1-0/+2
(This used to be commit 8b1afe7e1af0a62244632e0a58b9e513ab4366f0)
2000-04-18fixed some crash bugs in the nt forms parsingAndrew Tridgell1-6/+6
(This used to be commit e505a6ddf3df37ca485cae117c53fa96d736f897)
2000-04-16got rid of all the FILE* calls in the NT print system.Andrew Tridgell1-118/+112
this also fixes a few security holes in that code. JF - you need to be careful about open files for writing! symlinks can trap you. note that I always unlink() the file first, then open with O_EXCL. That is a cheap trick to avoid the symlink problems. (This used to be commit ad56e3d7915100a83b33ad36e627e13325197942)
2000-04-06Modified interfaces and added checks around *all* *alloc callsJeremy Allison1-29/+21
so that errors are returned on memory allocation failure. Jeremy. (This used to be commit 9a118cd4a2b03146b341eeffb62144a2d29b574c)
2000-04-06filled the architecture table (useless for the moment).Jean-François Micouleau1-6/+6
fixed GetJob. J.F. (This used to be commit 3fea49e1d896987c54187cb326607284810fcb0d)
2000-04-05JF - you might want to look at this patch.Jeremy Allison1-23/+134
Went through and fixed up all failure possibilities. If something (malloc, file open etc.) fails, then this code goes through and cleans up all allocated resources on exit. This is the equivalent of a C++ destuctor for the allocated structures. We need code to be written like this to pass purify tests. Jeremy. (This used to be commit b260ef7cb1fb2b1e4661cc54eab403eb01fbfc35)
2000-04-05Added strerror at debug level 0 on file create/open fail. Helps catchJeremy Allison1-3/+3
problems. Jeremy. (This used to be commit a25891f52491a3aed89302704ba24df832aedf0b)
2000-04-03Fix for spoolss code from Alan Hourihane <Alan.Hourihane@pinacl.co.uk>.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 33aa541e89ebe2e6a7c1808cea6dc7128bdb0587)
2000-03-22acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.Jeremy Allison1-1/+1
include/byteorder.h: Added alignment macros. include/nameserv.h: Added defines for msg_type field options - from rfc1002. lib/time.c: Typo fix. lib/util_unistr.c: Updates from UNICODE branch. printing/nt_printing.c: bzero -> memset. smbd/connection.c: Added check for UT_SYSLEN for utmp code. Other fixes : Rollback of unapproved commit from Luke. Please *ask* next time before doing large changes to HEAD. Jeremy. (This used to be commit f02999dbf7971b4ea05050d7206205d7737a78b2)
2000-03-10getprinter level 0: was to short, found most of the fields, undocumented,Jean-François Micouleau1-33/+57
undecoded, nothing in MSDN, but now it works :-) cleanup of error codes. fixed some dfs declarations function. J.F. (This used to be commit 87da4404aba29a2ebd999886e4c06958c96d3e05)
2000-03-07fixed enumprinterdata.Jean-François Micouleau1-11/+10
J.F. (This used to be commit 2b4f09e7bbcbf1bf835f299e9f6bf89b32a7f03f)
2000-02-15fix the reply of rpc_alter_contextJean-François Micouleau1-70/+70
OpenPrinterEx is now decoding correctly the query most of the EnumXXX use the new_buffer struct. check the (un)marshalling return code. conclusion: still a long way to go. all the client code has to be rewritten, and I still wonder how to implement correctly the notify stuff. (This used to be commit 3d6d3863751787b08d40268c83221add1487a5c9)
2000-02-07First commit of the spoolss code to the HEAD branch.Jean-François Micouleau1-0/+1413
still needs a lot of cleaning/debuging. J.F. (This used to be commit bd9d4cdde9193c120c6f4e8cf72f87cd67a9387e)
1999-12-132nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1-1412/+0
that were in the head branch but weren't in SAMBA_2_0 (This used to be commit d7b208786590b5a28618590172b8d523627dda09)
1999-12-12delineation between smb and msrpc more marked. smbd now constructsLuke Leighton1-7/+6
pdus, and then feeds them over either a "local" function call or a "remote" function call to an msrpc service. the "remote" msrpc daemon, on the other side of a unix socket, then calls the same "local" function that smbd would, if the msrpc service were being run from inside smbd. this allows a transition from local msrpc services (inside the same smbd process) to remote (over a unix socket). removed reference to pipes_struct in msrpc services. all msrpc processing functions take rpcsrv_struct which is a structure containing state info for the msrpc functions to decode and create pdus. created become_vuser() which does everything not related to connection_struct that become_user() does. removed, as best i could, connection_struct dependencies from the nt spoolss printing code. todo: remove dcinfo from rpcsrv_struct because this stores NETLOGON-specific info on a per-connection basis, and if the connection dies then so does the info, and that's a fairly serious problem. had to put pretty much everything that is in user_struct into parse_creds.c to feed unix user info over to the msrpc daemons. why? because it's expensive to do unix password/group database lookups, and it's definitely expensive to do nt user profile lookups, not to mention pretty difficult and if you did either of these it would introduce a complication / unnecessary interdependency. so, send uid/gid/num_groups/gid_t* + SID+num_rids+domain_group_rids* + unix username + nt username + nt domain + user session key etc. this is the MINIMUM info identified so far that's actually implemented. missing bits include the called and calling netbios names etc. (basically, anything that can be loaded into standard_sub() and standard_sub_basic()...) (This used to be commit aa3c659a8dba0437c17c60055a6ed30fdfecdb6d)