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

8766 Commits

Author SHA1 Message Date
Andrew Bartlett
a3c75aa406 This paragraph is irrelevent and misleading (needs fix for 2.2 as well)
(This used to be commit 3dd7fa7c57)
2002-06-09 13:16:45 +00:00
Andrew Bartlett
ae6bdb2cd5 This (hopefully) fixes a bug reported by Kai Krueger <kai@kruegernetz.de>
involving the use of lp_winbind_gid() without checking if they have been
set.

Also revert the 'clashing user' check back to a Get_Pwnam() - I probably should
never have changed it.

Andrew Bartlett
(This used to be commit 1d6ba40558)
2002-06-09 08:45:35 +00:00
Jeremy Allison
766a78e6b8 Ensure when allowing fchown with write access and dos filemodes that
we leave the gid alone.
Jeremy.
(This used to be commit 3f72910cf9)
2002-06-07 23:18:03 +00:00
Jeremy Allison
29744f4f4c Merge pidfile fix.
Jeremy.
(This used to be commit 2c1e787024)
2002-06-07 17:49:12 +00:00
Andrew Bartlett
c9910cec56 Fix comment
(This used to be commit 1996bcbe6a)
2002-06-07 14:36:41 +00:00
Andrew Bartlett
b0ffabdcca Globally replace 'global_sam_sid' with get_global_sam_sid(), a self
initialising function.  This patch thanks to the work of
"Stefan (metze) Metzmacher" <metze@metzemix.de>

This is partly to enable the transition to SIDs in the the passdb.

Andrew Bartlett
(This used to be commit 96afea638e)
2002-06-07 14:33:33 +00:00
Andrew Bartlett
39d0a1b832 Move the code from lib/util_sid.c that deals with the global_sam_sid into
a file that is linked with the passdb.

This is to avoid linking insanity when this global becomes a self-initing
function.
(This used to be commit 743afd96cb)
2002-06-07 12:45:51 +00:00
Andrew Bartlett
c3513e2aaa Add flags2 for security signitures
(This used to be commit 39c3f245f5)
2002-06-07 12:42:25 +00:00
Andrew Bartlett
d5154cb241 A couple of updates for the SmbEncrypt code, and some of its users.
(const, takes unix string as arg)

Also update cli_full_connection to take NULL pointers as 'undefined' correctly,
and therefore do its own lookup etc.  This what was intended, but previously
you needed to supply a 0.0.0.0 IP address.

Andrew Bartlett
(This used to be commit 8fb1a9c6ba)
2002-06-07 12:41:04 +00:00
Jeremy Allison
19c0588ea1 Allow sd_len to be zero on NT_TRANSACT_CREATE but not for set sd (helps
Novell client).
Jeremy.
(This used to be commit ac49fd297a)
2002-06-07 01:39:26 +00:00
Jeremy Allison
651efe158a Overly complex but neccessary fix for kernel oplock problems. The issue
is that there are some times when we should return an EINTR from a select,
some times when we should not. As we can take a signal at any time, we
have to eat EINTR's in some selects. This means we need to check for
kernel oplock breaks more often in the main loop, as well as add the
queuing mechanism needed for the changenotify code (due to the mistake
in understanding POSIX semantics w.r.t. setting a signal mask in a
signal handler). This code now passes all my tests.
However, (and IMHO and I know tridge disagrees) - the correct way to
fix this is to run with RT signals blocked and explicitly unblock
them just before the main select, block them after and then process
them all in one place. Just my 2cents :-).
Jeremy.
(This used to be commit a8c85372e2)
2002-06-06 23:55:41 +00:00
Gerald Carter
9595b60fe2 enable building of shared libsmbclient
(This used to be commit 24f127a58f)
2002-06-06 14:01:19 +00:00
Tim Potter
89e9f7530a Fix compile error - doh!
(This used to be commit e80e663706)
2002-06-06 01:34:04 +00:00
Tim Potter
617a551c42 Moved some notify related constants into srv_spoolss_nt.c since
they're only used there.

