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

4175 Commits

Author SHA1 Message Date
Gerald Carter
5af82b6d09 cleaned up access to prs_struct variables. Replaced all calls
prs_free_data() => prs_mem_free
	prs_realloc_data => prs_grow


--jerry
(This used to be commit 3d00e969df1800dadbb91fd8c410e9ce87188551)
2000-07-14 17:01:49 +00:00
Gerald Carter
c27ec4bfa0 removed references to loopback RPC connections.
added a few more kfunctions from TNG for rpcclient



--jerry
(This used to be commit 549d1d262115aeb2cd4d3f0122a5771be17752bb)
2000-07-14 16:59:41 +00:00
Gerald Carter
2c46a26a8b 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.
(This used to be commit 3bc9af4c1dbdb664970541f6091982ffccc87b31)
2000-07-14 16:58:03 +00:00
Gerald Carter
02fd5b08b5 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
(This used to be commit 8599e1bc394b1caee2483ec72d439a34d3f30629)
2000-07-14 16:54:07 +00:00
Gerald Carter
7a88bb6baa make proto
and a few changes to ntdomain for rpcclient printing functions


--jerry
(This used to be commit eb3f545f54eabb8b2b9a735808ebf49808ea85eb)
2000-07-14 16:31:06 +00:00
Gerald Carter
fb7a24d8b4 adding more spoolss command into rpcclient. They don't all work
currently.  More to come later.


--jerry
(This used to be commit 0faf21662db5b24b7fd57736ea53772e3baca5df)
2000-07-14 16:29:22 +00:00
Tim Potter
f3494484cf 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.  )-:
(This used to be commit 363a9c45bf0a7d3266ccdf4eeb0b9f5e3d38389f)
2000-07-13 04:33:25 +00:00
Tim Potter
9e2b1074aa Uninitialised variables.
(This used to be commit a895868912a24589de3a904ca537cf3367a645bf)
2000-07-13 01:21:21 +00:00
Jean-François Micouleau
6c2242eade we are now sure the printer_info_2 timestamp is updated everytime
required.

	J.F.
(This used to be commit 08b41bab177affac088c981d7c620728e8e6e9b0)
2000-07-12 16:11:33 +00:00
Jean-François Micouleau
5813ecff99 - 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.
(This used to be commit 493f7d11acf753ba24c88e6cbb73d86a8595a66a)
2000-07-12 14:10:40 +00:00
Christopher R. Hertel
8edb4966ae 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 -)-----
(This used to be commit d8656304d51844335e72babe852673f2dececfdc)
2000-07-12 04:25:12 +00:00
Christopher R. Hertel
5301a09541 Typo. It said "DEGUG" in the comments. I dunno how to degug, or gug for
that matter.  crh
(This used to be commit 6ee63ecfa5f9c984f51c15597a50e085ab722e87)
2000-07-12 03:51:06 +00:00
Gerald Carter
9ab8dfa381 #ifndef RPCCLIENT_TEST
use old prs_unistr()
#else
	use new prs_unistr() which handles UNMARSHALL
#endif /* RPCCLIENT_TEST */



jerry
(This used to be commit fb0e1fb9e31db135eeb8e949a7ad0826906ba1ff)
2000-07-11 16:28:59 +00:00
Jeremy Allison
5d8a5d9d0d 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.
(This used to be commit 9bd64da1e26a1b4a2df2b0537feb604a40762bb1)
2000-07-11 01:05:24 +00:00
Jeremy Allison
9f12613904 Add local fallback for name lookup if no winbindd running...
Jeremy.
(This used to be commit d85deb9e4e9c9784006292d3cb5a6b7b408ff972)
2000-07-11 01:04:09 +00:00
Jeremy Allison
445e92eb01 Ensure correct driver paths are returned in INFO_2 struct.
Jeremy.
(This used to be commit 7a95c289cd0b4615d2a5aa8a148c767b57460ffa)
2000-07-10 22:30:13 +00:00
Gerald Carter
b53484427d make proto
(This used to be commit ae85cc43fec26be6184e863569a94cab0afc425a)
2000-07-10 19:58:18 +00:00
Gerald Carter
1c8c1c03a0 spoolenum commend (when compiled with the new prs_unistr())
now works.   :-)




jerry
(This used to be commit 588aadb29fbb7cc0e81ac19f95e97101a64dbd8e)
2000-07-10 19:57:30 +00:00
Gerald Carter
997e113a56 Fixed a bug in parsing the command line.
jerry
(This used to be commit ebcb7473c6b62266c30e276d02186d8e50a5629a)
2000-07-10 19:56:15 +00:00
Gerald Carter
64db2010fb 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
(This used to be commit 4f431ea1f5d1d3b868d0bb56a299070e608c2512)
2000-07-10 19:55:39 +00:00
Tim Potter
709059f5f1 Added wbinfo and .libs
(This used to be commit da67a5099ebfb68172c1c419103665f571e82157)
2000-07-10 06:42:47 +00:00
Tim Potter
b561c18597 Fixes for various compile warnings on Solaris 8.
(This used to be commit 898a483cdab1ed7d8ff902c0dc0e0620440ae4cd)
2000-07-10 06:41:04 +00:00
Tim Potter
64299375b5 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.
(This used to be commit f866c18f6be65db67d9d2a6c0b42e1af3b421e6c)
2000-07-10 05:40:43 +00:00
Tim Potter
520bb0d775 make proto
(This used to be commit 5f355a24430dcb260de52e8a0ca21e80cae53089)
2000-07-10 05:17:01 +00:00
Tim Potter
78a4848e8d 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
(This used to be commit 2abce4dcfa351051df6e5f789b34fa99c9b81c22)
2000-07-10 05:08:21 +00:00
Tim Potter
5af35320a9 Spelling fixes.
(This used to be commit c1d242f1dd5b6addbe5d2df22e4759f6682fd9ef)
2000-07-10 04:57:09 +00:00
Tim Potter
541303d969 Fix for passing NULL pointer as an array parameter in
domain_client_validate()
(This used to be commit 3ee111bff78826a5ee419554d4ef2b2b2d3ae7aa)
2000-07-10 04:56:30 +00:00
Tim Potter
8c0bb0c241 Added some useful debugging stuff.
Fixes for se_access_check() when you are the owner of the object.
(This used to be commit 1478198b709b26d0007a8ff0586c34fc6f37a9d2)
2000-07-10 04:54:09 +00:00
Christopher R. Hertel
119f965f49 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".
(This used to be commit 2bbd16903db02aacb729d1ad140056b180e2a776)
2000-07-09 02:10:24 +00:00
Gerald Carter
a3deb502e3 Just a few changes due to bringing some partial files back
from TNG to HEAD.



