| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
|
|
|
|
|
|
| |
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!
|
|
|
|
|
| |
is beginning to come together...
Jeremy.
|
|
|
|
| |
main daemon was not catching sighup and reloading the service file.
|
| |
|
|
|
|
|
|
| |
in order - moved them into open_printer_hnd().
Added saving of comment field.
Jeremy.
|
| |
|
|
|
|
|
|
|
|
| |
* Fixed an off-by-one bug noticed by JF in GetPrinterDriverDirectory()
jerry
|
|
|
|
|
|
|
|
|
| |
with the other spoolss client calls.
Also cleaned up output for 'help' command.
jerry
|
|
|
|
|
|
|
|
|
|
| |
with the other spoolss client calls.
Also cleaned up output for 'help' command.
jerry
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
the file up i think. Later.
--jerry
|
|
|
|
|
|
|
|
|
| |
rpcclient command to fail on shared printers.
jerry
|
|
|
|
|
|
| |
filed to be ignored when an upload is done.
Modified to code to goto err on problems, simplifies it.
Jeremy.
|
|
|
|
|
| |
printer driver download if looking for the default driver files fail.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 -)-----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*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 -)-----
|
|
|
|
|
|
| |
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_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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
(undefined references in link). This is a quick fix.
I'll resolve things later.
Sorry everyone.
jerry
|
|
|
|
| |
--jerry
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
--jerry
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
in include/util_list.h)
-- jerry
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Added get and free security old descriptor in nt_printing_setsec() after
access checking was moved up to rpc level.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Initialise response structure correctly.
|
|
|
|
|
| |
Changed interface to se_access_check to take a user struct instead of each
bit as a separate parameter.
|
|
|
|
|
|
|
|
|
|
| |
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 -)-----
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Removed msrpc_local struct
--jerry
|
|
|
|
| |
--jerry
|
|
|
|
|
|
|
|
|
| |
currently as I have to do something about the policy handle caching
issues.
--jerry
|
|
|
|
|
|
|
|
| |
prs_free_data() => prs_mem_free
prs_realloc_data => prs_grow
--jerry
|
|
|
|
|
|
|
|
| |
added a few more kfunctions from TNG for rpcclient
--jerry
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
and a few changes to ntdomain for rpcclient printing functions
--jerry
|
|
|
|
|
|
|
| |
currently. More to come later.
--jerry
|