1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

333 Commits

Author SHA1 Message Date
Tim Potter
7f92954145 Merge of secrets_init() paranoia fix from 2.2
(This used to be commit e24f6288b6)
2002-05-13 00:23:49 +00:00
Tim Potter
7f807117d7 Merge of Solaris winbindd fixes.
(This used to be commit 4bbc584e6c)
2002-05-13 00:06:35 +00:00
Tim Potter
d9cfe0f3eb Merge of lsa lookup names/sids patch from HEAD.
(This used to be commit e57c162897)
2002-04-15 05:02:22 +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 dfa990170b)
2002-04-11 14:30:31 +00:00
Tim Potter
9195f34e4a Moved definition of winbind username/password secrets into secrets.h
(This used to be commit b618b5943d)
2002-04-10 00:35:00 +00:00
Tim Potter
b10b3be01c Spelling.
(This used to be commit 423985ed56)
2002-04-07 23:41:55 +00:00
Tim Potter
f98b2faf99 Spelling.
(This used to be commit b43256df53)
2002-04-04 06:47:20 +00:00
Tim Potter
4b925288ef Call poptFreeContext() as appropriate.
Clean up exit path code.
(This used to be commit 41157400e3)
2002-04-04 06:40:17 +00:00
Jeremy Allison
464c120197 Fix up conversion code from old winbindd versions (some testing needed).
Added time based cache size check (#ifdef'ed out by default, just didn't
want to lose the code).
Jeremy.
(This used to be commit b2350ed36c)
2002-04-04 03:03:39 +00:00
Jeremy Allison
adc57a79d9 Fixed the handle leak in the connection management code (this code is crap
and should be rewritten, just not now... :-).
Jeremy.
(This used to be commit 5de792e7e9)
2002-04-04 02:39:57 +00:00
Andrew Bartlett
6a0def7559 More winbind for HPUX updates from Don Mccall. I think JRA has already
applied these to 2.2.

Andrew Bartlett
(This used to be commit 51fe3324dd)
2002-04-03 21:39:01 +00:00
Herb Lewis
93af72fe45 merge winbindd WINS changes from 2.2
(This used to be commit 205399dc17)
2002-03-29 15:37:39 +00:00
Tim Potter
57b81e1a36 Unblock sigusr1 on startup.
(This used to be commit f1cb5ff6c4)
2002-03-26 23:04:06 +00:00
Tim Potter
42cfc17700 Added code for smb messaging. winbindd now responds to the smbcontrol
ping, debug and pool-usage messages.
(This used to be commit 144f0481c8)
2002-03-26 22:33:06 +00:00
Jeremy Allison
25057f7fee Don't do a zero-length malloc (caught with dmalloc library).
Jeremy.
(This used to be commit 05f214202c)
2002-03-26 19:45:28 +00:00
Tim Potter
1d582af3c0 Spelling fixes.
(This used to be commit a5ac2ac4ad)
2002-03-24 23:25:05 +00:00
Andrew Bartlett
657a24f476 Various winbind updates:
- pam_winbind updates from vance, fixing a typo and making some the options
  work properly.

- Extra parinoia in the winbind connection loop

- Allow pam_winbind to compile on HP-UX (Don Mcall, more work to do).

- Fix up configure.in to use the same method for building the test .so
  as the Makefile uses.

Andrew Bartlett
(This used to be commit 8e705dd921)
2002-03-23 08:28:19 +00:00
Tim Potter
15bc8b1471 Make debug statment less confusing.
(This used to be commit 301a7f56dd)
2002-03-22 05:43:08 +00:00
Jeremy Allison
cd94f6cb63 Missed a couple of fetch/store_ints.
Jeremy.
(This used to be commit 51189e62a7)
2002-03-21 23:41:28 +00:00
Jeremy Allison
67d21b5a4b Make winbindd_idmap tdb endian independent. This is very important for
sharing between machines with rsync.
Finally removed tdb_store_int/tdb_fetch_int.
Now only tdb_store_int32/tdb_fetch_int32 which are endian independent
are allowed.
Jeremy.
(This used to be commit 1c4a00dcc1)
2002-03-21 23:39:17 +00:00
Jeremy Allison
42955a4d81 When upgrading from an old idmap tdb, remember to overwrite the reverse
mapping as well as the forward one. Found this in doing the backport to
2.2.x. This is *essential* to upgrade an old idmap file to a new one.
Jeremy.
(This used to be commit 980355de0c)
2002-03-21 23:19:17 +00:00
Andrew Tridgell
e76d514f57 fixed the secondary group mappings for ADS users
(This used to be commit be399f5823)
2002-03-21 02:28:23 +00:00
Tim Potter
97ec0686f1 Cache call to winbind separator.
Some random reformatting and cleanup.

Display output of wbinfo -s using actual winbind separator.
(This used to be commit 099f8c5dfd)
2002-03-20 03:54:47 +00:00
Tim Potter
9776d11ad4 Merge of Richard's lookupsid fix.
(This used to be commit 3c587384cb)
2002-03-20 00:56:36 +00:00
Andrew Tridgell
7b50eef89e updated winbindd to used paged ldap searches for all ldap queries
(This used to be commit 41e1560798)
2002-03-19 22:15:32 +00:00
Andrew Bartlett
462402fc09 Fix a double-free bug in wbinfo -t's call in winbindd.
I forgot to clean this up when netlogon move across to the connection cache
arrangement.

