summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* A rather big change set ! (listed in no particular order)Jean-François Micouleau2000-07-259-306/+494
| | | | | | | | | | | | | | | | | | | | | - 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.
* Fix for mounting a printer as a share. Not that there's anythingTim Potter2000-07-251-0/+5
| | | | | | | | | | 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!
* Tidy up code to add printer. Always index in tdb by sharename. ThisJeremy Allison2000-07-251-5/+33
| | | | | is beginning to come together... Jeremy.
* Run main server loop with sys_select() instead of sys_select_intr(). TheTim Potter2000-07-241-2/+13
| | | | main daemon was not catching sighup and reloading the service file.
* Test for reloading smb.conf after SIGHUP. Needs to be run as root.Tim Potter2000-07-241-0/+107
|
* Fixed open handle code in printers - 3 functions were always being doneJeremy Allison2000-07-225-155/+171
| | | | | | in order - moved them into open_printer_hnd(). Added saving of comment field. Jeremy.
* make protoGerald Carter2000-07-211-0/+13
|
* * Added EnumPorts()Gerald Carter2000-07-212-3/+137
| | | | | | | | * Fixed an off-by-one bug noticed by JF in GetPrinterDriverDirectory() jerry
* Added EnumPorts() and fixed up some problemsGerald Carter2000-07-211-48/+27
| | | | | | | | | with the other spoolss client calls. Also cleaned up output for 'help' command. jerry
* Added EnumPorts() and fixed up some problemsGerald Carter2000-07-213-0/+96
| | | | | | | | | | with the other spoolss client calls. Also cleaned up output for 'help' command. jerry
* Added functions for enumerating ports on remote print server.Gerald Carter2000-07-211-6/+48
| | | | | | | | | | 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
* make protoGerald Carter2000-07-201-0/+10
|
* readded util_list.c (just to the RPCCLIENT_OBJ). I need to splitGerald Carter2000-07-201-1/+1
| | | | | | | | the file up i think. Later. --jerry
* Fixed unitilized secdesc pointer which was causing spoolgetprinterGerald Carter2000-07-202-2/+7
| | | | | | | | | rpcclient command to fail on shared printers. jerry
* Modified the patch to look in the tdb *first* - thus allowing legacy textJeremy Allison2000-07-191-75/+91
| | | | | | filed to be ignored when an upload is done. Modified to code to goto err on problems, simplifies it. Jeremy.
* Code from John Reilly <jreilly@hp.com> to add tdb lookups into the Win95Jeremy Allison2000-07-193-7/+100
| | | | | printer driver download if looking for the default driver files fail. Jeremy.
* Instead of handing back a string (which might be a DNS name or an IPChristopher R. Hertel2000-07-195-48/+99
| | | | | | | | | | | | | | | | | | 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 -)-----
* First cut toward adding WINS server failover.Christopher R. Hertel2000-07-197-17/+250
| | | | | | | | | | | | | | | | | | | | | | | | | | *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 -)-----
* Removed the sanity check on the WINS SERVER parameter because it simplyChristopher R. Hertel2000-07-181-17/+0
| | | | | | 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. ;)
* rpc_parse/parse_prs.c: Removed extraneous ()'s.Jeremy Allison2000-07-183-43/+45
| | | | | | | | 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.
* remove util_list from LIB_OBJS since it broke smbd buildGerald Carter2000-07-181-1/+1
| | | | | | | | | | | | (undefined references in link). This is a quick fix. I'll resolve things later. Sorry everyone. jerry
* Added lib/util_list.[c|o] to Makefile.inGerald Carter2000-07-181-1/+1
| | | | --jerry
* Fixed some more client SPOOLSS functions. The followingGerald Carter2000-07-188-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
* fixed a bug (my own) in create_ntc_from_cli_state()Gerald Carter2000-07-181-2/+2
| | | | --jerry
* I really didn't like the way generic arrays (lists) wereGerald Carter2000-07-181-0/+321
| | | | | | | | | | | | | 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
* grab functions that return RPC_HND_NODE (declaredGerald Carter2000-07-181-1/+1
| | | | | | | | in include/util_list.h) -- jerry
* Fixed some more client SPOOLSS functions. The followingGerald Carter2000-07-183-76/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixed some more SPOOLSS functions. The followingGerald Carter2000-07-181-5/+4
| | | | | | | | | | | | | | | | | | | 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
* Missing var.Tim Potter2000-07-171-1/+1
|
* Reverted changes from rpcclient merge - contains memory leak!Tim Potter2000-07-171-2/+9
|
* Free security descriptor after access check in update_printer_sec()Tim Potter2000-07-171-3/+7
|
* Initialise current time to time(NULL) in add_a_printer_2()Tim Potter2000-07-171-1/+4
| | | | | Added get and free security old descriptor in nt_printing_setsec() after access checking was moved up to rpc level.
* make protoTim Potter2000-07-171-84/+0
|
* make protoTim Potter2000-07-171-339/+338
|
* Allow job owner to delete own print job.Tim Potter2000-07-171-13/+28
|
* Moved access check for nt_printing_setsec() up into rpc function.Tim Potter2000-07-171-36/+59
| | | | | | | | | | | 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.
* Renamed arguments to se_access_check()Tim Potter2000-07-171-4/+28
|
* Renamed a parameter in init_request() function.Tim Potter2000-07-171-10/+19
| | | | Initialise response structure correctly.
* Added some debugs.Tim Potter2000-07-171-13/+27
| | | | | Changed interface to se_access_check to take a user struct instead of each bit as a separate parameter.
* I committed this change to the cliffs archive a while back and have heardChristopher R. Hertel2000-07-151-5/+20
| | | | | | | | | | 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 -)-----
* Lots of changes but no real progress in functionality.Gerald Carter2000-07-153-146/+92
| | | | | | | | | | | | | 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
* reverted a some previous additions.Gerald Carter2000-07-151-15/+4
| | | | | | | Removed msrpc_local struct --jerry
* a few changes to Makefile.in to clean up dependencies for rpcclientGerald Carter2000-07-141-7/+5
| | | | --jerry
* More functions merged from TNG for rpcclient. They don't all workGerald Carter2000-07-144-310/+410
| | | | | | | | | currently as I have to do something about the policy handle caching issues. --jerry
* cleaned up access to prs_struct variables. Replaced all callsGerald Carter2000-07-141-10/+553
| | | | | | | | prs_free_data() => prs_mem_free prs_realloc_data => prs_grow --jerry
* removed references to loopback RPC connections.Gerald Carter2000-07-141-45/+80
| | | | | | | | added a few more kfunctions from TNG for rpcclient --jerry
* removed prs_data(), prs_free_data(), and prs_realloc_data()Gerald Carter2000-07-142-105/+60
| | | | | | | | 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.
* Fixed a bug in cmd_interp.c where if user%pass was entered onGerald Carter2000-07-142-206/+3
| | | | | | | | | | | | 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
* make protoGerald Carter2000-07-143-352/+454
| | | | | | | and a few changes to ntdomain for rpcclient printing functions --jerry
* adding more spoolss command into rpcclient. They don't all workGerald Carter2000-07-142-2/+368
| | | | | | | currently. More to come later. --jerry