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

6343 Commits

Author SHA1 Message Date
Martin Pool
806ebe9240 Add a very trivial talloc torture program, bin/talloctort. Not built
by default.
(This used to be commit e3390669958f01672f5638ebf975e8bd4fd67665)
2001-12-19 04:46:35 +00:00
Jeremy Allison
22f25edb8e Fix for extra capabilities from Urban Widmark <urban@teststation.com>.
Jeremy.
(This used to be commit e943ace4f0fc70476668b0445acd91314a2e2a01)
2001-12-19 03:14:54 +00:00
Jeremy Allison
9648cd0c0f Patch from dan_thibadeau@hp.com to allow domain set in authfile.
Jeremy.
(This used to be commit 5700cbbd3fc0175932890df5f5ceb4931ba50dd3)
2001-12-19 02:50:44 +00:00
Jean-François Micouleau
ea274ac97f added info level 1 to samr_query_alias()
(This used to be commit 589aa4fe226ee5bdae0a244631193714b0b556ac)
2001-12-19 00:15:29 +00:00
Jeremy Allison
dccc1ed3f8 Fixup JF's weird SID return :-).
Jeremy
(This used to be commit 7b8fb8d85c406b8755f60cf14dc2377bc59eda53)
2001-12-18 19:44:14 +00:00
Jeremy Allison
ed611ffe1a Tidyup utmp code to cope with hostname = NULL.
Jeremy
(This used to be commit 2a1b531a1c4f1a4772c95c867f35eac50ed1c7fa)
2001-12-18 08:19:02 +00:00
Andrew Tridgell
08bf73c326 fixed handling of empty or dead domain in wbinfo -g
(This used to be commit 2c54cfbc475cd22d0e906898a07d4e0576c64c80)
2001-12-18 06:22:15 +00:00
Tim Potter
f0e8a3d5e8 A fix to override the location of a user's home directory if it is
specified in the [homes] section of the smb.conf file.

Jeremy, can you take a look at this?  This is in response to someone on the
samba mailing list worrying about it.


Tim.

From: Phil Thompson <philnanne@mediaone.net>
To: samba@lists.samba.org
Subject: Different [homes] behavior in 2.2.2
X-Original-Date: Mon, 17 Dec 2001 23:09:28 -0500


Is it possible to configure samba to disregard the home directory in the
passwd file when using [homes]?  Even though an alternate "path" is set
in [homes], the service fails since the unix home directory is invalid
(nonexistent) on the server.

[...]

This behavior of validating the user's home dir as set in the passwd
files appears to be new
in 2.2.2 and the latest CVS. Anyway to work around this?
(This used to be commit c15dec74a360c6b20f536708e00e61d1d27dcbfc)
2001-12-18 06:11:32 +00:00
Tim Potter
7cb202e33c Fixed uninitialised variable warning.
(This used to be commit 5095941dcb312d75c232d15232d5998ca05b632f)
2001-12-18 05:08:48 +00:00
Tim Potter
95a4903b20 Removed unused function, delete_fn()
(This used to be commit f26e8205cff63967b9c1659b8e6ad71cbe36dace)
2001-12-18 05:04:09 +00:00
Tim Potter
140f1ccf1f Fixed bad args to debug statements.
(This used to be commit 5e0f0716ca9826de110fd9eeaf231970e7c19b42)
2001-12-18 05:00:07 +00:00
Jeremy Allison
5d3b81dede I'm pretty sure we need to return our netbios name for LSA_QUERY_INFO
level 5 when we're a standalone server. This makes the security dialogs
return correct info. JF - please check !
Jeremy.
(This used to be commit dd13daf52bc96637ef3d40920cbd3bcadb7e08f5)
2001-12-18 02:17:46 +00:00
Jeremy Allison
2a6eeff2a7 Return NT_STATUS_OBJECT_NOT_FOUND or ERRbadpipe if pipe name not found.
Jeremy.
(This used to be commit d5fdb1f096e8db3e9cf7a65ddb75f7cafd1958c0)
2001-12-18 02:09:57 +00:00
Jeremy Allison
0558e2c402 Fixed the bug with descending into mangled directories.
The problem is that name_map_mangle can *change* the length of a patchname.
Ensure that all the character pointer messing about can cope with changing
sizes of components. This code is too ugly to live.....
This also needs *lots* of testing.
Jeremy.
(This used to be commit 9f2b6a07429da5dec59e562fa5489b8079978677)
2001-12-18 01:26:54 +00:00
Jean-François Micouleau
e611111732 in lsa_query_info at level 5 in member mode, we must reply our machine
name and not our domain name.

I thought it has been already fixed !

	J.F.
