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

8460 Commits

Author SHA1 Message Date
Tim Potter
cc8dce0deb Moved function prototypes to py_common_proto.h
(This used to be commit f006bcf8e50e44b955678356039a6d6a7e16ab20)
2002-04-14 09:03:05 +00:00
Tim Potter
f143cb6144 Added copyright.
Added lookup_names() and lookup_sids() functions.
(This used to be commit 2d2c925014374605b29e052729e959c0fd690586)
2002-04-14 09:00:13 +00:00
Andrew Tridgell
a99e810bda it looks like it is possible for a w2k client to send a spnego auth without sending the negotiate - try to cope
(This used to be commit 95278aa41f654108d9d20cd0096a34caf175d32b)
2002-04-14 09:00:05 +00:00
Andrew Tridgell
24065c0bf5 win2000 does not check the permissions on the share directory on
tconx, so win2000 clients don't expect a permissions error in
tconx. We now match this behaviour, by only checking that the
directory exists during tconx and relying on the permissions on other
calls to protect directories
(This used to be commit 4fc476686476da31cc2b45badb05cb0765259f98)
2002-04-14 06:24:17 +00:00
Andrew Tridgell
a83a0ac9c5 pull_username() is a local function
(This used to be commit fbf154bcfb68b90eb43ada9de317c93f43711608)
2002-04-14 05:51:13 +00:00
Andrew Tridgell
58c7f38368 hanle the case where the win2000 username is completely different from
the pre-win2000 username
(This used to be commit aa139ba507e4b898377fdfc9b27f7febf029d5a4)
2002-04-14 05:46:23 +00:00
Andrew Tridgell
35bc06d35c modified the ADS backend to accept either the long or short versions
of long usernames (win2000 usernames can be longer than 20 characters)
(This used to be commit 0719e756f60950b9ec04450fda5cc3776752e9a9)
2002-04-14 05:14:50 +00:00
Tim Potter
c4e49dee7a Fixed debugs.
(This used to be commit 6d9336f3b9b205e5916424ee844658b445439fdb)
2002-04-14 04:58:49 +00:00
Tim Potter
f8b1f9608f Fixed comment.
(This used to be commit 06df6c79ae91cb4b1427a2a230fee288cff50e10)
2002-04-14 04:57:02 +00:00
Tim Potter
db32b9ceb7 Made a comment clearer.
(This used to be commit 703e0a6ce2d283349f64cba72b36c1bef6a0d806)
2002-04-14 04:55:18 +00:00
Tim Potter
d837a511e8 Generate proto for lsa.
Updated patch.
(This used to be commit 5dbd716b99c522eac89d9216eb4293084958b966)
2002-04-14 01:01:39 +00:00
Tim Potter
a160d7bbb1 Starting work on lsa module.
(This used to be commit 5c44397803622400390b13f1998b49f5da83d2a1)
2002-04-14 01:00:49 +00:00
Tim Potter
54bda76922 More open_pipe_creds() refactoring.
(This used to be commit 7f2c814237f1df7008c9a91b7cf3b1de01e6ed87)
2002-04-14 00:59:50 +00:00
Tim Potter
8d994f432d Moved open_pipe_creds() function to common file.
(This used to be commit 14e4d889a236dd9c2ba6db68b3133e44195b8a47)
2002-04-14 00:58:16 +00:00
Andrew Bartlett
35e8d461e9 As always, vance looks after the grammer... :-)
(This used to be commit 206f1158bd059de9bf4290935d131f42e4639f99)
2002-04-13 22:52:28 +00:00
Andrew Tridgell
7897bf7367 two time handling bugfixes
- the pending mtime overrides the current file time in setfileinfo

- a later wtime can override a mtime on setfileinfo