Also add some smb_panics to the connection_ok() code to try to catch this kind
of thing better in future.

Andrew Bartlett
(This used to be commit f4f23fad60)
2002-03-19 06:36:37 +00:00
Andrew Bartlett
4e6400f1ed Allow us to see the difference between these two errors. (We need to chase
down some bugs with it...).

Andrew Bartlett
(This used to be commit ef68b28fa0)
2002-03-18 10:53:02 +00:00
Tim Potter
ab13654dc9 Renamed get_nt_error_msg() to nt_errstr().
(This used to be commit 1f007d3ed4)
2002-03-17 04:36:35 +00:00
Andrew Tridgell
0800ce3269 enable locking on the winbindd cache tdb so it can be backed up and
manipulated externally
(This used to be commit 1ad1a025b3)
2002-03-15 09:21:28 +00:00
Andrew Tridgell
04b22713d0 added a -h usage option to winbindd
(This used to be commit d6a4a10f58)
2002-03-15 09:20:36 +00:00
Jeremy Allison
840279f342 Now we have reliable signals take SIGTERM inband.
Jeremy.
(This used to be commit cad82926a8)
2002-03-14 02:15:08 +00:00
Andrew Bartlett
0ecd78fb8c Fix typo in copyright
(This used to be commit 54e69ed20a)
2002-03-13 01:26:59 +00:00
Andrew Tridgell
08a0230855 fixed 2 reconnection bugs in the ADS backend support
(This used to be commit 1aaa2091d5)
2002-03-12 20:17:34 +00:00
Andrew Tridgell
f36deb7b21 get the test for disconnection the right way around!
(This used to be commit ed80311b41)
2002-03-12 18:47:27 +00:00
Tim Potter
40976c3bc6 Removed bogus calles to D() debugging function. Perhaps these should
be replaced by DEBUG() calls?
(This used to be commit 33dd07d1fc)
2002-03-11 23:59:20 +00:00
Andrew Tridgell
87bba35a62 always make winbindd try for the PDC first before trying for a BDC
this prevents propogation delays in the SAM between the PDC and BDCs
(This used to be commit 967cb3ed0c)
2002-03-11 22:25:14 +00:00
Andrew Tridgell
391db465c6 removed bogus prepend_domain() call which was screwing up getpwuid()
with the new default domain code
(This used to be commit 0f75b6bd5b)
2002-03-09 21:12:25 +00:00
Andrew Tridgell
b9becd752c prevent a segv when a trusted domain is unavailable at startup
(This used to be commit d5b5d3f840)
2002-03-09 19:37:57 +00:00
Andrew Tridgell
e1aed4f49c better detection of dead ADS connections, so we have some chance of
reconnecting
(This used to be commit 58b79c0dc8)
2002-03-09 19:36:53 +00:00
Andrew Tridgell
8e7e1fe9f8 nicer message for --sequence when the server is disconnected
(This used to be commit 233e8b7d44)
2002-03-06 19:48:09 +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 ac8c24a9a8)
2002-03-02 08:25:44 +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 5710e588ce)
2002-03-01 01:13:42 +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 cd3a7466db)
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 8ed49fe0df)
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 fe2db31485)
2002-02-27 23:51:25 +00:00
Tim Potter
25d8d308c8 make proto
(This used to be commit 98d3ea19b0)
2002-02-19 02:11:01 +00:00
Andrew Tridgell
ab02132b6c fixed a memory leak thanks to dleducq@arkoon.net
(This used to be commit e84c740017)
2002-02-18 11:39:36 +00:00
Andrew Bartlett
e91e0a83af Winbind cleanup.
This patch fixes the segfaults I introduced in the previous conneciton caching
patch.  It cleans up the connection cache a *lot* - in particular it adds
significant robustness to the operation.

If a the DC goes down, we no longer fail the next operation - the code checks
if the connection died during one of its own operations on the socket, and
restarts the conneciton as required.

There is still a memory leak in here somewhere - but this code also cleans up a
number of these.

Also added is the abilty to sepecify the domain of the 'get around restrict anonymous'
user that winbind uses.

Andrew Bartlett
(This used to be commit 92cbefdf27)
2002-02-15 13:28:59 +00:00
Andrew Bartlett
14e6be4975 A few small winbind updates:
Add a connection cache to the netlogon pipe.  This makes a *massive* difference
to the time-per-auth.  Also fix up *some* of the memory leaks in other
connection caches.

Add some debugging messages for the is_connected() code.  I'm thinking we
should get a client implementation of SMBecho and call it here - as it would
allow us to always know the DC is around before we start.

Down the debug level for some of the pam_winbind code - I'll probably down it
further when I'm finished debugging.

Andrew Bartlett
(This used to be commit 49d3e47666)
2002-02-11 01:29:07 +00:00
Andrew Bartlett
e32177ea9d Fix up some of the DEBUG lines in winbind_pam.c
(This used to be commit dfc8883305)
2002-02-08 06:43:55 +00:00