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

4040 Commits

Author SHA1 Message Date
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
Andrew Tridgell
7d7ceaa921 wrote a little sample smbw program
build using "make bin/smbw_sample"

this is to show people how to use smbw
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ae80ca637c added -L option 0001-01-01 00:00:00 +00:00
Andrew Tridgell
614fd4119c got smbw to compile again on Linux 0001-01-01 00:00:00 +00:00
Tim Potter
873774e36d Bracked unbracketed macro arguments while looking for another bug. 0001-01-01 00:00:00 +00:00
Tim Potter
659e4d88ff Merge of wbinfo program from TNG. 0001-01-01 00:00:00 +00:00
Jean-François Micouleau
1fae158529 the dummy field in driver_info_6 is before the driver version and not
after.

I don't know who broke all that code, but I'm  ******** (censured)

	J.F.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
a882dd225e driver_info_6 had a prs_align() that should not have been there.
J.F.
0001-01-01 00:00:00 +00:00
Tim Potter
55c9bf124d Some more sec_ctx changes. Modified some fields in the pipe_struct
structure so authenticated pipe users can have their unix groups set when
become_authenticated_pipe_user() is called.
0001-01-01 00:00:00 +00:00
Gerald Carter
1b305cb342 first pass at merging rpcclient from TNG to HEAD. You can get a
semi-connection and a rpcclient prompt, but no functionality there yet.
Will be a few more days on that.

I need to clean this up a little.  Will work on that some more.

--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
269051aa0c first pass at merging rpcclient from TNG to HEAD. You can get a
semi-connection and a rpcclient prompt, but no functionality there yet.
Will be a few more days on that.

--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
cd7f0b0b91 first pass at merging rpcclient from TNG to HEAD. You can get a
semi-connection and a rpcclient prompt, but no functionality there yet.
Will be a few more days on that.

The changes to the header files were minor.  A few struct's and a few
additional fields to existing ones.  No deletions.  **minimal change
necessary** :-)  Well, maybe not minimal, but I tried.

All other programs compile, link and run ok from what I can tell so
I don;t think I broke anything.

--jerry
0001-01-01 00:00:00 +00:00
Gerald Carter
a04ea15f72 first pass at merging rpcclient from TNG to HEAD. You can get a
semi-connection and a rpcclient prompt, but no functionality there yet.
Will be a few more days on that.

These files changed only with the addition of some support functions
from TNG

--jerry
0001-01-01 00:00:00 +00:00
Tim Potter
d904195855 Renamed generic_request() to winbindd_request() 0001-01-01 00:00:00 +00:00
Tim Potter
2003c11c3e Re-ran autoconf 0001-01-01 00:00:00 +00:00
Jean-François Micouleau
5f2be8ba7d reverting Jeremy's changes to enumprinterdata.
Jeremy, the out_max_value_len and out_max_data_len were good. Your change
is breaking NT4SP6 checked version.

        J.F.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
a7098c47b6 Found that the minimum priority is 1 and not 0 on NT.
Changed back the devicemode's devicename to "\\server\printer".

I'm 100% sure it is correct, it's what NT sends on the wire. And that's
the printer's name and NOT the port's name as it has to be unique. It must
also be a UNC because it's a remote printer (remote for the client).

        J.F.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d47329649d Removed unneccessary ()'s afer &'s that made it look like we
don't know how the C language works :-).
Jeremy
0001-01-01 00:00:00 +00:00
Tim Potter
b46fc0ed04 Merge from TNG. 0001-01-01 00:00:00 +00:00
Tim Potter
8de200ecbc Added more args to smbclient wrapper - there's probably a better way
to do this.
0001-01-01 00:00:00 +00:00
Tim Potter
8b814d1bb1 Updated documentation for wbinfo and winbindd. 0001-01-01 00:00:00 +00:00
Jeremy Allison
fb6b5a9645 Fixed oops with missing MANGLE_PATH directive.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
7752c14c31 simpler configure test 0001-01-01 00:00:00 +00:00
Andrew Tridgell
fae3acc574 slightly saner defaults 0001-01-01 00:00:00 +00:00
Jeremy Allison
f3fe384dc3 Tidy up current spool code - added some JRATEST ifdefs to allow
experimentation with what is making spoolss.exe crash - may be removed
later.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
aa49dc037f Removed extra uint32 field in auto-notify reply. This fixes some spoolss.exe
crashes but there are still more to work on.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
8c9ed87436 Changing drivers using the properties page works - but only if getting/setting
security descriptors is disabled (as it is in this code).

If get/set sd's is enabled spooler.exe crashes on NT.

I'll investigate and fix that issue next.

Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
3c7fdaa576 Fixed display of "Everyone" in SD's.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
064cdb7ee6 fixed size alignment in talloc 0001-01-01 00:00:00 +00:00
Jeremy Allison
151b131ee0 lib/util_sid.c: Uninitialized memory read.
rpc_parse/parse_spoolss.c: Added note about prs_align when marshalling a SEC_DESC...
rpc_server/srv_lsa.c: Tim - your changes broke the display of the 'everyone' group
						when doing file access with no winbindd running. This is a partial
						fix - more when I have analysed this more.
rpc_server/srv_spoolss_nt.c: Fix for the 'change driver' problem ! Hurrah !

Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2aa21db960 Fix a malloc of zero problem.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
edaf49c66d lib/util_unistr.c: Off-by-one fix for dos_PutUniStr from John Reilly jreilly@hp.com.
Memory leak fix for new sec_ctx code (sorry Tim :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
66fd7da08f Don't return a value for a void function. 0001-01-01 00:00:00 +00:00
Tim Potter
0af2a1ea69 Test harness stuff for compiling things. 0001-01-01 00:00:00 +00:00
Tim Potter
927b7772a1 make proto 0001-01-01 00:00:00 +00:00
Tim Potter
4d0c09cb4f Some compile fixes. 0001-01-01 00:00:00 +00:00
Tim Potter
211391d88e Got a bit carried away deleting things. 0001-01-01 00:00:00 +00:00