]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
18 years agor18191: Fix the online/offline state handling of winbindd.
Jeremy Allison [Wed, 6 Sep 2006 21:43:31 +0000 (21:43 +0000)] 
r18191: Fix the online/offline state handling of winbindd.
Instead of trying to do this in the winbindd_cache
entries, add a timed even handler to probe every
5 mins when disconnected.
Fix events to run all pending events, rather than
only one.
Jeremy.
(This used to be commit 7bfbe1b4fb9a91c6678035f220bbf0b4f5afdcac)

18 years agor18189: When tearing down a connection we can be harsher
Jeremy Allison [Wed, 6 Sep 2006 19:02:39 +0000 (19:02 +0000)] 
r18189: When tearing down a connection we can be harsher
with timeouts. Also, wait for 5 seconds not 10
on connecting to a DC.
Jeremy.
(This used to be commit 6792460ba6a198646404abae10979489ca03ca5c)

18 years agor18188: merge 3.0-libndr branch
Jelmer Vernooij [Wed, 6 Sep 2006 18:32:20 +0000 (18:32 +0000)] 
r18188: merge 3.0-libndr branch
(This used to be commit 1115745caed3093c25d6be01ffee21819fb0a675)

18 years agor18187: Replace copy of idl files with a svn:externals link.
Gerald Carter [Wed, 6 Sep 2006 18:13:16 +0000 (18:13 +0000)] 
r18187: Replace copy of idl files with a svn:externals link.
Will fix the build_idl.sh script to only process the files
we are concerned with in this branch.
(This used to be commit 647ed21b098e8fe6513040de7a540fe77fa0b37e)

18 years agor18185: add librpc/idl and relevant IDL files from SAMBA_4_0
Gerald Carter [Wed, 6 Sep 2006 18:04:51 +0000 (18:04 +0000)] 
r18185: add librpc/idl and relevant IDL files from SAMBA_4_0
(This used to be commit 6da1ef0f1cf4d47c26cdb850f01a3411dfd87350)

18 years agor18182: only grant privs to Administrators if privileges are enabled to avoid bopgus...
Gerald Carter [Wed, 6 Sep 2006 15:17:25 +0000 (15:17 +0000)] 
r18182: only grant privs to Administrators if privileges are enabled to avoid bopgus error messages
(This used to be commit 7d5356fd5db6ece2504c9c140d1f454056be7164)

18 years agor18177: Some build- and memleak-fixes for the (not build by default) ADS GPO
Günther Deschner [Wed, 6 Sep 2006 13:20:06 +0000 (13:20 +0000)] 
r18177: Some build- and memleak-fixes for the (not build by default) ADS GPO
routines.

Guenther
(This used to be commit 0ef504a0a6dc8f5db1dbc7f2410aa981e11fd56c)

18 years agor18175: Forgot to call asn1_free() in previous commit.
Günther Deschner [Wed, 6 Sep 2006 13:13:12 +0000 (13:13 +0000)] 
r18175: Forgot to call asn1_free() in previous commit.

Guenther
(This used to be commit af3779a51624977088c322ac98f52c02e9291b54)

18 years agor18174: Do not return "success" when we failed to write in the CLDAP code.
Günther Deschner [Wed, 6 Sep 2006 13:10:20 +0000 (13:10 +0000)] 
r18174: Do not return "success" when we failed to write in the CLDAP code.

Guenther
(This used to be commit 1fe4724f57f4f25ed486240cb1e741da60f0c997)

18 years agor18172: Just a little more verbosity in this debug statement.
Günther Deschner [Wed, 6 Sep 2006 12:34:00 +0000 (12:34 +0000)] 
r18172: Just a little more verbosity in this debug statement.

Guenther
(This used to be commit e852bc46464fe6dbdf8530f43fcb88fd2eafae67)

18 years agor18170: Make sure to actually get the printing data before trying to publish it
Günther Deschner [Wed, 6 Sep 2006 12:29:45 +0000 (12:29 +0000)] 
r18170: Make sure to actually get the printing data before trying to publish it
in AD.

Guenther
(This used to be commit 1bb29acb3bf40afdb5bc196ab7dbc642e2fdd680)

18 years agor18167: Adding DEBUG() to winbinds refresh seqnum to track down a failure.
Günther Deschner [Wed, 6 Sep 2006 12:21:13 +0000 (12:21 +0000)] 
r18167: Adding DEBUG() to winbinds refresh seqnum to track down a failure.

Guenther
(This used to be commit 8bf197ee1658616448dcb752f51743365070901a)

18 years agor18165: Fix memleaks.
Günther Deschner [Wed, 6 Sep 2006 12:14:58 +0000 (12:14 +0000)] 
r18165: Fix memleaks.

Guenther
(This used to be commit 6f301b2dc3dd64b4396e1d0307b3d539bda67d45)

18 years agor18162: Close socket when the CLDAP request has failed.
Günther Deschner [Wed, 6 Sep 2006 11:53:13 +0000 (11:53 +0000)] 
r18162: Close socket when the CLDAP request has failed.

