summaryrefslogtreecommitdiff
path: root/source3/include
AgeCommit message (Collapse)AuthorFilesLines
2000-08-01Added print job substitutions for %{printername}, %{sharename} and %{portname}Jeremy Allison2-0/+7
from the NT printer tdb. Also added checks for time restrictions before allowing a job to print. Jeremy. (This used to be commit 8cfb55e81abebf0354e6d470ed68bbac1d6560ad)
2000-07-31Added John Reilly's enumports/addprinter/delprinter scripting code plus theJeremy Allison2-1/+6
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. (This used to be commit 902ada63799cf27924c72e24e7593a8c9fb5eba9)
2000-07-31make protoGerald Carter1-10/+13
(This used to be commit 38b07395566a2c114ccda173fb0fe88cf7683588)
2000-07-27Ok - this is a *BIG* change - but it fixes the problems with static stringsJeremy Allison5-20/+32
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. (This used to be commit 0ff2ce543ee54f7364e6d839db6d06e7ef1edcf4)
2000-07-25make protoGerald Carter1-0/+5
--jerry (This used to be commit 1f65b13dd56fbe41320f6c4e8f391ce739509e45)
2000-07-25Added some error checking and returns to the new 'move' code.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 0bd88d304cd773e0bbf3e6f7fedcb3b544d41cbe)
2000-07-25A rather big change set ! (listed in no particular order)Jean-François Micouleau2-7/+10
- 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. (This used to be commit ac0a145acc0953a6f362497abbf4dfe70aa522a6)
2000-07-22Fixed open handle code in printers - 3 functions were always being doneJeremy Allison2-21/+22
in order - moved them into open_printer_hnd(). Added saving of comment field. Jeremy. (This used to be commit a0ee774fe92e5d0bc84d1d6729e8c538c67e8aba)
2000-07-21make protoGerald Carter1-0/+13
(This used to be commit e4af400ed6580c04bcaf3a28fe8aeaa0cdbd4dcf)
2000-07-20make protoGerald Carter1-0/+10
(This used to be commit 1246728eb9013948d17ad44263501d1e1bb49e8f)
2000-07-19Code from John Reilly <jreilly@hp.com> to add tdb lookups into the Win95Jeremy Allison1-0/+1
printer driver download if looking for the default driver files fail. Jeremy. (This used to be commit 1192d867c4e863471f9bc12afceb68a23ba2142e)
2000-07-19Instead of handing back a string (which might be a DNS name or an IPChristopher R. Hertel1-2/+2
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 -)----- (This used to be commit 73aa188320fd3bf10b5dfc057323f40aff2c13bd)
2000-07-19First cut toward adding WINS server failover.Christopher R. Hertel1-10/+7
*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 -)----- (This used to be commit cc08bdc74f4cd111fdc582ee7babef47ed8a950d)
2000-07-18Fixed some more client SPOOLSS functions. The followingGerald Carter8-361/+445
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 (This used to be commit 381aba2c9a63faa53728f0520ac316478bc7a1c3)
2000-07-17make protoTim Potter1-84/+0
(This used to be commit df0ef98d7ed41899ce97d20163ab49081347ae83)
2000-07-17make protoTim Potter1-339/+338
(This used to be commit 4443a8b6e698a6572152e575c41dfb760b9888a9)
2000-07-15reverted a some previous additions.Gerald Carter1-15/+4
Removed msrpc_local struct --jerry (This used to be commit b2317babb557f5bce390c7162c9936f5d46f4da3)
2000-07-14make protoGerald Carter3-352/+454
and a few changes to ntdomain for rpcclient printing functions --jerry (This used to be commit eb3f545f54eabb8b2b9a735808ebf49808ea85eb)
2000-07-12Typo. It said "DEGUG" in the comments. I dunno how to degug, or gug forChristopher R. Hertel1-1/+1
that matter. crh (This used to be commit 6ee63ecfa5f9c984f51c15597a50e085ab722e87)
2000-07-10make protoGerald Carter1-0/+1
(This used to be commit ae85cc43fec26be6184e863569a94cab0afc425a)
2000-07-10Fixes for various compile warnings on Solaris 8.Tim Potter1-14/+14
(This used to be commit 898a483cdab1ed7d8ff902c0dc0e0620440ae4cd)
2000-07-10Moved winbind client functions from various odd locations toTim Potter1-7/+11
nsswitch/wb_client.c Merge of nsswitch/common.c rename to nsswitch/wb_common.c from TNG. (This used to be commit f866c18f6be65db67d9d2a6c0b42e1af3b421e6c)
2000-07-10make protoTim Potter2-335/+336
(This used to be commit 5f355a24430dcb260de52e8a0ca21e80cae53089)
2000-07-07More rpcclient merge issues:Gerald Carter3-0/+129
* fixes some readline bugs from the merge * first attempt at commands (spoolenum almost works) * no changes to existing functions in HEAD; only additions of new functions. I'll weed out what I can as I go. --jerry (This used to be commit 61d2aad5dc2b212b11c981f1eca47efa627e9fc8)
2000-07-06printing/nt_printing.c: (From JF) use the driver name - already given to us.Jeremy Allison1-16/+23
printing/printing.c: priority needs to be 1 not zero (found by checked build). rpc_server/srv_spoolss_nt.c: Log invalid handle access, also print out if this is a different pid handle. This will help track down client access after a connection is closed. Jeremy. (This used to be commit 4ff949228c40b6abb2008df8db985562ac2895d2)
2000-07-06Moved authenticated pipe user details into a current_user struct.Tim Potter1-1/+1
(This used to be commit 3c4a5f624bfa69eb81d998530d9227e158edd109)
2000-07-06Moved printer ACE mask values from nt_printing.h to rpc_spoolss.hTim Potter2-9/+6
(This used to be commit 9245af1ea18babae09a92af634428a63ec55438e)
2000-07-06Include nss.h if present or define enough values to allow client access toTim Potter1-0/+15
winbind. (This used to be commit 669bd8dc1ab4690cf21310fe0310f1716e4a0197)
2000-07-06Added global_sid_NULL S-1-0-0 to list of global sids.Tim Potter1-0/+1
(This used to be commit f49905e74c6e3891b5816b136fd1d0d77c392e2f)
2000-07-06new protosAndrew Tridgell1-1/+0
(This used to be commit bd323fa503b1ad7ab9ca35b2f93774541b02e8e3)
2000-07-06don't need shmem any moreAndrew Tridgell2-34/+0
(This used to be commit a81371a4fd6f7972b054bea90428d1d2fd6d1d22)
2000-07-03Some more sec_ctx changes. Modified some fields in the pipe_structTim Potter2-18/+19
structure so authenticated pipe users can have their unix groups set when become_authenticated_pipe_user() is called. (This used to be commit 55c9bf124dc661df43bfe582ef14b1297aeaf0fa)
2000-07-03first pass at merging rpcclient from TNG to HEAD. You can get aGerald Carter7-105/+353
semi-connection and a rpcclient prompt, but no functionality there yet. Will be a few more days on that. The changes to the header files were minor. A few struct's and a few additional fields to existing ones. No deletions. **minimal change necessary** :-) Well, maybe not minimal, but I tried. All other programs compile, link and run ok from what I can tell so I don;t think I broke anything. --jerry (This used to be commit cd7f0b0b91afd3331c0607ba2fcb3ccdd41ecebf)
2000-06-26Changing drivers using the properties page works - but only if getting/settingJeremy Allison1-384/+384
security descriptors is disabled (as it is in this code). If get/set sd's is enabled spooler.exe crashes on NT. I'll investigate and fix that issue next. Jeremy. (This used to be commit 8c9ed874363e6a710bc0fe521bb8c4f7ee219587)
2000-06-23make protoTim Potter1-0/+41
(This used to be commit 927b7772a1246d60bccdf79cdb1f054c449c6bb6)
2000-06-23Added parenthesis around definition of PRINTER_ACE_PRINT.Tim Potter1-1/+1
(This used to be commit 0dbc680e34922557a7b4ad62e898002218fa94b3)
2000-06-23make protoTim Potter1-386/+393
(This used to be commit 2d3312249b3755e46d913dd40325b85db4aae62e)
2000-06-23Added MAX_SEC_CTX_DEPTHTim Potter1-0/+2
(This used to be commit 2bf21395ba4999d0392d6f54093ddc8861323ddd)
2000-06-22Changed enumports to show printernames as ports. In line with 'the grand ↵Jeremy Allison1-1/+1
plan' :-) Gerald & I discussed with HP. More changes to follow. Jeremy. (This used to be commit 193a248beda99103c73a0b0ea5e2fbcbb516ce8e)
2000-06-22lib/util_unistr.c: Removed ascii_to_unistr() as it does no codepage.Jeremy Allison1-386/+384
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-21A neater way of solving the S_ISSOCK, S_ISFIFO problem.Tim Potter2-47/+54
Moved the S_* macros from smb.h to includes.h (This used to be commit b37539e323361239659256ef0837f63b6714ab95)
2000-06-20Fixes for Win2k "add printer driver" INFO_LEVEL_6 was wrong, also someJeremy Allison1-2/+1
memory fixes. Jeremy. (This used to be commit 2a9e645cbddef1cddc5c978310b7efed492758d2)
2000-06-20Fixes for IRIX kernel oplocks and systems that don't have nss.hJeremy Allison1-0/+3
Jeremy. (This used to be commit 711f15ac230092bac000e63f99e8dfaa4a644847)
2000-06-16Whoops - dodgy make proto.Tim Potter1-1/+1
(This used to be commit 87cd080441a924afd57d03e86c926a60c4416967)
2000-06-16make protoTim Potter1-403/+416
(This used to be commit b3f2946d3958ef92ad7d30a52d00bcfd50229388)
2000-06-16Changed function prototype for pipe api functions to take a pipes_structTim Potter1-1/+1
instead of two prs_data pointers. (This used to be commit 73e4466fc30fee149f51a5aa45c26beb783306c5)
2000-06-16Added some permission constants that are set for NT printer securityTim Potter1-0/+7
descriptors. These seem to be made up of the standard and generic access rights rather than object specific access rights. (This used to be commit 07099fd4464eca2b5f061ef25309f41b8ab5e00b)
2000-06-15added support for kernel level share modes. These are a (small) hack,Andrew Tridgell2-0/+10
I suspect we will either get rid of them or do them properly at some stage. (This used to be commit fabe1f350e1fc58db33d22cebd38652950697ced)
2000-06-14#include nsswitch/winbind_nss.hTim Potter1-0/+2
(This used to be commit ce40ba9fba62d4debc43ab53b8564fc24d1f9e3b)
2000-06-14allow the notify implementation to choose the select timeout changeAndrew Tridgell3-1/+3
(This used to be commit b1441d9622609af5ef598c5e1e1f5af438dc0731)