1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

4015 Commits

Author SHA1 Message Date
Gerald Carter
098b7b378c 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
(This used to be commit a04ea15f72)
2000-07-03 04:24:31 +00:00
Tim Potter
877c91bfdd Renamed generic_request() to winbindd_request()
(This used to be commit d904195855)
2000-07-03 00:58:13 +00:00
Tim Potter
04f0b0da5f Re-ran autoconf
(This used to be commit 2003c11c3e)
2000-07-03 00:57:15 +00:00
Jean-François Micouleau
2d2b6a46f7 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.
(This used to be commit 5f2be8ba7d)
2000-07-01 16:40:10 +00:00
Jean-François Micouleau
104217f3b0 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.
(This used to be commit a7098c47b6)
2000-07-01 09:34:37 +00:00
Jeremy Allison
55f9dc2027 Removed unneccessary ()'s afer &'s that made it look like we
don't know how the C language works :-).
Jeremy
(This used to be commit d47329649d)
2000-07-01 05:44:49 +00:00
Tim Potter
1230fe46ae Merge from TNG.
(This used to be commit b46fc0ed04)
2000-06-30 06:48:47 +00:00
Tim Potter
f08e3c36b0 Added more args to smbclient wrapper - there's probably a better way
to do this.
(This used to be commit 8de200ecbc)
2000-06-30 06:18:42 +00:00
Tim Potter
41cffa8f3b Updated documentation for wbinfo and winbindd.
(This used to be commit 8b814d1bb1)
2000-06-30 06:10:36 +00:00
Jeremy Allison
eed5e03043 Fixed oops with missing MANGLE_PATH directive.
Jeremy.
(This used to be commit fb6b5a9645)
2000-06-30 01:07:26 +00:00
Andrew Tridgell
d52d29f1b3 simpler configure test
(This used to be commit 7752c14c31)
2000-06-29 08:23:56 +00:00
Andrew Tridgell
7d9b43c8e0 slightly saner defaults
(This used to be commit fae3acc574)
2000-06-29 08:22:00 +00:00
Jeremy Allison
774b06ee21 Tidy up current spool code - added some JRATEST ifdefs to allow
experimentation with what is making spoolss.exe crash - may be removed
later.
Jeremy.
(This used to be commit f3fe384dc3)
2000-06-29 00:52:40 +00:00
Jeremy Allison
8980d53e7c Removed extra uint32 field in auto-notify reply. This fixes some spoolss.exe
crashes but there are still more to work on.
Jeremy.
(This used to be commit aa49dc037f)
2000-06-28 16:52:59 +00:00
Jeremy Allison
36fd3866ef 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.
(This used to be commit 8c9ed87436)
2000-06-26 22:08:20 +00:00
Jeremy Allison
990b8e5f7f Fixed display of "Everyone" in SD's.
Jeremy.
(This used to be commit 3c7fdaa576)
2000-06-26 17:41:06 +00:00
Andrew Tridgell
bdb98d93f2 fixed size alignment in talloc
(This used to be commit 064cdb7ee6)
2000-06-26 08:18:42 +00:00
Jeremy Allison
ec1c58fcc0 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.
(This used to be commit 151b131ee0)
2000-06-24 00:15:08 +00:00
Jeremy Allison
a8c21a8e6b Fix a malloc of zero problem.
Jeremy.
(This used to be commit 2aa21db960)
2000-06-23 19:57:42 +00:00
Jeremy Allison
5dd2bd5076 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.
(This used to be commit edaf49c66d)
2000-06-23 17:31:38 +00:00
Tim Potter
8a62ee4974 Don't return a value for a void function.
(This used to be commit 66fd7da08f)
2000-06-23 07:02:59 +00:00
Tim Potter
a90b7ab61b Test harness stuff for compiling things.
(This used to be commit 0af2a1ea69)
2000-06-23 07:00:43 +00:00
Tim Potter
d4f652c945 make proto
(This used to be commit 927b7772a1)
2000-06-23 06:53:33 +00:00
Tim Potter
096127fb47 Some compile fixes.
(This used to be commit 4d0c09cb4f)
2000-06-23 06:47:11 +00:00
Tim Potter
be7ad004e0 Got a bit carried away deleting things.
(This used to be commit 211391d88e)
2000-06-23 06:43:08 +00:00
Tim Potter
e1b9e7cfff Removed unused variables.
(This used to be commit a75e738211)
2000-06-23 06:36:22 +00:00
Tim Potter
6468c757ff Added parenthesis around definition of PRINTER_ACE_PRINT.
(This used to be commit 0dbc680e34)
2000-06-23 06:31:45 +00:00
Tim Potter
0e4a583374 Added return for become_authenticated_pipe_user() function.
(This used to be commit d0f55e04c9)
2000-06-23 06:27:05 +00:00
Tim Potter
c4f74ddb83 Tests for new security context stuff.
(This used to be commit 85a68bc449)
2000-06-23 06:21:08 +00:00
Tim Potter
0c4d1e7e85 make proto
(This used to be commit 2d3312249b)
2000-06-23 06:20:03 +00:00
Tim Potter
d2e691280d Added MAX_SEC_CTX_DEPTH
(This used to be commit 2bf21395ba)
2000-06-23 06:19:26 +00:00
Tim Potter
2a1dbb0acd Delete OriginalDir stuff.
(This used to be commit 3d0f1845c8)
2000-06-23 05:57:48 +00:00
Tim Potter
dd4c0901b6 Moved some static functions to sec_ctx.c
Implemented become_root() and friends in terms of push/pop/set security
contexts.
(This used to be commit 0bcdcd0606)
2000-06-23 05:57:20 +00:00
Tim Potter
5d7c2db6f8 Added smbd/sec_ctx.o to smbd objects.
(This used to be commit 11897939bc)
2000-06-23 05:55:41 +00:00
Tim Potter
dbc0b86d16 Call init_sec_ctx() instead of init_uid().
Delete OriginalDir stuff.
(This used to be commit db5e6ad3a6)
2000-06-23 05:54:49 +00:00
Tim Potter
218653764f Removed save directory argument to become_root() calls. Probably most of
this stuff doesn't need to be done as root anyway.
(This used to be commit c3cad0ff64)
2000-06-23 05:53:18 +00:00
Tim Potter
8005c837f5 I've been working on refactoring some of the mess that is the become_user()
code.  This code is now implemented as a stack of security contexts, where
a security context is defined as a set of effective user, group and
supplementary group ids.