Guenther
(This used to be commit 714ea3ceab714e23e97eb3e4d7261456a18abbac)

18 years agor18158: Stop winbindd from accumulating memory creds infinitely when doing
Günther Deschner [Wed, 6 Sep 2006 10:59:39 +0000 (10:59 +0000)] 
r18158: Stop winbindd from accumulating memory creds infinitely when doing
pam offline logons.

Guenther
(This used to be commit 95788cb291b89b431972e29e148b412992cc32a5)

18 years agor18128: Don't forget to set the ref count to 1 on a reference
Jeremy Allison [Wed, 6 Sep 2006 04:41:43 +0000 (04:41 +0000)] 
r18128: Don't forget to set the ref count to 1 on a reference
counted struct. Doh !
Jeremy.
(This used to be commit 8c78386e8da72108551cff72a6cc9da89264ddee)

18 years agor18116: Make max usershares an advisory limit, pointed out
Jeremy Allison [Wed, 6 Sep 2006 00:35:27 +0000 (00:35 +0000)] 
r18116: Make max usershares an advisory limit, pointed out
by Cybionet <cybionet@videotron.ca>.
Jeremy.
(This used to be commit fb755e83ee98fb830fb2340f175e8ca8d89c84d5)

18 years agor18107: Only do a SAF realm store if the logon was krb5.
Jeremy Allison [Tue, 5 Sep 2006 21:11:08 +0000 (21:11 +0000)] 
r18107: Only do a SAF realm store if the logon was krb5.
Jeremy.
(This used to be commit 131682461c87973ac9ce0e2d097ad4d7b7afb23c)

18 years agor18099: merge from samba4 to make tcc happy as the same struct name was used in multiple
Stefan Metzmacher [Tue, 5 Sep 2006 15:28:28 +0000 (15:28 +0000)] 
r18099: merge from samba4 to make tcc happy as the same struct name was used in multiple
places and that only works if they're all in a local scope

metze
(This used to be commit 027c7964eeb658d47e4aa2b974cc0c6089dbdba0)

18 years agor18070: be more verbose when errors happen
Stefan Metzmacher [Tue, 5 Sep 2006 10:37:18 +0000 (10:37 +0000)] 
r18070: be more verbose when errors happen

metze
(This used to be commit 9d71a037b10325dd5a258f59b8434b9fa158462e)

18 years agor18069: it isn't a good idea to run the PIPE_NUMBER test on a file share...
Stefan Metzmacher [Tue, 5 Sep 2006 10:29:16 +0000 (10:29 +0000)] 
r18069: it isn't a good idea to run the PIPE_NUMBER test on a file share...

But I wonder why it is so slow on my laptop and takes only 1 second on
the 'opi' build farm host.

I got only 2-3 opens per second...

metze
(This used to be commit d5c55e731adbd5f05fdea8550b64186b2ca7c2b8)

18 years agor18066: It's a bit pointless to send ourselves a signal just to check if we exist :-)
Volker Lendecke [Tue, 5 Sep 2006 07:43:49 +0000 (07:43 +0000)] 
r18066: It's a bit pointless to send ourselves a signal just to check if we exist :-)

Volker
(This used to be commit 44105ff2ffa726d2961cecdabbd2056f243ad914)

18 years agor18065: build talloctort as part of 'make torture'
Stefan Metzmacher [Tue, 5 Sep 2006 06:57:13 +0000 (06:57 +0000)] 
r18065: build talloctort as part of 'make torture'

metze
(This used to be commit 4c7f20c8120199e6eb05ae2a5c20590326fe154e)

18 years agor18063: When we get a successful connection using ADS,
Jeremy Allison [Tue, 5 Sep 2006 06:32:46 +0000 (06:32 +0000)] 
r18063: When we get a successful connection using ADS,
cache the SAF name under both the domain name
and the realm name, as we could be looking up
under both. Jerry please check.
Jeremy.
(This used to be commit 9d954d2deb46698b3834c7caf5ee0cfe628086b5)

18 years agor18062: Fix to ensure the name used by pam matches the
Jeremy Allison [Tue, 5 Sep 2006 05:28:31 +0000 (05:28 +0000)] 
r18062: Fix to ensure the name used by pam matches the
name that will be returned by winbindd. This
(should) fix the bug where the user logs in
with DOMAIN\user but winbindd returns only
"user" for the username due to 'winbind use
default domain' being set.
Jeremy.
(This used to be commit 1b2aa17354d50740902010f4a1e0217c8b1f7bdd)

18 years agor18049: Backport SAMBA_4_0 snprintf changes
Simo Sorce [Mon, 4 Sep 2006 19:53:30 +0000 (19:53 +0000)] 
r18049: Backport SAMBA_4_0 snprintf changes
(This used to be commit e4e31e5f0fd6e1acab6ba9f58dd136d9f359d6f7)

18 years agor18048: More nested structures
Volker Lendecke [Mon, 4 Sep 2006 19:50:30 +0000 (19:50 +0000)] 
r18048: More nested structures
(This used to be commit 20fcce5ceb701cfdcdc37172d7811bc6a7a554c3)

