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

6938 Commits

Author SHA1 Message Date
Andrew Tridgell
1315c8c4cf allow setting of lock range and base in locktest
(This used to be commit 97993630add4e8965f0395f92d34b0e8a6d9b875)
2002-03-04 00:35:28 +00:00
Andrew Tridgell
c40d0d5783 added -k options for kerberos to smbtorture and locktest
(This used to be commit 46b89bc9979229abc6e9f2f8c585a22dd4f22902)
2002-03-04 00:24:24 +00:00
Tim Potter
52b3390ca6 Fixed typo for winbind on solaris and hpux.
I have to say that having to link in winbind_nss_solaris.o for hpux is
slightly dodgy...
(This used to be commit fd172ec603de590dae6c3a91c7baf39c0afebea8)
2002-03-03 22:49:08 +00:00
Andrew Tridgell
14b1ec7ccd make default unix charset UTF8
this means that we at least support all unicode chars by default
(This used to be commit 54a3f374496316ccc6d0e4aa2267963193690a23)
2002-03-03 21:38:56 +00:00
Andrew Tridgell
7e9553c168 handle clock skew in getatr test
(This used to be commit 64c0a5c4a0d879ce8f9517717a0cd54a75c20619)
2002-03-03 20:47:44 +00:00
Andrew Tridgell
a59893fc4b fixed -c option to NBENCH test
(This used to be commit f9e3b91f58df30440c8b90007997e012101235e3)
2002-03-03 20:31:35 +00:00
Andrew Bartlett
309818b2a1 Some more fixes to enusre we execute the same code pathes as before this
change, just in different packets.
(This used to be commit ffa6c61f0bb0c413d4bcc46da3bc879c40a40569)
2002-03-03 04:25:29 +00:00
Andrew Bartlett
670f78f501 Matching header files for the last netlogon cleanup.
Andrew Bartlett
(This used to be commit a9edcc1cb7c5f2692bc1931f0a2059a91891f178)
2002-03-03 04:01:49 +00:00
Andrew Bartlett
4941e64fe0 This patch allows NT4 domains to trust Samba.
Simply add an account (smbpasswd -a -i REMOTEDOM) and join with 'user manager'
on the remote domain.

The only issue (at the auth level at least) that prevented NT4 domains from
trusting Samba was that our netlogon code was based on what appear to be
invalid assumptions.

The netlogon code appears to assume that the 'client name' specified
corrosponds to an account of the same form.  This doesn't apply in trusted
domains, becouse the account is in the form domain$

Now that we use the supplied account name, and no longer make our access
control checks at the challange stage (where this info is unavailable) we
match the Win2k behaviour for invalid machine logins, and don't need to know
the names of PDCs/BDCs in trusting domains.

We also kill off the 'you logged on with a machine account, use your user
account' error message, becouse the previous NT_STATUS return was compleatly
bogus.  (The ACCESS_DENIED we now return matches Win2k, and gives snane error
messages on the client).

TNG doesn't use this and has to do magic password syncs between the various
accounts for domain/pdc/bdc.  This patch feels like the much more natural way
of doing things, and has been mildly tested.

Andrew Bartlett
(This used to be commit 542673fcd6654a1d0966dddadde177a4c4ce135d)
2002-03-03 03:56:53 +00:00
Simo Sorce
81f66464b0 compile fix from vance
(This used to be commit b6d62b8b2e0d72b0588fbe10b12c3877feb5ca71)
2002-03-02 19:06:15 +00:00
Andrew Bartlett
f0765f4efe Move these inside the #ifdef to fix the compile on non-LDAPsam systems.
(This used to be commit 75f72f0b6a698e462a0567674613319dde789084)
2002-03-02 12:30:06 +00:00
Andrew Bartlett
72c49d2c09 This is now unused
(This used to be commit 6c5052a1a9e47c2efe0d5e84bee05ae335d79e60)
2002-03-02 10:54:56 +00:00
Andrew Bartlett
2ef9be9a99 This patch merges my private LDAP tree into HEAD.
The main change here is to move ldap into the new pluggable passdb subsystem
and to take the LDAP location as a 'location' paramter on the 'passdb backend'
line in the smb.conf.  This is an LDAP URL, parsed by OpenLDAP where supported,
and by hand where it isn't.

It also adds the ldap user suffix and ldap machine suffix smb.conf options,
so that machines added to the LDAP dir don't get mixed in with people.

Non-unix account support is also added.  This means that machines don't need to
be in /etc/passwd or in nss_ldap's scope.

This code has stood up well under my production environment, so it relitivly
well tested.

I'm commiting this now becouse others have shown interest in using it, and
there is no point 'hording' the code :-).

Andrew Bartlett
(This used to be commit cd5234d7dd7309d88944b83d807c1f1c2ca0460a)
2002-03-02 10:16:28 +00:00
Andrew Bartlett
f4f43fc940 more const
(This used to be commit f0b16b7b515296d0e687e084564fe0718f189dc8)
2002-03-02 09:15:56 +00:00
Andrew Bartlett
81b2d66c97 Allow Samba to trust NT4 Domains.
This commit builds on the auth subsystem to give Samba support for trusting NT4
domains.  It is off by default, but is enabled by adding 'trustdomain' to the
'auth methods' smb.conf paramater.