(This used to be commit 1fbb01868b489c896ad1c65ded223999b0ee6013)
2001-12-18 00:32:45 +00:00
Jean-François Micouleau
a94ff206c6 fixing bug I introduced.
J.F.
(This used to be commit 49764852c516a22fba84d6289c93bed0e5da1c7e)
2001-12-18 00:30:25 +00:00
Jean-François Micouleau
9fc3e980e9 initialise strings
(This used to be commit cb61606b8e2852779a03dab3f99a8886edd7a97f)
2001-12-18 00:27:46 +00:00
Jean-François Micouleau
6e76486505 there is no unknown field in LSA_SEC_QOS
some cleanup of the lsa_open_policy and lsa_open_policy2 parser. the
length fields are not correct but that's what NT send. We don't anymore
underflow or overflow the decoding.

added the domain admins group to the default SD.

we are now checking the desired access flag in the lsa_open_policy_X()
calls and in most functions also.

        J.F.
(This used to be commit a217c4e4ff4d13122703d22258792fe5e8e9f02f)
2001-12-17 23:03:23 +00:00
Jean-François Micouleau
a081ad3dae tidy up debug
J.F.
(This used to be commit c44f4e9e3368320b7559059dc214fa6c003d1187)
2001-12-17 22:57:06 +00:00
Jeremy Allison
02c3dcd8ee Made "hide unreadable" work much more reliably (just for Volker :-).
Jeremy.
(This used to be commit f6d6825bc86662d54ff3920d7d5390d151f34b0f)
2001-12-17 19:16:22 +00:00
Jim McDonough
db9d6374a3 make sure we pass the lm and nt data in the right order. They were swapped, and somehow this worked when both were provided, but not when only one was.
(This used to be commit 477309b1e653761b291daa4693976d341880beab)
2001-12-17 18:53:57 +00:00
Andrew Tridgell
48c45486e3 allow selection of the organisational unit when joining a realm
(This used to be commit f1231c2b54cac9d4fda7fa9d45fd329f1fd7b779)
2001-12-17 11:16:22 +00:00
Andrew Tridgell
cf5a038adf obey "use mmap" on case tables
(This used to be commit 505a1bdd15313698a6024a847f3771ea30a51f89)
2001-12-17 11:13:57 +00:00
Andrew Tridgell
ed5db6cc45 removed unused variable
(This used to be commit bed269e6d4dc4c9622ec37f9a7e9e2b4dbbaee24)
2001-12-17 11:13:03 +00:00
Tim Potter
0be611c8dc Replaced some hardcoded hex numbers with constants.
Made a note about NOTIFY_OPTION_TYPE and NOTIFY_OPTION_TYPE_DATA - they are
actually one structure.  The latter is just the deferred referrant of the
former.
(This used to be commit b596c0b171b1fd0e25e52944c880e8a90bc10a2e)
2001-12-17 01:53:02 +00:00
Tim Potter
55e0930a29 Added some constants for registry data types.
(This used to be commit 6b20d863b75b2b27d8dd8683cc3dc4486b18ceff)
2001-12-17 01:45:20 +00:00
Jeremy Allison
28df80cf68 Moved fchown_acl change to the point where we *really* know if we
created the file or not.
Jeremy.
(This used to be commit 32dffa0ba792a81d89d06b527d82820b89507efd)
2001-12-16 23:44:38 +00:00
Jeremy Allison
0fd94a5c4b Ensured filetimes set (by name) after close. Ignore errors. This is the
correct way to ensure times set in 'pending modtime' and 'time close'
are always set correctly. Inspired by patch from Juergen Hasch.
Jeremy.
(This used to be commit 24053858543fa6c22c0c3222570109fbfdabab9e)
2001-12-16 21:04:19 +00:00
Jeremy Allison
9c1120faeb Allow HPUX to link with new ACL code.
Jeremy.
(This used to be commit ad9a5a26e088f3fedce9562f688c518d610dbef2)
2001-12-15 02:46:48 +00:00
Jeremy Allison
ce1b141ec0 Added HPUX ACL code.
Jeremy.
(This used to be commit 6d03184f8c039ad81de47b5f3bde7dac5b2815ad)
2001-12-15 02:40:16 +00:00
Jeremy Allison
43e325d991 Added the group enum code from 2.2
Jeremy.
(This used to be commit 59e01a22c5cb1046758c8cd6b09333c19d6cd26e)
2001-12-14 21:51:09 +00:00
Jim McDonough
d6b2d28673 If domain SID can't be fetched, we shouldn't return NT_STATUS_NO_MEMORY. It causes a confusing client error. Changed to NT_STATUS_CANT_ACCESS_DOMAIN_INFO.
(This used to be commit 07ea83e6f0f03ba4706c98abb58346a4f4ec983c)
2001-12-14 21:37:56 +00:00
Gerald Carter
abcd1cad3a ChangeID fixe from APPLIANCE_HEAD
(This used to be commit 096d06a961e3a3e6f6952754875b83558448f449)
2001-12-14 20:38:04 +00:00
Simo Sorce
ee33b2d3e2 I see no reasons why we should limit username lenght while checking
see bug 22130