18 years agor18047: More C++ stuff
Volker Lendecke [Mon, 4 Sep 2006 19:47:48 +0000 (19:47 +0000)] 
r18047: More C++ stuff
(This used to be commit 86f4ca84f2df2aa8977eb24828e3aa840dda7201)

18 years agor18030: When compiling with C++, nested structs lead to nested class definitions...
Volker Lendecke [Mon, 4 Sep 2006 10:12:04 +0000 (10:12 +0000)] 
r18030: When compiling with C++, nested structs lead to nested class definitions which
are not compatible. I am aware that this would be a huge change in Samba4, but
I would like to see it in the code that is shared.

Stefan, when you do merge work, can you get this across to Samba4?

Thanks,

Volker
(This used to be commit 959ea2c7dc3ab42a06ac74dc4767d7d06e525cbc)

18 years agor18029: More C++ stuff
Volker Lendecke [Mon, 4 Sep 2006 09:51:47 +0000 (09:51 +0000)] 
r18029: More C++ stuff
(This used to be commit 089b51e28cc5e3674e4edf5464c7a15673c5ec0f)

18 years agor18028: Fix warnings on non-krb5 systems
Volker Lendecke [Mon, 4 Sep 2006 09:29:50 +0000 (09:29 +0000)] 
r18028: Fix warnings on non-krb5 systems
(This used to be commit 30df6cb65f2dcc1829ea362ea0bc2a5e10f9819a)

18 years agor18027: Fix some 64-bit warnings
Volker Lendecke [Mon, 4 Sep 2006 08:55:58 +0000 (08:55 +0000)] 
r18027: Fix some 64-bit warnings
(This used to be commit 54706285f7394e458b6481d0285f67ed225ea34e)

18 years agor18020: Fix SunX (with LDAP but without ADS)
Volker Lendecke [Sun, 3 Sep 2006 21:31:51 +0000 (21:31 +0000)] 
r18020: Fix SunX (with LDAP but without ADS)
(This used to be commit aa61a16c9f87d7ef002beda0b1795964e76f0ce5)

18 years agor18019: Fix a C++ warnings: Don't use void * in libads/ for LDAPMessage anymore.
Volker Lendecke [Sun, 3 Sep 2006 21:07:16 +0000 (21:07 +0000)] 
r18019: Fix a C++ warnings: Don't use void * in libads/ for LDAPMessage anymore.

Compiled it on systems with and without LDAP, I hope it does not break the
build farm too badly. If it does, I'll fix it tomorrow.

Volker
(This used to be commit b2ff9680ebe0979fbeef7f2dabc2e3f27c959d11)

18 years agor18016: OpenBSD apparently does not have ENOTSUP
Volker Lendecke [Sun, 3 Sep 2006 08:16:25 +0000 (08:16 +0000)] 
r18016: OpenBSD apparently does not have ENOTSUP
(This used to be commit 8e087b7e462aaa14e3918cdfe125f8375d4d5fd8)

18 years agor18015: Try and detect network failures immediately in
Jeremy Allison [Sun, 3 Sep 2006 03:46:07 +0000 (03:46 +0000)] 
r18015: Try and detect network failures immediately in
set_dc_type_and_flags().
Fix problem when DC is down in ads_connect, where
we fall back to NetBIOS and try exactly the same
IP addresses we just put in the negative connection
cache.... We can never succeed, so don't try lookups
a second time.
Jeremy.
(This used to be commit 2d28f3e94a1a87bc9e9ed6630ef48b1ce17022e8)

18 years agor18014: revert a possibly unnecessary change
Derrell Lipman [Sun, 3 Sep 2006 02:28:22 +0000 (02:28 +0000)] 
r18014: revert a possibly unnecessary change
(This used to be commit 9c93abf25e391348fe3864fca0079f231b89467c)

18 years agor18013: Fix for "bug" (enhancement) 3684.
Derrell Lipman [Sun, 3 Sep 2006 02:10:24 +0000 (02:10 +0000)] 
r18013: Fix for "bug" (enhancement) 3684.

Provide a new option to specify the share mode to be used when opening a
file.
(This used to be commit 9b6fee5f6f60638ed80fdedcce4b3d29b091f7aa)

18 years agor18012: Should fix bug 4018.
Derrell Lipman [Sun, 3 Sep 2006 01:37:26 +0000 (01:37 +0000)] 
r18012: Should fix bug 4018.

NetApp filers expect paths in Open AndX Request to have a leading slash.
Windows clients send the leading slash, so we should too.
(This used to be commit fc5b6e4bd8a67994b0c56d1223c74d064164420f)

18 years agor18011: Should fix bug 3835.
Derrell Lipman [Sun, 3 Sep 2006 00:50:34 +0000 (00:50 +0000)] 
r18011: Should fix bug 3835.

Jeremy: requires your eyes...

If the remote connection timed out while cli_list() was retrieving its list of
files, the error was not returned to the user, e.g. via smbc_opendir(), so the
user didn't have a way to know to set the timeout longer and try again.  This
problem would occur when a very large directory is being read with a too-small
timeout on the cli.