Added a PRINTER_NOTIFY_VERSION constant.
(This used to be commit 9d3933a592)
2002-06-06 01:19:56 +00:00
Tim Potter
bfa2dfaba8 Fixed out of date comment for _spoolss_rffpcnex()
(This used to be commit 7d9b8c58a6)
2002-06-06 00:59:52 +00:00
Shirish Kalele
a8a543778b Fix typo.
(This used to be commit b874c14a1d)
2002-06-05 18:37:15 +00:00
Gerald Carter
aed3d69bc5 merge from 2.2
(This used to be commit ce2ddb7041)
2002-06-05 18:30:07 +00:00
Jim McDonough
cef9484580 merge 390 kernel workaround from SAMBA_2_2.
(This used to be commit df78e76e0b)
2002-06-05 14:30:20 +00:00
Tim Potter
7841864940 Spelling fix.
(This used to be commit 39ec94bffe)
2002-06-05 07:11:22 +00:00
Tim Potter
97b94ce7e0 Store cache entry keys that have RID values in decimal to be
consistent with other keys.
(This used to be commit 1e5bdf974f)
2002-06-05 04:23:37 +00:00
Jeremy Allison
fe4cd9b427 Remove blocksignals call as it's never going to bloody work right...
Jeremy.
(This used to be commit db8932c297)
2002-06-05 01:47:28 +00:00
Jeremy Allison
08f0cbb33f Fix for Linux kernel bug where signal mask set within a signal handler
is being ignored on sighandler exit. This means we have to have a small
array of fd's, not a single one.
Jeremy.
(This used to be commit b06862e2de)
2002-06-05 00:05:05 +00:00
Andrew Bartlett
ebe58d8569 Update the SAMR pipe for more use of NTSTATUS and to talloc the stored list of
users/groups for better memory accounting.

Andrew Bartlett
(This used to be commit fe7c5efe91)
2002-06-04 23:10:02 +00:00
Tim Potter
984806f959 Store the key for a name to sid cache entry in upper case rather than
whatever case the request was made in.  This gets rid of duplicate
cache entries.

Also when doing a sid to name, prime the cache with the name to sid
mapping result.  We can't do the reverse as we don't know the correct
case of the name to store in the cache.
(This used to be commit f268b0d5fb)
2002-06-04 03:44:04 +00:00
Tim Potter
8e9a8b29f2 Fixed compiler warning.
(This used to be commit 361afd241b)
2002-06-04 03:19:20 +00:00
Tim Potter
57bfec68d5 Fixed some formatting.
(This used to be commit 25554b46de)
2002-06-04 01:45:59 +00:00
Tim Potter
3adb868e04 Fix long list scrolling bug.
Added some padding around the filter entry to make it look nicer.