this fixes the date of file copies in win2000
(This used to be commit 79630bb2c0a99c961a0a1c67223899e39685ee2c)
2002-04-13 13:30:06 +00:00
Andrew Bartlett
81408df9cf Fix the build on platforms that use our internal popt.
(This used to be commit 3261a210dd0f89e3a8b8524747fa182bcc84bf9f)
2002-04-13 11:45:33 +00:00
Andrew Bartlett
d0821f99a6 Patch for arbitary smb.conf paramaters (to make the life of plugin maintainers
sane) from ab.

Attached is his e-mail to the samba-technical list, as it describes it rather
well:

Andrew Bartlett


Subject:
         [PATCH] Parametrical options support for Samba 3.0
    Date:
         Fri, 12 Apr 2002 19:13:13 +0300
   From:
         Alexander Bokovoy <a.bokovoy@sam-solutions.net>
     To:
         samba-technical@samba.org
     CC:
         tridge@samba.org

Greetings!

Attached patch makes possible arbitrary options to be specified in
smb.conf and later queried from VFS modules (and other places)
without problems. Below such options are called 'parametrical options'.

Patch introduces new notation to smb.conf option's language, as discussed
today with Tridgell on @samba-technical:

        TYPE: OPTION = VALUE

Colon sign is important here, it is what distinguishes parametrical
options from ones hardcoded in param/loadparm.c.

TYPE is 'option domain', OPTION is option name itself.

In order to access values of parametrical options, lp_parm_string()
function was implemented:

char *lp_parm_string(const char *servicename, const char *type, const char
*option);

This function accepts service name, type and option name, and returns
value of option or NULL if this option is underfined. Service name can be
NULL, resulting in search in 'global' section only.

If option does not exist in specified service, 'global' section is
scanned. This allows propagation of globally specified options to all
services and later overloading of the option in some services.

Caution: 'TYPE: OPTION' combination is case sensitive.

So far, testparm is able to handle parametrical options, while SWAT
can't. Thus, everyone familiar with SWAT internals is welcomed to add
parametrical options support.
(This used to be commit bfd7cd43556bed3131d0d18869abfd1cbc30bcd0)
2002-04-13 10:52:31 +00:00
Andrew Bartlett
a015289589 Fix the compile-bug in pdb_ldap from my last patch.
Andrew Bartlett
(This used to be commit 81eaa7924b7bd3a13d049bce7fe7a16ab9174364)
2002-04-13 10:48:25 +00:00
Andrew Bartlett
076ba6981a Doco update from Hasch@t-online.de (Juergen Hasch)
(This used to be commit 1650bc969fbd36a02758fafd9addc66ea715e835)
2002-04-13 10:36:20 +00:00
Andrew Bartlett
a88ff199bc More updates from ctrlsoft. (Jelmer Vernooij <jelmer@nl.linux.org>)
Andrew Bartlett
(This used to be commit 012b3326c40ca0f8f4c7673310d73f695cc4f79b)
2002-04-13 10:32:09 +00:00
Andrew Bartlett
163a855d26 Better handling of uid/gid -> RID and RID -> uid/gid code.
All uids and gids must create valid RIDs, becouse other code expects this, and
can't handle the failure case. (ACL code in particular)

Allow admins to adjust the base of the RID algorithm, so avoid clashes with
users brought in from NT (for example).

Put all the algorithm code back in one place, so that this change is global.

Better coping with NULL sid pointers - but it still breaks a lot of stuff.

BONUS: manpage entry for new paramater :-)

counter based rids for normal users in tdbsam is disabled for the timebeing,
idra and I will work out some things here soon I hope.

Andrew Bartlett
(This used to be commit 5275c94cdf0c64f347d4282f47088d084b1a7ea5)
2002-04-13 09:35:52 +00:00
Andrew Bartlett
cc60b06983 This is the 'multiple pdb backends' patch from ctrlsoft, aka Jelmer Vernooij
<jelmer@nl.linux.org>.

This patch also includes major rework of pdbedit to use popt, and the addition
of -i paramter (allowing the user to specify which PDBs is being
operated on) and -e to export a pdb - useful for backup and testing etc.