Jeremy, although there were a couple of areas that needed to be handled, I
needed to make one change that you should bless, in libsmb/clientgen.c.  It
was setting

  cli->smb_rw_error = smb_read_error;

but smb_read_error is zero, so this had no effect.  I'm now doing

  cli->smb_rw_error = READ_TIMEOUT;

instead, and according to the OP, these (cumulative) changes (in a slightly
different form) solve the problem.

Please confirm this smb_rw_error change will have no other adverse effects
that you can see.

Derrell
(This used to be commit fa664b24b829f973156486896575c1007b6d7b01)

18 years agor18010: Ensure we don't timeout twice to the same
Jeremy Allison [Sat, 2 Sep 2006 23:06:21 +0000 (23:06 +0000)] 
r18010: Ensure we don't timeout twice to the same
server in winbindd when it's down and listed
in the -ve connection cache. Fix memory leak,
reduce timeout for cldap calls - minimum 3 secs.
Jeremy.
(This used to be commit 10b32cb6de234fa17fdd691bb294864d4d40f782)

18 years agor18009: Fixes bug 4026.
Derrell Lipman [Sat, 2 Sep 2006 21:47:56 +0000 (21:47 +0000)] 
r18009: Fixes bug 4026.

This completes the work Jeremy began last week, disambiguating the meaning of
c_time.  (In POSIX terminology, c_time means "status Change time", not "create
time".)  All uses of c_time, a_time and m_time have now been replaced with
change_time, access_time, and write_time, and when creation time is intended,
create_time is used.

Additionally, the capability of setting and retrieving the create time have
been added to the smbc_setxattr() and smbc_getxattr() functions.  An example
of setting all four times can be seen with the program

  examples/libsmbclient/testacl

with the following command line similar to:

  testacl -f -S "system.*:CREATE_TIME:1000000000,ACCESS_TIME:1000000060,WRITE_TIME:1000000120,CHANGE_TIME:1000000180" 'smb://server/share/testfile.txt'

The -f option turns on the new mode which uses full time names in the
attribute specification (e.g. ACCESS_TIME vs A_TIME).
(This used to be commit 8e119b64f1d92026dda855d904be09912a40601c)

18 years agor18008: Ok, same fix as before. But this time also allocate the session key. This had
Volker Lendecke [Sat, 2 Sep 2006 21:41:28 +0000 (21:41 +0000)] 
r18008: Ok, same fix as before. But this time also allocate the session key. This had
worked in one test, no idea what memory I've overwritten that time. This time
it survives the unpatched w2k password change.

Volker
(This used to be commit bf7bf8e4e9a279fe3ef1e9ff655b12f65c3c3e67)

18 years agor18007: Ensure we don't namecache KDC entries with port 88
Jeremy Allison [Sat, 2 Sep 2006 20:17:05 +0000 (20:17 +0000)] 
r18007: Ensure we don't namecache KDC entries with port 88
as a generic DC (that should be the LDAP port).
Jeremy.
(This used to be commit f16b41c3c92b1af5cf25d8d244b1f551573cb076)

18 years agor18006: Actually a smaller change than it looks. Leverage
Jeremy Allison [Sat, 2 Sep 2006 19:27:44 +0000 (19:27 +0000)] 
r18006: Actually a smaller change than it looks. Leverage
the get_dc_list code to get the _kerberos. names
for site support. This way we don't depend on one
KDC to do ticket refresh. Even though we know it's
up when we add it, it may go down when we're trying
to refresh.
Jeremy.
(This used to be commit 77fe2a3d7418012a8dbfb6aaeb2a8dd57c6e1a5d)

18 years agor18005: The ntlmssp fix is not correct yet, working on it
Volker Lendecke [Sat, 2 Sep 2006 19:18:49 +0000 (19:18 +0000)] 
r18005: The ntlmssp fix is not correct yet, working on it
(This used to be commit 3e4da5541c24b3c3c5104fc5120a9be8a2f9ae69)

18 years agor18004: If you're writing out a krb5.conf, at least
Jeremy Allison [Sat, 2 Sep 2006 06:28:48 +0000 (06:28 +0000)] 
r18004: If you're writing out a krb5.conf, at least
get the syntax right... :-).
Jeremy.
(This used to be commit ecca467e463ef5c9acd48ee0a5f446755bd2f306)

18 years agor18003: Creating a directory and getting EEXIST isn't an error.
Jeremy Allison [Sat, 2 Sep 2006 05:55:47 +0000 (05:55 +0000)] 
r18003: Creating a directory and getting EEXIST isn't an error.
Jeremy.
(This used to be commit 515f86167bd9ec64170218f2ea4fb20d12a28365)

18 years agor18002: Improved debug.
Jeremy Allison [Sat, 2 Sep 2006 04:53:04 +0000 (04:53 +0000)] 
r18002: Improved debug.
Jeremy.
(This used to be commit 5f84c8c815ff0c941ef06d682dcc4be52e8867d2)

