1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

4076 Commits

Author SHA1 Message Date
Gerald Carter
233b074f49 More functions merged from TNG for rpcclient. They don't all work
currently as I have to do something about the policy handle caching
issues.



--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
3d00e969df cleaned up access to prs_struct variables. Replaced all calls
prs_free_data() => prs_mem_free
	prs_realloc_data => prs_grow


--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
549d1d2621 removed references to loopback RPC connections.
added a few more kfunctions from TNG for rpcclient



--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
3bc9af4c1d removed prs_data(), prs_free_data(), and prs_realloc_data()
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.
0001-01-01 00:00:00 +00:00
Gerald Carter
8599e1bc39 Fixed a bug in cmd_interp.c where if user%pass was entered on
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
0001-01-01 00:00:00 +00:00
Gerald Carter
eb3f545f54 make proto
and a few changes to ntdomain for rpcclient printing functions


--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
0faf21662d adding more spoolss command into rpcclient. They don't all work
currently.  More to come later.


--jerry
0001-01-01 00:00:00 +00:00
Tim Potter
363a9c45bf Don't return winbind groups or users when responding to samr_enum_dom_users
and samr_enum_dom_aliases commands.  Unfortunately the algorithm for
determining winbind groups from normal groups is simply to check for the
presence of the lp_winbind_separator() character.  )-:
0001-01-01 00:00:00 +00:00
Tim Potter
a895868912 Uninitialised variables. 0001-01-01 00:00:00 +00:00
Jean-François Micouleau
08b41bab17 we are now sure the printer_info_2 timestamp is updated everytime
required.

	J.F.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
493f7d11ac - The printers are indexed by the sharename in both get_a_printer() and
add_a_printer() now.

- correctly unpack the private part of a devmode and remove a memleak

- correctly retrieve the pair(value,data) for getprinterdata

- handle null devicemode in printer_info_2

I still have some bugs but I'm not crashing anymore NT4SP6 d/c build :-)


        J.F.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
d8656304d5 An improved version of the Negative Query Response fix. The earlier fix
only did a short-cut on an rcode of 3, which is 'name not found'.  This
does a short-cut on any non-zero rcode.  It also puts out a DEBUG message
(if DEBUGLEVEL is >= 3) detailing the error.

Chris -)-----
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
6ee63ecfa5 Typo. It said "DEGUG" in the comments. I dunno how to degug, or gug for
that matter.  crh
0001-01-01 00:00:00 +00:00
Gerald Carter
fb0e1fb9e3 #ifndef RPCCLIENT_TEST
use old prs_unistr()
#else
	use new prs_unistr() which handles UNMARSHALL
#endif /* RPCCLIENT_TEST */



jerry
0001-01-01 00:00:00 +00:00
Jeremy Allison
9bd64da1e2 Allow name lookup to fail and fall back to using the "Everyone" SID
as SD owner. Allows smbd to work without winbindd running.
Check for security implications !
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d85deb9e4e Add local fallback for name lookup if no winbindd running...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7a95c289cd Ensure correct driver paths are returned in INFO_2 struct.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
ae85cc43fe make proto 0001-01-01 00:00:00 +00:00
Gerald Carter
588aadb29f spoolenum commend (when compiled with the new prs_unistr())
now works.   :-)




jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
ebcb7473c6 Fixed a bug in parsing the command line.
jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
4f431ea1f5 included a a new prs_unistr(). Is currently #if'd out (denoted
by RPCCLIENT_TEST) in order to not break anything in the smbd
code (and to give time to review it).  Originally written by JF.
In effect, this checkin makes no changes to parse_prs.c at all.





jerry
0001-01-01 00:00:00 +00:00
Tim Potter
da67a5099e Added wbinfo and .libs 0001-01-01 00:00:00 +00:00
Tim Potter
898a483cda Fixes for various compile warnings on Solaris 8. 0001-01-01 00:00:00 +00:00
Tim Potter
f866c18f6b Moved winbind client functions from various odd locations to
nsswitch/wb_client.c

Merge of nsswitch/common.c rename to nsswitch/wb_common.c from TNG.
0001-01-01 00:00:00 +00:00
Tim Potter
5f355a2443 make proto 0001-01-01 00:00:00 +00:00
Tim Potter
2abce4dcfa Re-instated lanman printing security checks (oops).
A user can now pause, resume or delete their own job even if they don't
have the Manage Documents privilege.