--jerry
(This used to be commit ddef41c13484f488657ea36a510b52cefc7c8643)
2000-07-07 06:24:16 +00:00
Gerald Carter
d2b40a7de2 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
(This used to be commit 61d2aad5dc2b212b11c981f1eca47efa627e9fc8)
2000-07-07 06:20:46 +00:00
Gerald Carter
9de93aa818 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
(This used to be commit 12e2a21e1bc4c6fa02606d21cea4cb5a8b4d41a9)
2000-07-07 06:18:00 +00:00
Jeremy Allison
89eafd3cef 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.
(This used to be commit 4ff949228c40b6abb2008df8db985562ac2895d2)
2000-07-06 23:31:46 +00:00
Tim Potter
7e7d0598c6 se_access_check() tests.
(This used to be commit bba912cad8dfcef3dbc1db020304ab29fd71d5cb)
2000-07-06 07:12:13 +00:00
Tim Potter
75dd5b5051 Don't check NT permissions when printing from lanman.
(This used to be commit e84607eedf3be454f8f709c70cafc5ded4ea951d)
2000-07-06 07:10:32 +00:00
Tim Potter
957aa91e9e 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.
(This used to be commit 8d42661d424d80e1048d08b5cad3281643231d62)
2000-07-06 07:06:05 +00:00
Tim Potter
96446651af Moved authenticated pipe user details into a current_user struct.
(This used to be commit 3c4a5f624bfa69eb81d998530d9227e158edd109)
2000-07-06 07:01:37 +00:00
Tim Potter
34abda02dd Moved printer ACE mask values from nt_printing.h to rpc_spoolss.h
(This used to be commit 9245af1ea18babae09a92af634428a63ec55438e)
2000-07-06 07:00:24 +00:00
Tim Potter
f1ccd14b42 Include nss.h if present or define enough values to allow client access to
winbind.
(This used to be commit 669bd8dc1ab4690cf21310fe0310f1716e4a0197)
2000-07-06 06:59:27 +00:00
Tim Potter
cfc7266a7b 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.
(This used to be commit 27d821913c87dddd44a0690f4b191c9d2445817e)
2000-07-06 06:57:22 +00:00
Tim Potter
d01839e49e Pass either an authenticated pipe or SMB user in a current_user struct down
to the printing back end functions.
(This used to be commit a2751a269e05d5e46d4b22d6082a5898cdb4526f)
2000-07-06 06:53:47 +00:00
Tim Potter
d4081ac703 Pass pipes_struct rather than vuid down to startdocprinter, setprinter and
setjob spoolss server commands.
(This used to be commit f35745137451f769a0723cb0665ba0b9d4801ad8)
2000-07-06 06:51:55 +00:00
Tim Potter
084af3c5be Added global_sid_NULL S-1-0-0 to list of global sids.
(This used to be commit f49905e74c6e3891b5816b136fd1d0d77c392e2f)
2000-07-06 06:48:54 +00:00
Tim Potter
dc7b20a47d Make prototypes for functions returning an enum nss_status.
(This used to be commit dac9c934ac3932fb9870417e8f712a880dd25e45)
2000-07-06 06:48:01 +00:00
Tim Potter
648f0849d6 Changed checking for WINBINDD_OK return value instead of NSS_STATUS_SUCCESS
when looking up sids from winbindd.
(This used to be commit 79fb877bf13ba462ad0a878d8975f8b5183e3ea3)
2000-07-06 06:47:38 +00:00
Tim Potter
01f7ba69ae Moved lib/util_seaccess.o from LIB_OBJ to SMBD1_OBJ as it is only used by
smbd.
(This used to be commit 539c32fa423bee9be34eeda96fad5398f7cf982b)
2000-07-06 06:43:30 +00:00
Andrew Tridgell
4b25fffe82 new protos
(This used to be commit bd323fa503b1ad7ab9ca35b2f93774541b02e8e3)
2000-07-06 03:54:22 +00:00
Andrew Tridgell
c1254449a2 the smbw sample prog
(This used to be commit 0afcc0d3368472ed4b49167dc4b7d907b0ccdc25)
2000-07-06 03:54:07 +00:00
Andrew Tridgell
a7f6c0a642 don't need shmem any more
(This used to be commit a81371a4fd6f7972b054bea90428d1d2fd6d1d22)
2000-07-06 03:53:49 +00:00
Andrew Tridgell
da74939852 wrote a little sample smbw program
build using "make bin/smbw_sample"

this is to show people how to use smbw
(This used to be commit 7d7ceaa9219ba88075cac23eb42b163903537c70)
2000-07-06 03:52:47 +00:00