18 years agor18001: Proper error reporting on write/close fail.
Jeremy Allison [Sat, 2 Sep 2006 04:50:08 +0000 (04:50 +0000)] 
r18001: Proper error reporting on write/close fail.
Jeremy.
(This used to be commit ba311ac4eac060c12cafeeb8e458f45c2927aabf)

18 years agor18000: Get nelem/size args right for x_fwrite.
Jeremy Allison [Sat, 2 Sep 2006 04:46:27 +0000 (04:46 +0000)] 
r18000: Get nelem/size args right for x_fwrite.
Jeremy.
(This used to be commit f1c5409b9fa201c6d726857b02515167b0d7cef1)

18 years agor17999: No need to prevent others from reading. Use 755 instead
Jeremy Allison [Sat, 2 Sep 2006 03:42:55 +0000 (03:42 +0000)] 
r17999: No need to prevent others from reading. Use 755 instead
of 700, and 644 instead of 600. Reading might help
debugging.
Jeremy.
(This used to be commit 99f100cfecb53e00d17f7426251a3d4022db791a)

18 years agor17997: Ensure lockdir exists for winbindd. Store tmp
Jeremy Allison [Sat, 2 Sep 2006 02:04:41 +0000 (02:04 +0000)] 
r17997: Ensure lockdir exists for winbindd. Store tmp
krb5.conf files under lockdir, not privatedir.
Jeremy.
(This used to be commit c59eff3e53f5bfae3a9fb136e8566628339863ad)

18 years agor17996: Don't talloc free the memory then reference it. Doh !
Jeremy Allison [Sat, 2 Sep 2006 01:34:37 +0000 (01:34 +0000)] 
r17996: Don't talloc free the memory then reference it. Doh !
Jeremy.
(This used to be commit 188eb9794df265e8a55602d46b6bb4bd7daffa7f)

18 years agor17995: Ensure we create the domain-specific krb5 files in a
Jeremy Allison [Sat, 2 Sep 2006 01:33:13 +0000 (01:33 +0000)] 
r17995: Ensure we create the domain-specific krb5 files in a
separate directory.
Jeremy.
(This used to be commit 541594153b3a29a4ca30f1897264f2cc715b0698)

18 years agor17994: Add debugs that showed me why my site code wasn't
Jeremy Allison [Sat, 2 Sep 2006 01:23:08 +0000 (01:23 +0000)] 
r17994: Add debugs that showed me why my site code wasn't
working right. Don't update the server site when we
have a client one...
Jeremy.
(This used to be commit 7acbcf9a6c71f8e7f9167880488613c930cef4d9)

18 years agor17984: Ensure we never indirect a null opt_username if it wasn't
Jeremy Allison [Fri, 1 Sep 2006 04:41:03 +0000 (04:41 +0000)] 
r17984: Ensure we never indirect a null opt_username if it wasn't
specified.
Jeremy.
(This used to be commit 5d9bb91ab7bb080b56b25849e646143ab3ad8252)

18 years agor17981: Hmmm. Don't break helper functions that don't need
Jeremy Allison [Fri, 1 Sep 2006 04:33:33 +0000 (04:33 +0000)] 
r17981: Hmmm. Don't break helper functions that don't need
the username by forcing it to be specified. Still
split out domain \ user for the ones that do use
it.
Jeremy.
(This used to be commit c097e107391cd97dd829c19b672b6a7adece504f)

