1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

4257 Commits

Author SHA1 Message Date
Jeremy Allison
3d9b163655 Fixed overrun write error when using debuglevel > 50.
Jeremy.
-
Jeremy Allison
67b9d40e3d Fixed error returns for moving printer driver files around so generic
"Access denied" isn't always returned. More fixes found using Gerald's
wonderful Win32 test progs :-).
Jeremy.
-
Jeremy Allison
38fc56c843 Added vfs_unlink call to ensure vfs is used on unlink from client.
Jeremy.
-
Jeremy Allison
9890740121 Fix for bind interfaces only sometimes picking the wrong IP address
for a name query. From Steve Langasek <vorlon@netexpress.net>.
Jeremy.
-
Jeremy Allison
6d081a9017 Implemented AbortPrinter() from Gerald's Win32 test code. Just purge all
possible printjobs from that printer (I think this is correct).
Added error code returns for print_queue_XXX() functions.
Jeremy.
-
Gerald Carter
d09d8a3f4b missed removing the static declaration of strwicmp()
jerry
-
Gerald Carter
d59623dd92 make proto -
Gerald Carter
2d95c38f7e added -P (for no prompt) and -A <authfile> options
jerry
-
Gerald Carter
41bf133411 added a #define for SPOOLSSGETPRINTERDATAEX. Although we do not
support the RPC yte (win2k specific), I added it for documentation
purposes.



jerry
-
Gerald Carter
2ceb704c3d fixed previous bug spotted by Elrond in get_printerdrivernumber().
Thought I had already committed this.





jerry
-
Gerald Carter
e291500903 added -A <authfile> option to smbclient for the reading of username /
password credentials from a file.



--jerry
-
Gerald Carter
dfdca21bd9 needed to use strwicmp() in smbclient code, so I moved it to util_str.c
and made it non-static



--jerry
-
Gerald Carter
e89117f418 make rpcclent by default.
--jerry
-
Gerald Carter
d8dde169e7 added the -A <authfile> option for allowing the reading of user
name and password credentials from a file.  Designed for use
when needed to passwd credentials between scripts


--jerry
-
Gerald Carter
0202f7e249 first draft at rpcclient man page for HEAD branch. Taken heavily
from the man page in TNG.  Updated for newer spoolss commands.



jerry
-
Jeremy Allison
a2829febe1 This doesn't compile but is a placeholder for moving the UNIX
acl code over to POSIX acls.
Jeremy.
-
Jeremy Allison
2b6e3ed7a6 smbd/password.c: Fixed typo in Tim's new code that caused insure overrun error.
smbd/reply.c: Fixed lowercasing UNIX character set problem.
Jeremy.
-
Herb Lewis
7db533cb47 added a little description of useage and output format since this gives
more info than just what parameters are not supported by SWAT.
-
Gerald Carter
9fbcede92f fixed typos spotted by Ron Alexander <rcalex@home.com>
--jerry
-
Gerald Carter
eb20a2c6f4 script written by herb for reporting which smb.conf parameters
are in loarparm.c but not supported by SWAT.  I just thought it looked fun.
:-)



--jerry
-
Tim Potter
cb717b4a2b Merge bug - still getting used to dirdiff. -
Tim Potter
5aed84b749 Oops - missed a file. -
Tim Potter
567b0095b1 Merge from appliance branch. -
Andrew Tridgell
14e534a890 yipee!
The spoolss AddJob function has an [in,out] buffer not an [in] buffer
(despite the comment in the code to the contrary). Also, we must fail
this function - not just blindly reply "no problem" as AddJob should
always fail on non-local printers.

This fixes a bug where the "print test page" failed about half the
time. I suspect it will also fix a bunch of other intermittent spoolss
bugs where the client (incorrectly) tries to use the AddJob printing
interface.
-
Andrew Tridgell
f99f028c77 made reopen_logs() always re-open logs, not try and be smart about not
re-opening in some circumstances. This fixes a problem where a HUP
does not re-open logs and leaves the log open on a unlinked file.
-
Andrew Tridgell
311a4dfb9a arrgh.
whoever added "auto" parameters in loadparam only supported "True", "False"
and "Auto", and did not support "Yes" and "No" like booleans. This
means anyone using "preferred master = yes" didn't get what they
expected!
-
Jeremy Allison
85738b7ee1 vfs write data fix. Fix for name matching in addtosmbpass
Jeremy.
-
Tim Potter
5764e84c0e Replaced "\\MAILSLOT\\NET\\NETLOGON" with NET_LOGON_MAILSLOT constant. -
Andrew Tridgell
2520a0eff9 - fixed the %U macro so that the old (and documented) semantics work
again. This got broken with one of the substitute.c updates a couple
of months ago.