Tested against NT4 only - there are still some issues with the join code for
Win2k servers (spnego stuff).

The main work TODO involves enumerating the trusted domains (including the RPC
calls to match), and getting winbind to run on the PDC correctly.

Similarly, work remains on getting NT4 to trust Samba domains.

Andrew Bartlett
(This used to be commit ac8c24a9a888a3f916e8b40238b936e6ad743ef7)
2002-03-02 08:25:44 +00:00
Andrew Bartlett
53d0c9c79f Remove util_list.h, as its matching .c file has already gone, and nobody is
using it anymore.  This also removes an early #include of smb.h, making it
slightly easier to track whats being included where.

Andrew Bartlett
(This used to be commit 9d25e3023272a55a39f80305f0f336c655833d55)
2002-03-02 05:35:10 +00:00
Andrew Bartlett
76864bb3f1 Missing include file update for the secrets.c trustdom changes
(This used to be commit e3585e3c2ce2a09453fa1b59a947eccd67dfb88a)
2002-03-02 05:23:06 +00:00
Andrew Bartlett
214307e4d9 Fix up the trusted domains secrets code so as to have a slight chance of
working.
(This used to be commit 4ecc170dcb84522135ddefb5f424cc756051a6d3)
2002-03-02 04:45:29 +00:00
Andrew Bartlett
90b6838751 And a little more const.
(This used to be commit 044391b5973f6070abf6ac185c74ffd713e933c5)
2002-03-02 04:44:24 +00:00
Andrew Bartlett
e51c3224d0 Add a dash of const here and there...
(This used to be commit 413a46292b4e963343abce2428955305052e9cb4)
2002-03-02 04:41:55 +00:00
Jeremy Allison
0bc19c0bdb Fix lseek-on-pipe problem in VFS (where it belongs IMHO).
Jeremy.
(This used to be commit ebef2e7bc87fcbae794426c39044a7d23f43722d)
2002-03-02 00:44:38 +00:00
Andrew Bartlett
a07e040c8c SECURITY FIXES:
Remove a stray 'unbecome_root()' in the ntdomain an auth failure case.

Only allow trust accounts to request a challange in srv_netlogon_nt.c.
Currently any user can be the 'machine' for the domain logon.  MERGE for 2.2.

Andrew Bartlett
(This used to be commit 0242d0e17827b05d8cd270f675d2595fa67fd5b9)
2002-03-01 22:45:23 +00:00
Jeremy Allison
c8e924c7a3 Added requested cast for splint.
Jeremy.
(This used to be commit 04965086711e9f794f0a0bcbfa0fd230e20b0cbe)
2002-03-01 22:02:53 +00:00
Jeremy Allison
3afe4729a2 Fixed EXTRA vs EXTGRA typo. Thanks Mike :-).
Jeremy.
(This used to be commit 56b1252ebc89d2b4ac54c3ee7e3c4bc3c3ec5d0f)
2002-03-01 19:30:34 +00:00
Gerald Carter
b6c3b6dd59 merge from 2.2
(This used to be commit 5b28a7c59c392c6352cb8915a13806ca772d8cac)
2002-03-01 15:17:10 +00:00
Andrew Bartlett
6ca1c47dfd Missed the Makefile.in update...
(This used to be commit 4f887f01e52b04d4cf4517aaefeae7042170a511)
2002-03-01 03:28:10 +00:00
Jeremy Allison
a93740935f Cause nmbd to take signal processing in-band, rather than in
signal handlers. THIS NEEDS TESTING !
Jeremy.
(This used to be commit 166d2a6144f929baecd83bdd855f6ada06cb51a6)
2002-03-01 02:57:52 +00:00
Andrew Bartlett
75de5a5dfa The beginning of trusted and trusting domain support from
Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl>

This adds the 'net' tools to manipulate the trusted domains.

Andrew Bartlett
(This used to be commit 770c8a31d9804d3339ffa0de8b5072a5c7eb02df)
2002-03-01 02:56:35 +00:00
Andrew Bartlett
cd76214b15 Another comment fix for mirmir
(This used to be commit 7412890adc8f3dfddfabba545003715816e262bc)
2002-03-01 02:54:04 +00:00
Andrew Bartlett
d79e11ad6d Various comment fixes from Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl>
(This used to be commit 3bf4b42771d115500941be374bfdd9b8c2fdba4a)
2002-03-01 01:24:30 +00:00
Andrew Bartlett
f8b06e0dab Move wbinfo over to d_printf(). Patch by Hasch@t-online.de (Juergen Hasch)
Andrew Bartlett
(This used to be commit 5710e588ce19ff8fa2493a8d0fdbb6b793fd7c09)
2002-03-01 01:13:42 +00:00
Andrew Bartlett
e4235f6b84 Fix up the pull_utf8_fstring/pstring functions, and add their push eqivilants.
patch by Hasch@t-online.de (Juergen Hasch)