jeremy, probably this should be fixed also in 2_2
(This used to be commit d0614b2e660122c57a660977f554799d08b35ab6)
2001-12-14 18:49:02 +00:00
Jean-François Micouleau
689144c631 add lsa_query_secobj server code. level 4 is the ACL, level 1 is the
owner. that's basic stuff.

got the POLICY_ define from TNG but they are also in an include file in
the NT SDK.

	J.F.
(This used to be commit 84289a9bf42847981926e198ad36c050904fa9ed)
2001-12-14 17:31:48 +00:00
Jeremy Allison
968e2a2976 Updated Solaris link options from DaveCB.
Jeremy.
(This used to be commit 064a3e0fc406d5ab408da0fbfbf68c89ce8defdd)
2001-12-14 16:31:41 +00:00
Jean-François Micouleau
21e3bbbea7 Rafal (mimir) patch for trusts r.
(This used to be commit c26623671e2b0b2e80c6d6383a99880c4f439f04)
2001-12-14 14:35:38 +00:00
Tim Potter
14d7f43590 FALSE -> False
(This used to be commit dbdbf7cd077a8a20610ee2c62240170b420ebe6c)
2001-12-14 04:43:31 +00:00
Tim Potter
f46eb14806 Display a nice error message if the user%password specified for net rpc
join does not have administrator privileges.
(This used to be commit af24b1036c8ceaa37e6b68ac988401846c5c7fe4)
2001-12-14 03:55:44 +00:00
Tim Potter
69e0fe9972 Display a nice error message for NT_STATUS_LOGON_FAILURE in connect_to_ipc()
(This used to be commit 60eb4dc7b1114275f035d27a890e0301a65e0e42)
2001-12-14 03:55:09 +00:00
Jim McDonough
fefd9a9243 More help/messages/formatting cleanup.
(This used to be commit 882e5e3bb815e02407ecf6f689ffe5bb618845e8)
2001-12-14 02:45:13 +00:00
Tim Potter
c5564c55fc Merge from 2.2 to allow net rpc join -U to complete even if the workstation
account already exists.

# net rpc join --user=Administrator%password

It's kind of weird seeing the mix of NET.EXE style of options (net command
subcommand /arg:value) with the GNU-style long options.  I think it works.
(This used to be commit 3789c8c707acd9a4078d656c8de9ce1f4be9e388)
2001-12-14 02:17:18 +00:00
Jim McDonough
9f3b884d3f Restoration of at least some help function and format. First round of cleanup. Printq function cannot exactly mimic windows output using d_printf...oh well. Add some more command-specific options back into help.
(This used to be commit e135320e0547581c7d38126647a91b874d152622)
2001-12-14 02:15:04 +00:00
Tim Potter
9f6b241175 Set the debuglevel after the call to lp_load() so the change sticks.
(This used to be commit 3c927e39e7354d2f65b3ff7148fc325b41552310)
2001-12-14 02:14:59 +00:00
Andrew Tridgell
d23723a3e4 don't use -u switch to /bin/date - too many systems don't honor it
(This used to be commit 0839cf03a92673b38f1afa103271c708fa7162a2)
2001-12-14 01:15:14 +00:00
Tim Potter
63bd99aec2 Added comment.
(This used to be commit 594634ff1a1d5f780ddb9909f5365ee3e420a76c)
2001-12-13 23:43:44 +00:00
Jeremy Allison
079a02b15e Patch for string legths from TAKAHASHI, Motonobu(monyo).
Jeremy.
(This used to be commit f0d8b7573fc74004131ba0a82dbd5e0007a524bf)
2001-12-13 23:43:15 +00:00
Jean-François Micouleau
9f59fc64b8 update the ldap support code. it compiles.
Ignacio you can update your howto ;-)

samsync: a small patch to try chaning challenges.

	J.F.
(This used to be commit c99bc305599698f2291efbfe20024355cb2bcde0)
2001-12-13 18:09:29 +00:00
Gerald Carter
037b40f01f merge from 2.2
(This used to be commit 5b4b3323a3fbabbb3c7db5eb3b11999bbde470b1)
2001-12-13 17:18:15 +00:00
Gerald Carter
4ad930ad5e merge from appliance_head
(This used to be commit 423554fd71b3c9718fc3a21006da9ce6371fc845)
2001-12-13 16:35:43 +00:00