The following functions are implemented:

BOOL push_sec_ctx(void);

     Create a new security context on the stack which is the same as the
     current security context.

void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups);

     Set the current security context to a given set of user and group
     ids.

void set_root_sec_ctx(void);

     Set to uid = gid = 0.  No supplementary groups are set.

BOOL pop_sec_ctx(void);

     Pop a security context from the stack and restore the user and group
     permissions of the previous context.

void init_sec_ctx(void);

     Initialise the security context stack.  This must be called before any
     of the other operations are used or weird things may happen.

The idea is that there is a base security context which is either root or
some authenticated unix user.  Other security contexts can be pushed and
popped as needed for things like changing passwords, or rpc pipe operations
where the rpc pipe user is different from the smb user.
(This used to be commit 87c78d6d5a)
2000-06-23 05:49:11 +00:00
Gerald Carter
3396a1d978 just enough to get rpcclient to compile. Look for #if 0
blocks around a few unimplemented functions.  Also had to
add cli_reg.c to Makefile.in


--jerry
(This used to be commit 426c43fb51)
2000-06-23 00:09:21 +00:00
Jeremy Allison
eecab5c660 Changed enumports to show printernames as ports. In line with 'the grand plan' :-)
Gerald & I discussed with HP. More changes to follow.
Jeremy.
(This used to be commit 193a248bed)
2000-06-22 23:59:22 +00:00
Jeremy Allison
f9e9f98a4a lib/util_unistr.c: Removed ascii_to_unistr() as it does no codepage.
Removed unistr_to_ascii() as it was never used.
printing/nt_printing.c: Removed "DUMMY.XX" files.
rpc_server/srv_spoolss_nt.c: Use dos_PutUniCode() instead of ascii_to_unistr().
							Attempted to fix the "return value" size code based on J.F's
							comments. This needs looking at.
Jeremy.
(This used to be commit de99011bf3)
2000-06-22 01:39:17 +00:00
Andrew Tridgell
a7b5b10a0a fixed two minor bugs in new sys_select()
(This used to be commit 5afc5f5031)
2000-06-21 12:14:51 +00:00
Tim Potter
159aec63ae A neater way of solving the S_ISSOCK, S_ISFIFO problem.
Moved the S_* macros from smb.h to includes.h
(This used to be commit b37539e323)
2000-06-21 06:26:21 +00:00
Jeremy Allison
68b4dc2ad1 Changed default printer driver to "" from NULL.
Jeremy.
(This used to be commit 54bf7c12b8)
2000-06-21 02:24:59 +00:00
Jeremy Allison
69c75c8a16 Fixes for Win2k "add printer driver" INFO_LEVEL_6 was wrong, also some
memory fixes.
Jeremy.
(This used to be commit 2a9e645cbd)
2000-06-20 23:58:56 +00:00
Jeremy Allison
a69d47640c Fixes for IRIX kernel oplocks and systems that don't have nss.h
Jeremy.
(This used to be commit 711f15ac23)
2000-06-20 00:32:32 +00:00
Jeremy Allison
5e06151e4d Paranoia changes to ensure that anything touched by a signal handler
and the main code is declared as VOLATILE SIG_ATOMIC_T.
Jeremy.
(This used to be commit b737c784e3)
2000-06-19 21:30:27 +00:00
Andrew Tridgell
c89f1ae0cf reverted lukes changes in param/
apparently they were not deliberate, they were probably a result of
Luke accidentally copying a CVS directory from one spot to another in
error
(This used to be commit 2d35d0cf1d)
2000-06-16 23:57:09 +00:00
Luke Leighton
db2f46df1e more update.
(This used to be commit ac91ef3093)
2000-06-16 15:53:13 +00:00
Tim Potter
9b305b1543 Forgot pipes_struct conversion for api_samr_enum_dom_aliases()
(This used to be commit 66372765e7)
2000-06-16 08:47:52 +00:00
Tim Potter
7448a6d31e Whoops - dodgy make proto.
(This used to be commit 87cd080441)
2000-06-16 08:47:04 +00:00