1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00

8721 Commits

Author SHA1 Message Date
Gerald Carter
366a649d04 merge from 2.2
(This used to be commit 30a0e72572b25ddd99438b92b8ddf7f06e9ad819)
2002-06-11 03:22:32 +00:00
Jeremy Allison
de581b91e9 Merge of Jerry's fix from 2.2.
Jeremy.
(This used to be commit 64af68924b8fc36caac3f978dc0f9deccc41e059)
2002-06-10 21:49:18 +00:00
Andrew Bartlett
959ff024da Remove "sids.h" as it really wasn't being used anywhere, and was exporting
the (now static) global_sam_sid.

The only place it was being used was to return global_sid_NULL to some
uid->sid functions - and I'm not convinced this is correct in any case.

Andrew Bartlett
(This used to be commit e2a76a7fc94dd59c09bba3cda91446fad9f8c0e0)
2002-06-10 12:27:05 +00:00
Andrew Bartlett
97a8dd6d9a With this file being automaticly regenerated, and cleaned up with 'make clean'
I think it should be removed from CVS.  This matches the other proto files.

Andrew Bartlett
(This used to be commit 5a8d573f1784b037fd848d85a96dabfebfad63fd)
2002-06-10 09:40:58 +00:00
Andrew Bartlett
e8361a4193 Fix up comment on netbios scopes, and remove paragraph about international
charsets, becouse it really don't apply well with Samba 3.0 and unicode.

Andrew Bartlett
(This used to be commit 43fdd20386a45587e7b739f5c48c9cddc5c98da3)
2002-06-09 13:31:23 +00:00
Andrew Bartlett
a3c75aa406 This paragraph is irrelevent and misleading (needs fix for 2.2 as well)
(This used to be commit 3dd7fa7c57bb1c1d47b2c70a0dd4b5f14c1ddeb2)
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 1d6ba405589cee4e1582bc91cf659b89564899d4)
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 3f72910cf954b127c0cc06d6616ca2b8cd0d41ad)
2002-06-07 23:18:03 +00:00
Jeremy Allison
29744f4f4c Merge pidfile fix.
Jeremy.
(This used to be commit 2c1e78702423ba17993975eb7f158058cc7f229f)
2002-06-07 17:49:12 +00:00
Andrew Bartlett
c9910cec56 Fix comment
(This used to be commit 1996bcbe6acae49e191363ee122b30e4e5d5e8a9)
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 96afea638e15d4cbadc57023a511094a770c6adc)
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 743afd96cb54b4966e3afad11ea987f968b98651)
2002-06-07 12:45:51 +00:00
Andrew Bartlett
c3513e2aaa Add flags2 for security signitures
(This used to be commit 39c3f245f5e5d5e7532f9097683e6af3190dc872)
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 8fb1a9c6ba07dbf04a6aa1e30fa7bbd4c676ed28)
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 ac49fd297acf27384a5e133a5fd7a32c1ba27ca6)
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 a8c85372e2826a07117c89b39270cde8641ce55d)
2002-06-06 23:55:41 +00:00
Gerald Carter
9595b60fe2 enable building of shared libsmbclient
(This used to be commit 24f127a58f66de9b8733bc3261212d01926d0a87)
2002-06-06 14:01:19 +00:00
Tim Potter
89e9f7530a Fix compile error - doh!
(This used to be commit e80e6637064a39635faba5311f774a90b1d5ab43)
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 9d3933a59219388c209d8be4ae6decfa337d229f)
2002-06-06 01:19:56 +00:00
Tim Potter
bfa2dfaba8 Fixed out of date comment for _spoolss_rffpcnex()
(This used to be commit 7d9b8c58a63cf20d00dd7cf88cfb82aed3a47d12)
2002-06-06 00:59:52 +00:00
Shirish Kalele
a8a543778b Fix typo.
(This used to be commit b874c14a1d3cd333aada5ee93da7a83c24c7b3d6)
2002-06-05 18:37:15 +00:00
Gerald Carter
aed3d69bc5 merge from 2.2
(This used to be commit ce2ddb70411b30a0d6b2d6dded13c3b94895c1dd)
2002-06-05 18:30:07 +00:00
Jim McDonough
cef9484580 merge 390 kernel workaround from SAMBA_2_2.
(This used to be commit df78e76e0b8e90430af37ce997bfc6b73c9d01d7)
2002-06-05 14:30:20 +00:00
Tim Potter
7841864940 Spelling fix.
(This used to be commit 39ec94bffe536de5950611d6e4b28621b6aff844)
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 1e5bdf974fb1e64b5f5b82e0e24eb97aeb229584)
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 db8932c297096e6e957677c4ed944e4c319db1d8)
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 b06862e2de8d3bafbc10a9807501ef5bf148a61c)
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 fe7c5efe91ab77784af9dbb56716170f4c6fd057)
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 f268b0d5fb811b364578b11a66ca69973717eea8)
2002-06-04 03:44:04 +00:00
Tim Potter
8e9a8b29f2 Fixed compiler warning.
(This used to be commit 361afd241beeda033068c7f3a976f3f69fa2ac33)
2002-06-04 03:19:20 +00:00
Tim Potter
57bfec68d5 Fixed some formatting.
(This used to be commit 25554b46ded273e8f4070f14661b691ccc9ddd17)
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 f504be133cd9659163a609eb11a09a36e56166ee)
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 3eec0d64c7c4592d4f0d74108fb0be2b7a22bde6)
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 c8781a3fdaa4d8cb81233582f29159ace7e436ac)
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 2b4a5b56664cf3c99682b64c0fc5e2ebebb749b7)
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 18854bcd2df88ab49c263c86d111a50d83411885)
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 ca6bb47c22385a2c32be6ac3f8d9ffbfda45359b)
2002-06-03 13:37:52 +00:00
Tim Potter
8c64bd92bf Added tdb_delete_by_string() function.
(This used to be commit 0cd3952f408e2fcd2c833b9039dff4392ac16cf7)
2002-06-03 06:04:14 +00:00
John Terpstra
13abfb606f Add VFS Support
(This used to be commit c28343fd033c7a805fad451dca39dfc627cee2c4)
2002-06-03 05:59:58 +00:00
Tim Potter
ce62a480e5 Removed unused function.
(This used to be commit f7e75952306296b11a859f425ff5ec7082239dc2)
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 1cf3228fdc20f0314d1f8e71ad710a5e548b3f72)
2002-06-03 03:07:24 +00:00
Andrew Tridgell
9401cdbb51 fixed some debug messages
(This used to be commit 8b5ac00ac60135f83145c65425d7b33a751a15b4)
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 40c68fa85c31c1baf7ba2c8ed62cd06c34711913)
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 8bbdc674afef32621bf473ba1af76bae7270b818)
2002-06-03 02:55:16 +00:00
Andrew Tridgell
d53b9f113a fixed a spelling mistake
(This used to be commit 5a04ea1f0c41965bc735f38f4892dc37571734d6)
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 55cad87424787fc5f140d307888f4c557dc2b345)
2002-06-03 02:43:06 +00:00
Tim Potter
15e5ef6ce8 Added getdompwinfo function.
(This used to be commit b3b3e45583718e5b034f6c67609523f35753c1a8)
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 d6dd7c7b14a4e3be4d7d435b6ac6bb8189070ff7)
2002-06-03 02:23:05 +00:00
Tim Potter
ef5e092bb9 Removed unused variable.
(This used to be commit a8b2e76c5b90d3dcd00f26462614f56936c13110)
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 2e25b5c3099e48869e83a1e03943d3cc2a875f24)
2002-06-03 02:13:46 +00:00