Use of -i and -e gets us pdb2pdb functionality for transition between backends,
much like the sam2sam in TNG.

Andrew Bartlett
(This used to be commit c10def37f506d3f2bab442418ac08fdb62659b02)
2002-04-13 08:16:41 +00:00
Andrew Bartlett
2248a88909 Make our atomic increment code actually do this during its first/second run.
The previous code would return the same value for both the initial and second
call, only incrementing on later calls.

Andrew Bartlett
(This used to be commit a4594d9efeca1f67dea57be8323fb4bd986318ce)
2002-04-13 03:23:08 +00:00
Jeremy Allison
5c2dfd959c Tidy up winbindd debug. Added Bill Moran's hide unreadable fix.
Jeremy.
(This used to be commit a9895fcb30cdcb572cd254b0d370d79f95c7214d)
2002-04-13 02:24:07 +00:00
Andrew Tridgell
45b291b851 when background printing wasn't enabled printing was completely broken
as the pid was 0
(This used to be commit f16033635f5125758a3d2c3b0780d5bd2bd7bdbd)
2002-04-13 00:58:04 +00:00
Andrew Tridgell
d621bf11ea fixed the display of the 'size on disk' property of files from w2k.
(This used to be commit 699a1d9f46fcc9d6aad56ed1b44d1295ee828b2b)
2002-04-12 12:52:18 +00:00
Andrew Bartlett
f435873a6c Remove : from the list seperators, as this is used to seperate out components
in the passdb module selection (after the : you have the options).

Andrew Bartlett
(This used to be commit 6949b630f10ebb76e8e59ca7e832f53571f2c20a)
2002-04-12 08:22:50 +00:00
Andrew Tridgell
b78a3886a7 set the default hashing scheme in head to "hash2"
it seems to be a much better scheme
(This used to be commit c8e2250ab1eae3aebecd8669e63f95f8656ae361)
2002-04-12 04:17:29 +00:00
Andrew Tridgell
71c2943d34 nicer measurement of failures and collisions
(This used to be commit 61c61f6b4f22c1ef6f837145f5e05730706cc8d4)
2002-04-12 03:54:13 +00:00
Andrew Tridgell
a2d5f9a809 better mangling test. We now test that we can create by long name and
delete by short name, and that we can create by short name and delete
by long name

our old mangling code fails this test.

also tweaked the random filename generation to produce more likely
collisions
(This used to be commit 65609c52960c2b5938150a2fdb5290541f4e0225)
2002-04-12 03:42:44 +00:00
Andrew Tridgell
3067ec21fb - added a mangling test suite that measures the collision rate on
randomised filenames

- fixed several mangling bugs that the test suite pointed out
(This used to be commit 858fa7efc34f6e7cdf8500900aed3f7943c91348)
2002-04-12 03:26:19 +00:00
Andrew Bartlett
4c0399915c Much better support for both non-algorithic RIDs (where the RID is stored in
the passdb) and RIDs not in the passdb, due to being NIS users etc.

The main fix here is to add become_root()/unbecome_root() at critical places.

This (finally) fixes the bug where you could not see local users's names
in a file's security properties as non-root.  Tested.

The similar bug in uid_to_sid is also fixed, but is not (yet) Tested.