Added call to se_access_check() for changing printer properties.  The Full
Access privilege is required for the user to perform this.

Several uninitialised variables and memory leaks plugged.

Modified default ACL created on new printers to be Everyone / Print instead
of Everyone / Full Access.  This required some random stuffing around with
the value of the revision field to correspond with the ACL that NT produces
when setting the same permission on the printer.

Fixed dodgy function call in printing/printfsp.c
0001-01-01 00:00:00 +00:00
Tim Potter
c1d242f1dd Spelling fixes. 0001-01-01 00:00:00 +00:00
Tim Potter
3ee111bff7 Fix for passing NULL pointer as an array parameter in
domain_client_validate()
0001-01-01 00:00:00 +00:00
Tim Potter
1478198b70 Added some useful debugging stuff.
Fixes for se_access_check() when you are the owner of the object.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
2bbd16903d Quick change to short-circuit WINS queries if the WINS server returns a
Negative Name Query Response.  We should't wait through the timeouts and
retry twice if we've been told "No Such Entry".
0001-01-01 00:00:00 +00:00
Gerald Carter
ddef41c134 Just a few changes due to bringing some partial files back
from TNG to HEAD.



--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
61d2aad5dc More rpcclient merge issues:
* 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
0001-01-01 00:00:00 +00:00
Gerald Carter
12e2a21e1b More rpcclient merge issues:
* 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
0001-01-01 00:00:00 +00:00
Jeremy Allison
4ff949228c printing/nt_printing.c: (From JF) use the driver name - already given to us.
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.
0001-01-01 00:00:00 +00:00
Tim Potter
bba912cad8 se_access_check() tests. 0001-01-01 00:00:00 +00:00
Tim Potter
e84607eedf Don't check NT permissions when printing from lanman. 0001-01-01 00:00:00 +00:00
Tim Potter
8d42661d42 Implemented NT printer descriptor checking. Yay!
User details are passed into the printing back end from the spoolss code.
For each print operation these details are checked using the
se_access_check() function using information from the winbind daemon.

Fixed bug in nt_printing_setsec() where the user and group SIDs were
trashed if the permissions were changed from NT.  It is necessary to merge
these sids from the previous value of the security descriptor before
storing it in the tdb.
0001-01-01 00:00:00 +00:00
Tim Potter
3c4a5f624b Moved authenticated pipe user details into a current_user struct. 0001-01-01 00:00:00 +00:00
Tim Potter
9245af1ea1 Moved printer ACE mask values from nt_printing.h to rpc_spoolss.h 0001-01-01 00:00:00 +00:00
Tim Potter
669bd8dc1a Include nss.h if present or define enough values to allow client access to
winbind.
0001-01-01 00:00:00 +00:00
Tim Potter
27d821913c Rewrite of se_access_check() function. Added comments and fixed a bunch of
bugs.  I think there is a problem though with the permissions granted when
SEC_RIGHTS_MAXIMUM_ALLOWED is passed as the permissions requested.
0001-01-01 00:00:00 +00:00
Tim Potter
a2751a269e Pass either an authenticated pipe or SMB user in a current_user struct down
to the printing back end functions.
0001-01-01 00:00:00 +00:00
Tim Potter
f357451374 Pass pipes_struct rather than vuid down to startdocprinter, setprinter and
setjob spoolss server commands.
0001-01-01 00:00:00 +00:00
Tim Potter
f49905e74c Added global_sid_NULL S-1-0-0 to list of global sids. 0001-01-01 00:00:00 +00:00
Tim Potter
dac9c934ac Make prototypes for functions returning an enum nss_status. 0001-01-01 00:00:00 +00:00
Tim Potter
79fb877bf1 Changed checking for WINBINDD_OK return value instead of NSS_STATUS_SUCCESS
when looking up sids from winbindd.
0001-01-01 00:00:00 +00:00
Tim Potter
539c32fa42 Moved lib/util_seaccess.o from LIB_OBJ to SMBD1_OBJ as it is only used by
smbd.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
bd323fa503 new protos 0001-01-01 00:00:00 +00:00
Andrew Tridgell
0afcc0d336 the smbw sample prog 0001-01-01 00:00:00 +00:00
Andrew Tridgell
a81371a4fd don't need shmem any more 0001-01-01 00:00:00 +00:00