18 years agor17979: Make ntlm_auth more intelligent about figuring out it's
Jeremy Allison [Fri, 1 Sep 2006 04:15:04 +0000 (04:15 +0000)] 
r17979: Make ntlm_auth more intelligent about figuring out it's
domain and user args. if only given a parameter of the
form --username DOMAIN\user. When called by firefox
or other user apps they may not know what the domain
is (and they don't care). They just want to pass the
contents of $USERNAME without having to parse it
or guess a domain.
Jeremy.
(This used to be commit 5f51417916ed8bfc0dd08f44e669cb044fc83d01)

18 years agor17977: To be honest, I have NO idea whatsoever what this does, but it fixes what I
Volker Lendecke [Thu, 31 Aug 2006 20:45:29 +0000 (20:45 +0000)] 
r17977: To be honest, I have NO idea whatsoever what this does, but it fixes what I
have been able to reproduce with smbtorture4 for bug number 4059. It's too
late here now to check with W2k native, I'll do that tomorrow or over the
weekend. I'll then also check in a samba4 torture test to walk this from now
on.

Abartlet, can you do me a favor and look over this? It is a 1:1 copy of the
corresponding Samba4 code.

Thanks,

Volker
(This used to be commit fb5ebab873ba5196f35a9801ab2e21811b0fa8a0)

18 years agor17976: Fix typo
Volker Lendecke [Thu, 31 Aug 2006 20:37:16 +0000 (20:37 +0000)] 
r17976: Fix typo
(This used to be commit 410d6b9de2ad059fe239c6f155e80a81952ed701)

18 years agor17972: revert accidental commit to ads_verify_ticket()
Gerald Carter [Thu, 31 Aug 2006 18:33:50 +0000 (18:33 +0000)] 
r17972: revert accidental commit to ads_verify_ticket()
(This used to be commit 95f6b22e5179e1fb738c07112de2e06024fc9a83)

18 years agor17971: Disable storing SIDs in the S-1-22-1 and S-1-22-2 domain to the SID<->uid...
Gerald Carter [Thu, 31 Aug 2006 18:32:23 +0000 (18:32 +0000)] 
r17971: Disable storing SIDs in the S-1-22-1 and S-1-22-2 domain to the SID<->uid/gid cache.  FIxes a bug in token creation
(This used to be commit fa05708789654a8a34cb4a4068514a0b3d950653)

18 years agor17970: Add missing include-guards around ads.h and ads_cldap.h.
Jeremy Allison [Thu, 31 Aug 2006 16:26:32 +0000 (16:26 +0000)] 
r17970: Add missing include-guards around ads.h and ads_cldap.h.
Remove all reference to "Default-First-Site-Name" and
treat it like any other site.
Jeremy.
(This used to be commit 5ae3564d6844f44a6943b2028917bd457371af1e)

18 years agor17959: sync with samba4
Stefan Metzmacher [Thu, 31 Aug 2006 09:27:03 +0000 (09:27 +0000)] 
r17959: sync with samba4

metze
(This used to be commit 69a7a83b103adb1494c15a96318aa34ebd354749)

18 years agor17953: run bin/talloctort with samba3's make test
Stefan Metzmacher [Thu, 31 Aug 2006 07:43:57 +0000 (07:43 +0000)] 
r17953: run bin/talloctort with samba3's make test

metze
(This used to be commit 2d3ab069ddcb28ebd7cc72021a3510a606b50630)

18 years agor17951: sync talloctort.c with samba4
Stefan Metzmacher [Thu, 31 Aug 2006 07:42:47 +0000 (07:42 +0000)] 
r17951: sync talloctort.c with samba4

metze
(This used to be commit f862195efd2b8c1137ae8e0cb8cb252dcf4f19b6)

18 years agor17949: change the comment, talloc_enable_null_tracking() should
Stefan Metzmacher [Thu, 31 Aug 2006 06:30:51 +0000 (06:30 +0000)] 
r17949: change the comment, talloc_enable_null_tracking() should
stay here.

metze
(This used to be commit 8eff4787428fddf83cd9d7ea07645f8640157db2)

18 years agor17947: Remove extra const.
Jeremy Allison [Thu, 31 Aug 2006 04:17:07 +0000 (04:17 +0000)] 
r17947: Remove extra const.
Jeremy.
(This used to be commit 86bfac33e35ee636581b88eb2ff55800c48b9a7b)

18 years agor17946: Fix couple of typos...
Jeremy Allison [Thu, 31 Aug 2006 04:16:13 +0000 (04:16 +0000)] 
r17946: Fix couple of typos...
Jeremy.
(This used to be commit 638d53e2ad524dfe4666b79d36997dea8a44c8cd)

18 years agor17945: Store the server and client sitenames in the ADS
Jeremy Allison [Thu, 31 Aug 2006 04:14:08 +0000 (04:14 +0000)] 
r17945: Store the server and client sitenames in the ADS
struct so we can see when they match - only create
the ugly krb5 hack when they do.
Jeremy.
(This used to be commit 9be4ecf24b6b5dacf4c2891bddb072fa7543753f)

18 years agor17944: Handle locking madness.
Jeremy Allison [Thu, 31 Aug 2006 01:27:51 +0000 (01:27 +0000)] 
r17944: Handle locking madness.
Jeremy.
(This used to be commit 408267a2d725a0596be37b019fe4513502b2c0ec)

18 years agor17943: The horror, the horror. Add KDC site support by
Jeremy Allison [Thu, 31 Aug 2006 01:20:21 +0000 (01:20 +0000)] 
r17943: The horror, the horror. Add KDC site support by
writing out a custom krb5.conf file containing
the KDC I need. This may suck.... Needs some
testing :-).
Jeremy.
(This used to be commit d500e1f96d92dfcc6292c448d1b399195f762d89)

18 years agor17942: Jerry is right - when no site support is enabled
Jeremy Allison [Thu, 31 Aug 2006 00:07:24 +0000 (00:07 +0000)] 
r17942: Jerry is right - when no site support is enabled
the client sitename is "Default-First-Site-Name".
Treat this as a blank site (no site configured).
Jeremy.
(This used to be commit 5c46381bd7dd1b3f11f427d111ded0b76fc1bec8)

18 years agor17941: Fix print out of client site name.
Jeremy Allison [Wed, 30 Aug 2006 23:56:40 +0000 (23:56 +0000)] 
r17941: Fix print out of client site name.
Jeremy.
(This used to be commit b8cedcac933fef9370bd42d1ff7c35c5c27103d1)

18 years agor17937: Move the saf_ cache into the tcp ad connection code.
Jeremy Allison [Wed, 30 Aug 2006 18:48:49 +0000 (18:48 +0000)] 
r17937: Move the saf_ cache into the tcp ad connection code.
Cause winbindd to set site support before doing the
generic AD server lookup.
Jeremy.
(This used to be commit a9833941715472ece747bce69ef53ba8ad98d7a5)