- also fixed %u to return the username from the current_user structure
  when called via a method that does not have direct access to the
  username. I cache the uidtoname() result to prevent thrashing nss.
-
Tim Potter
156e17dea4 Updated file with version in TNG. -
Jeremy Allison
28586c1dee Modified to use sid_to_uid and sid_to_gid. Now ready for POSIX ACL
code....
Jeremy.
-
Jeremy Allison
3514b5bb8f Tidied up some error returns from printing calls. Still need to map UNIX
errors to NT error for print job failure returns. Patch from John Reilly at HP.
Jeremy.
-
Jeremy Allison
e203324d4a Documentation on NT_USER_TOKEN. Requested by Sander.
Jeremy.
-
Jeremy Allison
81c5380f91 Added code to do SID to uid/gid conversion. Needed for ACL support.
Jeremy.
-
Tim Potter
6e0c9079c3 Patch from John Reilly <jreilly@hp.com> for not processing duplicate files
when moving printer driver to download area.
-
Jeremy Allison
bd844fcd30 Fix for safe_free freeing static strings. From Robert August Vincent, II.
Jeremy.
-
Luke Leighton
d3bc7cca99 oops. must return "" string and length zero when strlen(filebuf) == 0 -
Gerald Carter
4fad1fc28a fixed an off by one error where I was tromping on memory
when initializing a driver_info_3 struct.  See spoolss_addprinterdriver()



jerry
-
Gerald Carter
e682d6a599 fixed initialization errors (again!) I must have forgot to
check these in before.




jerry
-
Luke Leighton
24e0c8ef70 getfileline() - line with length of zero -> filebuf[strlen(filebuf)-1]
is NOT ok.
-
Gerald Carter
facef51be4 changing some debug message levels
j-
-
Gerald Carter
ac049f8bf3 Fix for Win9x driver downloads when information is
stored in the TDB.  See the message I posted about
this on samba-technical

* If the admin does not desire the new NT print driver
support, nothing needs to be done.  All existing
parameters work the same.

* If the admin wants to take advantage of NT printer
driver support but does not want to migrate the 9x drivers
to the new setup, the leave the existing printers.def
file.  When smbd attempts to locate a 9x driver for the
printer in the TDB and fails it will drop down to
using the printers.def (and all associated parameters).
The make_printerdef tool will also remain for backwards
compatibility but will be moved to the "this tool is the
old way of doing it" pile.

* If the admin installs a 9x driver for a printer on
a Samba host (in the printing TDB), this information will
take precedence and the three old printing parameters
will be ignored (including print driver location).

* If an admin wants to migrate the printers.def file into
the new setup, I can write a script to do this using
rpcclient.  The main problem is the driver namespace
(we need the NT driver name first in order to
be consistent).



jerry
-
Gerald Carter
b64ddbd1aa added comment for my own memory purposes
jerry
-
Gerald Carter
3b14487c7e hack for unmarshalling unistr's on machines with BIG_ENDIAN arch
I think we have a lot more of these bugs lurking (i'm fairly
confident of it).




jerry
-
Gerald Carter
65ee5f9b6e - fixed memcpy bug in copy_unistr2()
- init_unistr2_from_unistr() does not NULL terminate
  the buffer



--jerry
-
Gerald Carter
a606131508 fixed unitialized struct bug in enum_users (whatever it is called)
jerry
-
Gerald Carter
f00a330b3e fixed typo.
jerry
-
Gerald Carter
e17753c532 fixed error in [public] spotted by Ron Alexander <rcalex@home.com>
changed to read only = yes



jerry
-
Tim Potter
20a7fefee8 Merge of uninitialised variable fix from APPLIANCE_HEAD. -
Jeremy Allison
f94f37dcab Tidied up extra ()'s.
Jeremy
-