When resizing the window the scrolling list should get bigger/smaller
not the filter entry widget.
(This used to be commit f504be133c)
2002-06-04 01:41:44 +00:00
Jim McDonough
b1eaa2f17e Move session gathering routine back into session.c so it can be called either
in RAP or RPC environment.
(This used to be commit 3eec0d64c7)
2002-06-03 22:15:46 +00:00
Jim McDonough
e142b4b324 Fix netsessenum RPC. Correctly respond with as much info as we can.
(This used to be commit c8781a3fda)
2002-06-03 22:14:43 +00:00
Jim McDonough
1ecee79d05 Add user name to netsessenum RPC to stop 1783 messages. Also fix where username was sent as machine name.
(This used to be commit 2b4a5b5666)
2002-06-03 22:13:41 +00:00
Jim McDonough
d4fa62868e Add user name to netsessenum RPC to stop 1783 messages
(This used to be commit 18854bcd2d)
2002-06-03 22:12:44 +00:00
Jim McDonough
9a2261a92a Since includes.h isn't included here, VA_COPY has to be defined here. I don't
see any include file that is guaranteed to be here, so I'm defining it
locally.  Fixes AIX and Solaris builds.
(This used to be commit ca6bb47c22)
2002-06-03 13:37:52 +00:00
Tim Potter
8c64bd92bf Added tdb_delete_by_string() function.
(This used to be commit 0cd3952f40)
2002-06-03 06:04:14 +00:00
John Terpstra
13abfb606f Add VFS Support
(This used to be commit c28343fd03)
2002-06-03 05:59:58 +00:00
Tim Potter
ce62a480e5 Removed unused function.
(This used to be commit f7e7595230)
2002-06-03 04:28:53 +00:00
Andrew Tridgell
0bb6053946 put the ifdef for HAVE_VA_COPY in one place rather than in lots of
functions
(This used to be commit 1cf3228fdc)
2002-06-03 03:07:24 +00:00
Andrew Tridgell
9401cdbb51 fixed some debug messages
(This used to be commit 8b5ac00ac6)
2002-06-03 03:04:35 +00:00
Tim Potter
c3bd192703 Restrict anonymous checks for the SAMR pipe. This is done by
returning access denied for a SAMR_CONNECT by an anonymous user which
seems to be the way 2K does it rather than blocking individual RPC
calls like NT.

Also checked is the SAMR_GET_DOM_PWINFO rpc which for some reason
doesn't require a policy handle to return information.  No idea what
it's actually used.
(This used to be commit 40c68fa85c)
2002-06-03 03:02:39 +00:00
Tim Potter
d706b5dc55 Move restrict anonymous checks into a general function called
pipe_access_check().  Eventually this can take a security descriptor
as an argument as well.
(This used to be commit 8bbdc674af)
2002-06-03 02:55:16 +00:00
Andrew Tridgell
d53b9f113a fixed a spelling mistake
(This used to be commit 5a04ea1f0c)
2002-06-03 02:46:25 +00:00
Andrew Tridgell
bdc9de5daf added a 'net ads search' command, similar to 'ldapsearch' but using the
Samba LDAP code.

I have found using 'ldapsearch' rather frustrating, particularly with
kerberos authentication. Using 'net ads search' makes it easier to
track down ADS problems.
(This used to be commit 55cad87424)
2002-06-03 02:43:06 +00:00
Tim Potter
15e5ef6ce8 Added getdompwinfo function.
(This used to be commit b3b3e45583)
2002-06-03 02:24:22 +00:00
Tim Potter
b433a90f02 Added cli_samr_get_dom_pwinfo() function.
Some reformatting.
(This used to be commit d6dd7c7b14)
2002-06-03 02:23:05 +00:00
Tim Potter
ef5e092bb9 Removed unused variable.
(This used to be commit a8b2e76c5b)
2002-06-03 02:20:56 +00:00
Tim Potter
ee2ef50a74 Fixed bogus alignment in unmarshalling of SAMR_GET_DOM_PWINFO reply.
(This used to be commit 2e25b5c309)
2002-06-03 02:13:46 +00:00
Tim Potter
3940a2fec8 The last element of the definitions of enums can't have a trailing
comma.  Only initialisers can have this in ANSI C.
(This used to be commit b6119f5835)
2002-06-02 23:23:16 +00:00
Jim McDonough
125432c73a Add remainder of net rpc file subcommands, and autoselect transport on
net file
(This used to be commit fd938eca21)
2002-06-01 01:03:04 +00:00
Jim McDonough
f2d37f907c Update for new interface to netfileenum
(This used to be commit c3921e3607)
2002-06-01 01:02:23 +00:00
Jim McDonough
4caf48a700 Add rpc for file close, expand file enum to take username
(This used to be commit 4b18a94590)
2002-06-01 01:02:04 +00:00
Jeremy Allison
6542738568 More cleanup work preparing for SMB signing.
Jeremy.
(This used to be commit 3c05f7c06f)
2002-06-01 00:10:08 +00:00