18 years agor17934: allow srcdir != builddir for 'make test'
Gerald Carter [Wed, 30 Aug 2006 16:58:29 +0000 (16:58 +0000)] 
r17934: allow srcdir != builddir for 'make test'
(This used to be commit 70f223554922947a17e81f1002b184db879a2195)

18 years agor17933: Don't print a NULL sitename.
Jeremy Allison [Wed, 30 Aug 2006 16:02:08 +0000 (16:02 +0000)] 
r17933: Don't print a NULL sitename.
Jeremy.
(This used to be commit 2829dbc3e01d967887e25d1bcacb1d538fc11e59)

18 years agor17929: Ok, I think I finally figured out where to put
Jeremy Allison [Wed, 30 Aug 2006 05:52:31 +0000 (05:52 +0000)] 
r17929: Ok, I think I finally figured out where to put
the code to redo the CLDAP query to restrict DC
DNS lookups to the sitename. Jerry, please check
to stop me going insane :-).
Jeremy.
(This used to be commit 8d22cc111579c57aec65be8884b41564b79b133a)

18 years agor17928: Implement the basic store for CLDAP sitename
Jeremy Allison [Wed, 30 Aug 2006 04:40:03 +0000 (04:40 +0000)] 
r17928: Implement the basic store for CLDAP sitename
support when looking up DC's. On every CLDAP
call store the returned client sitename (if
present, delete store if not) in gencache with
infinate timeout. On AD DNS DC lookup, try looking
for sitename DC's first, only try generic if
sitename DNS lookup failed.
I still haven't figured out yet how to ensure
we fetch the sitename with a CLDAP query before
doing the generic DC list lookup. This code is
difficult to understand. I'll do some experiments
and backtraces tomorrow to try and work out where
to force a CLDAP site query first.
Jeremy.
(This used to be commit ab3f0c5b1e9c5fd192c5514cbe9451b938f9cd5d)

18 years agor17924: Get rid of warnings now that talloc is merged.
Volker Lendecke [Tue, 29 Aug 2006 19:14:25 +0000 (19:14 +0000)] 
r17924: Get rid of warnings now that talloc is merged.

Destructors now take a pointer to the "real" destroyed object as an argument.

Volker
(This used to be commit 70edd716ef0ccb218fe18d1233bd30abe46b62bf)

18 years agor17923: turn on null_tracking with the first talloc_init() call,
Stefan Metzmacher [Tue, 29 Aug 2006 17:17:02 +0000 (17:17 +0000)] 
r17923: turn on null_tracking with the first talloc_init() call,
(this needs to be moved to a samba3 specific place)

I commit this because I habe no time to test smbcontrol .... pool-usage
and don't want to break it. I'll try to find a better fix tomorrow.

metze
(This used to be commit ae313ab4caa5652199b9aaceb30b4d432ab4f393)

18 years agor17922: sync samba3's talloc with samba4's and move the samba3 specific stuff to...
Stefan Metzmacher [Tue, 29 Aug 2006 16:54:12 +0000 (16:54 +0000)] 
r17922: sync samba3's talloc with samba4's and move the samba3 specific stuff to tallocmsg.c

metze
(This used to be commit 7704e3e51dec1768772663024a0579cb4a271cc1)

18 years agor17921: Comment is obsolte. This is now implemented in winbindd.
Jeremy Allison [Tue, 29 Aug 2006 16:52:59 +0000 (16:52 +0000)] 
r17921: Comment is obsolte. This is now implemented in winbindd.
Jeremy.
(This used to be commit 37c636eb480e3736b143653231d73620152eb470)

18 years agor17910: remove incorrect comment (code has already been fixed)
Gerald Carter [Tue, 29 Aug 2006 15:43:15 +0000 (15:43 +0000)] 
r17910: remove incorrect comment (code has already been fixed)
(This used to be commit 9810d74e171542408eea3ec22a0ebb57a9e1e87e)

18 years agor17909: ensure we do not call map_username() twice on Krb5 session setups
Gerald Carter [Tue, 29 Aug 2006 15:42:09 +0000 (15:42 +0000)] 
r17909: ensure we do not call map_username() twice on Krb5 session setups
(This used to be commit 779eba0a7cab3156b8580410cfe288609a288548)

18 years agor17906: Port the snprintf bugfix from 4. I wonder why we never hit this....
Volker Lendecke [Tue, 29 Aug 2006 09:49:10 +0000 (09:49 +0000)] 
r17906: Port the snprintf bugfix from 4. I wonder why we never hit this....
(This used to be commit b9227bde1328c09c61cc23fdbb4fa756e919c4a6)

18 years agor17903: Fix null deref caught by Stanford checker. Don't
Jeremy Allison [Tue, 29 Aug 2006 01:25:57 +0000 (01:25 +0000)] 
r17903: Fix null deref caught by Stanford checker. Don't
call ntlmssp_end on a null pointer ! (Doh !).
Jeremy.
(This used to be commit 7b53932b5190c78b2b483f36af95174fe38ed45e)

