1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

4251 Commits

Author SHA1 Message Date
Gerald Carter
d59623dd92 make proto 0001-01-01 00:00:00 +00:00
Gerald Carter
2d95c38f7e added -P (for no prompt) and -A <authfile> options
jerry
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Gerald Carter
2ceb704c3d fixed previous bug spotted by Elrond in get_printerdrivernumber().
Thought I had already committed this.





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



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



--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
e89117f418 make rpcclent by default.
--jerry
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Jeremy Allison
a2829febe1 This doesn't compile but is a placeholder for moving the UNIX
acl code over to POSIX acls.
Jeremy.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Gerald Carter
9fbcede92f fixed typos spotted by Ron Alexander <rcalex@home.com>
--jerry
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Tim Potter
cb717b4a2b Merge bug - still getting used to dirdiff. 0001-01-01 00:00:00 +00:00
Tim Potter
5aed84b749 Oops - missed a file. 0001-01-01 00:00:00 +00:00
Tim Potter
567b0095b1 Merge from appliance branch. 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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!
0001-01-01 00:00:00 +00:00
Jeremy Allison
85738b7ee1 vfs write data fix. Fix for name matching in addtosmbpass
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
5764e84c0e Replaced "\\MAILSLOT\\NET\\NETLOGON" with NET_LOGON_MAILSLOT constant. 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Tim Potter
156e17dea4 Updated file with version in TNG. 0001-01-01 00:00:00 +00:00
Jeremy Allison
28586c1dee Modified to use sid_to_uid and sid_to_gid. Now ready for POSIX ACL
code....
Jeremy.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e203324d4a Documentation on NT_USER_TOKEN. Requested by Sander.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
81c5380f91 Added code to do SID to uid/gid conversion. Needed for ACL support.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
6e0c9079c3 Patch from John Reilly <jreilly@hp.com> for not processing duplicate files
when moving printer driver to download area.
0001-01-01 00:00:00 +00:00
Jeremy Allison
bd844fcd30 Fix for safe_free freeing static strings. From Robert August Vincent, II.
Jeremy.
0001-01-01 00:00:00 +00:00
Luke Leighton
d3bc7cca99 oops. must return "" string and length zero when strlen(filebuf) == 0 0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Gerald Carter
e682d6a599 fixed initialization errors (again!) I must have forgot to
check these in before.




jerry
0001-01-01 00:00:00 +00:00
Luke Leighton
24e0c8ef70 getfileline() - line with length of zero -> filebuf[strlen(filebuf)-1]
is NOT ok.
0001-01-01 00:00:00 +00:00
Gerald Carter
facef51be4 changing some debug message levels
j-
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Gerald Carter
b64ddbd1aa added comment for my own memory purposes
jerry
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Gerald Carter
65ee5f9b6e - fixed memcpy bug in copy_unistr2()
- init_unistr2_from_unistr() does not NULL terminate
  the buffer



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



jerry
0001-01-01 00:00:00 +00:00
Tim Potter
20a7fefee8 Merge of uninitialised variable fix from APPLIANCE_HEAD. 0001-01-01 00:00:00 +00:00
Jeremy Allison
f94f37dcab Tidied up extra ()'s.
Jeremy
0001-01-01 00:00:00 +00:00
Jeremy Allison
be4e5eeb4f Reverted the change Luke made. Removed IS_BITS_SET_XX macros.
Do not re-add them. These macros are unsafe as they are not understood.
Change all TNG code using them to correct '&' and '|' please.
IS_BITS_SET_ALL was being used in cmd_interp.c when IS_BITS_SET_SOME
should have been used.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
604f6a34ef Merge. 0001-01-01 00:00:00 +00:00
Gerald Carter
bd4c83eb40 fixed a few bugs in new_smb_io_relarraystr().
Marshalling code path now uses spoolss_smb_io_unistr()
also caught a NULL pointer case.

i'll update TNG later.
0001-01-01 00:00:00 +00:00
Tim Potter
9af82423d2 NT printer permissions test program. 0001-01-01 00:00:00 +00:00
Luke Leighton
bc065f9597 restored IS_BITS_SET_xxx macros. 0001-01-01 00:00:00 +00:00
Luke Leighton
8fe195df0b hey, jerry: turns out you _have_ converted to get_safe_nt_errmsg!!!
[got confused with which way dirdiff was going :)].

... but you forgot to update TNG's lib/cmd_interp.c...
0001-01-01 00:00:00 +00:00