Andrew Bartlett
(This used to be commit 79327a305e20d78ab5ca21d01c39b5f49dc0d632)
2002-04-11 23:43:40 +00:00
Jeremy Allison
440a0099ea HP2500C driver writes devmode with private data that ends
on a 2 byte boundary. We then miss-parse the desired_access. Also added
other fixes to ensure we align after private data (discussed with Gerry).
Jeremy.
(This used to be commit 4369a58765f382e118e5393c805336484671cbf9)
2002-04-11 18:52:09 +00:00
Andrew Tridgell
5928c293ff added strndup() for systems that don't have it
(This used to be commit 7e92fb7453e4dbf1fe0c32c3dcc1e994cb95b5ea)
2002-04-11 15:27:22 +00:00
Andrew Tridgell
41b8137169 don't try to return a void
(This used to be commit 51b4de0ae3b05c4f34a645ae9c6e395bc37226e6)
2002-04-11 14:59:27 +00:00
Andrew Tridgell
560a51f46b possibly fix the 15000 user problem
I think its caused by a rpc operation failing and us giving invalid
data back to the cache layer. Using talloc_zero() should solve this.
(This used to be commit dfa990170bb9a665ba48443258e2a87f50baa75c)
2002-04-11 14:30:31 +00:00
Andrew Tridgell
5c0e682c4a - the 36^6 hash space gives 31 bits, not 32 bits. We need to mask the
hash to suit
- the prefix ends at the last dot, not the first
(This used to be commit 91a3ccd3e790f980421c1ee93388e19e87026b29)
2002-04-11 14:20:18 +00:00
Andrew Tridgell
1ed0c5ea70 a few debug statements (disabled)
(This used to be commit 582f753eac7a111a93a8d6c049398a0998af848f)
2002-04-11 14:03:30 +00:00
Andrew Tridgell
4c889cb8b6 don't treat '.' as FLAG_ASCII, instead handle it separately
(This used to be commit ecdddd674f2ffad16eaa01a68c9c91ff3b355b3f)
2002-04-11 13:35:28 +00:00
Andrew Tridgell
bf9cb3c5f3 - tidier flag checking code
- finished the is_mangled() function
(This used to be commit 128bec2071d640c775b58322256ac6bb03363741)
2002-04-11 12:14:55 +00:00
Andrew Tridgell
ef88357403 added some more comments
(This used to be commit 8d6f2e239940cbac44f6f0e9d584a47553acbc56)
2002-04-11 11:46:42 +00:00
Andrew Tridgell
b1f04740ad some optimisations to the new mangling system
(This used to be commit 30b35d0c1f41f72ebe230905f76db8807802a6cc)
2002-04-11 10:52:59 +00:00
Andrew Tridgell
714518e550 this adds a completely new hash based mangling scheme
the hash for this scheme is *much* larger (approximately 31 bits) and
the code is written to be very fast, correctly handling multibyte
while not doing any actual multi-byte conversions in the vast majority
of cases

you can select this scheme using "mangling method = hash2", although I
may make it the default if it works out well.
(This used to be commit bb173c1a7e2408ced967ebac40b5e3f852ccd3a1)
2002-04-11 09:56:38 +00:00
Tim Potter
60fd2ec8cc Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.

Also added get_debuglevel() and set_debuglevel() functions.

Make open_pipe_creds() accept None as a anonymous credential.
(This used to be commit 094a51edb9369f5c493bddfdc98347431bea3c2d)
2002-04-11 05:05:08 +00:00
Tim Potter
d0e6af62d6 Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.

Also added get_debuglevel() and set_debuglevel() functions.
(This used to be commit 6c7b5e15c22119623ee959267d2755e21193bc4b)
2002-04-11 05:04:05 +00:00
Tim Potter
ab5b6e255d Ignore bin directory.
(This used to be commit 8bb798ab3d7245e61530913d771d58f08e77a200)
2002-04-11 04:03:01 +00:00
Gerald Carter
e1e8c5b396 removed unnecessary memset
(This used to be commit 233a24792ea305e92c15b43f57839391ca91d1b6)
2002-04-11 03:15:02 +00:00
Jeremy Allison
8e2f3ec1d1 Correctly emulate NT in printer handle opening access rights.
Jeremy.
(This used to be commit 42ae2334f21402c347aee560f08fd8e730481169)
2002-04-11 02:59:31 +00:00
Andrew Tridgell
9cd0306baa This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
(This used to be commit be23d87a178e7d0691e7d942adf89bb3d2d533c2)
2002-04-11 02:20:56 +00:00