Andrew Bartlett
(This used to be commit ba2570f518e07c95b952fb824a2d0b040b912bcc)
2002-03-01 01:11:02 +00:00
Jeremy Allison
2853554cdb Attempt to fix Solaris winbind nss build.
Jeremy.
(This used to be commit 10e3e6855be93b8c4d97d67a063d92ccee391fec)
2002-03-01 01:03:06 +00:00
Andrew Bartlett
121d3238d7 This should kill off the 'cannot convert' error messages on non-iconv hosts.
(This used to be commit 2a30960276ae65b60d01caf9464808d75a812e40)
2002-03-01 00:57:47 +00:00
Andrew Tridgell
5046ae9a67 enable locking on the idmap database to make it safe to dump/restore
it externally while winbindd is running
(This used to be commit cd3a7466dbf4491aba34197cd6f3cc4167c0c660)
2002-02-28 17:43:23 +00:00
Jeremy Allison
df43f3d410 Ensure that winbindd and smbd both use identical logic to find dc's.
Fix bug where zeroip addresses were being checked.
Jeremy.
(This used to be commit 8ed49fe0df201833329c17b2afe1e3aa70646558)
2002-02-28 01:05:15 +00:00
Andrew Tridgell
276ff4df82 this allows us to support foreign SIDs in winbindd and smbd
this means "xcopy /o" has a chance of working with ACLs that contain
ACEs that use SIDs that the Samba server has no knowledge of.

It's a bit hackish, Tim, can you look at my uid.c changes?
(This used to be commit fe2db3148587937aa7b674c1c99036d42a3776b3)
2002-02-27 23:51:25 +00:00
Jeremy Allison
9d975fa6bc Fix from JohnR - Fixed SetPrinterData(magic key) to support zero length DEVMODE as is the case with the
Okidata Okipage 20 PCLXL Advanced printer driver.
(This used to be commit 51c3d3536335a72aa264e3f4d62515f5c0b6d192)
2002-02-27 22:40:12 +00:00
Jeremy Allison
8071fb8c05 Patch for Domain users not showing up from "Ivan Zhakov" <vunny@mail.ru>.
Jeremy.
(This used to be commit 3f9063167f3fc9ae7e7fd753d76ece23c1d97800)
2002-02-27 22:02:05 +00:00
Jeremy Allison
2da4d64cfc Added "nt status support" parameter. Fix offline synchronisation.
Jeremy.
(This used to be commit 9243a9778e52999d5c62cba484640637b24994d8)
2002-02-27 21:46:53 +00:00
Tim Potter
9e2a06611d Fixed usage of uninitialised variable in strict_allocate_ftruncate()
(This used to be commit b1d56956fec0de0e8591d85eb5eeec939494e6d4)
2002-02-27 18:06:47 +00:00
Jeremy Allison
b06749d73c Memory leak on error condition fixed by Kian Win <codegrunt@rubbercookie.com>.
Jeremy.
(This used to be commit 9dae1398b45515e5b93de038ec18df297d73026d)
2002-02-27 17:48:45 +00:00
Jeremy Allison
c72d16a105 Fixed dumb typo caught by Herb.
Jeremy.
(This used to be commit f7c980d61439f42395a457a5b99b28f526cabe69)
2002-02-27 17:28:22 +00:00
Andrew Bartlett
14c6277840 This should fix up the level 0 'convert_string' debug messages that we have
been seing since the unicode conversion.  It looks like a simple oversight in
the move away from StrnCpy (which takes amount of space -1 as an arg) to
push_ascii etc which take the absolute amount of space.

Andrew Bartlett
(This used to be commit 4447c6bd4d9c273ef5bf4eb23726923ee58bf38d)
2002-02-27 13:18:51 +00:00
Andrew Bartlett
90d264fa76 "user doesn't exist" isn't worthy of a level 1 debug. Make it level 3.
(This used to be commit 339e3982bc1d2998022545e02456ec35c3b278a8)
2002-02-27 12:59:05 +00:00
Andrew Bartlett
b07cdd68b5 This apparently makes winbind work on Solaris again
(This used to be commit b179a5d85f2e364b26191adf0cb61fcf17ae7687)
2002-02-27 11:50:24 +00:00
Andrew Bartlett
f8711444cf Make this function static
(This used to be commit 85974e6c43b796649f04544eeffeba837cae963b)
2002-02-27 11:47:33 +00:00
Gerald Carter
588fbe8f0c fix a few defines
(This used to be commit 0a3363ae686205c416c75e16f8d6ee55dc4366b5)
2002-02-27 00:05:00 +00:00
Martin Pool
570cdd8529 FIXME: Use next_token rather than strtok!
(This used to be commit d56b8a30c5ca55b718ad706875aa6579a48a0768)
2002-02-26 23:22:02 +00:00
Herb Lewis
361d0f9f7b merge from 2.2 - fix parsing of options
(This used to be commit c849e93392e3206b010949566a65a339f5064031)
2002-02-26 20:04:54 +00:00