18 years agor17902: Fix possible null deref caught by Stanford checker.
Jeremy Allison [Tue, 29 Aug 2006 01:11:02 +0000 (01:11 +0000)] 
r17902: Fix possible null deref caught by Stanford checker.
Jeremy.
(This used to be commit e8b0649fe167c3446eb6121ed666254fdf53aa58)

18 years agor17901: Stanford checker fix. cookie here can't be null or we'd
Jeremy Allison [Tue, 29 Aug 2006 01:04:25 +0000 (01:04 +0000)] 
r17901: Stanford checker fix. cookie here can't be null or we'd
deref null. Make interface explicit.
Jeremy.
(This used to be commit 4e99606ec16b978a76219b5362a23a7b06ee5468)

18 years agor17900: Fix from Michael Adam <ma@sernet.de> - make internal_resolve_name
Jeremy Allison [Tue, 29 Aug 2006 00:56:08 +0000 (00:56 +0000)] 
r17900: Fix from Michael Adam <ma@sernet.de> - make internal_resolve_name
do what it's supposed to.
Jeremy.
(This used to be commit 4b7387a054bfc1587e0b9b7088f420a5bcf0bad9)

18 years agor17899: Fix Stanford checker bug - possible null deref.
Jeremy Allison [Tue, 29 Aug 2006 00:53:28 +0000 (00:53 +0000)] 
r17899: Fix Stanford checker bug - possible null deref.
Jeremy.
(This used to be commit e77949175144cbe4cfa58788d13acc704eebc251)

18 years agor17897: Store the uid in the memory creds. Don't request the
Jeremy Allison [Mon, 28 Aug 2006 23:01:30 +0000 (23:01 +0000)] 
r17897: Store the uid in the memory creds. Don't request the
krb5 refresh creds when doing cached NTLM auth, request
the memory creds instead.
Jeremy.
(This used to be commit 310ac0b226edcfd5bedc2c3305a05993db20c7af)

18 years agor17896: Reformatting. I did not want to do it anymore, but these ones looked just
Volker Lendecke [Mon, 28 Aug 2006 18:25:55 +0000 (18:25 +0000)] 
r17896: Reformatting. I did not want to do it anymore, but these ones looked just
silly :-)

Volker
(This used to be commit 8b6f5937db4b18db711dd0c4f1ae904087249000)

18 years agor17881: Another microstep towards better error reporting: Make get_sorted_dc_list
Volker Lendecke [Mon, 28 Aug 2006 09:19:30 +0000 (09:19 +0000)] 
r17881: Another microstep towards better error reporting: Make get_sorted_dc_list
return NTSTATUS.

If we want to differentiate different name resolution problems we might want
to introduce yet another error class for Samba-internal errors. Things like no
route to host to the WINS server, a DNS server explicitly said host not found
etc might be worth passing up.

Because we can not stash everything into the existing NT_STATUS codes, what
about a Samba-specific error class like NT_STATUS_DOS and NT_STATUS_LDAP?

Volker
(This used to be commit 60a166f0347170dff38554bed46193ce1226c8c1)

18 years agor17880: On host "tridge" in the build farm the tests fail because smbd hangs in in
Volker Lendecke [Mon, 28 Aug 2006 07:56:15 +0000 (07:56 +0000)] 
r17880: On host "tridge" in the build farm the tests fail because smbd hangs in in
'connecting to cups server on localhost'. There is no cups on that host, but
the TCP connection hangs in SYN_SENT. Probably some firewall rule.

Work around that.

Volker
(This used to be commit ab4e7b34da00c2a8f3244d84f08037ddfadf85d5)

18 years agor17879: Make it explicit that we can never pass NULL for buflen or stringlen.
Jeremy Allison [Mon, 28 Aug 2006 05:41:32 +0000 (05:41 +0000)] 
r17879: Make it explicit that we can never pass NULL for buflen or stringlen.
Stanford Checker fix.
Jeremy.
(This used to be commit 2d8bdd2dce633253780a5b0378f229893d049666)

18 years agor17878: Fix possible null deref found by Stanford checker.
Jeremy Allison [Mon, 28 Aug 2006 05:35:27 +0000 (05:35 +0000)] 
r17878: Fix possible null deref found by Stanford checker.
Jeremy.
(This used to be commit ae20201494f44cb98e58ba98531a79feeeb82b47)

18 years agor17877: Make it explicit to the checker that we can never pass
Jeremy Allison [Mon, 28 Aug 2006 05:27:30 +0000 (05:27 +0000)] 
r17877: Make it explicit to the checker that we can never pass
in NULL as ctr to a void returning fn.
Jeremy.
(This used to be commit 397ab2b1ab72093ba0572493b2e97a93dfc75478)

18 years agor17875: Fix (rather theoretical, but still...) null deref found by
Jeremy Allison [Mon, 28 Aug 2006 05:22:10 +0000 (05:22 +0000)] 
r17875: Fix (rather theoretical, but still...) null deref found by
Stanford checker.
Jeremy.
(This used to be commit 45d77ae12235e6b39cc30845d69ac3777d3eefd0)