amitay/samba.git
16 years agor18310: Add a little test for some gencache routines
Volker Lendecke [Sat, 9 Sep 2006 21:05:51 +0000 (21:05 +0000)]
r18310: Add a little test for some gencache routines
Remove unused gencache_set_only
Use CONST_DISCARD instead of SMB_STRDUP

Volker
(This used to be commit 651e7e44e2e56eab81c5fe708f33e6d3918a39f9)

16 years agor18275: add auto generated dfs code
Gerald Carter [Fri, 8 Sep 2006 17:21:15 +0000 (17:21 +0000)]
r18275: add auto generated dfs code
(This used to be commit edb7a3607e3fa2090310b5c405f2b0a08f51db78)

16 years agor18274: Cleanup unnecessary empty headers and add a comment
Gerald Carter [Fri, 8 Sep 2006 15:22:38 +0000 (15:22 +0000)]
r18274: Cleanup unnecessary empty headers and add a comment
why the remaining ones are needed
(This used to be commit e4fc8ba7fb1cbb7258bc08f1dc2b9d2205bf7f81)

16 years agor18271: Big change:
Gerald Carter [Fri, 8 Sep 2006 14:28:06 +0000 (14:28 +0000)]
r18271: Big change:

* autogenerate lsa ndr code
* rename 'enum SID_NAME_USE' to 'enum lsa_SidType'
* merge a log more security descriptor functions from
  gen_ndr/ndr_security.c in SAMBA_4_0

The most embarassing thing is the "#define strlen_m strlen"
We need a real implementation in SAMBA_3_0 which I'll work on
after this code is in.
(This used to be commit 3da9f80c28b1e75ef6d46d38fbb81ade6b9fa951)

16 years agor18269: regenerate idl output
Stefan Metzmacher [Fri, 8 Sep 2006 14:23:44 +0000 (14:23 +0000)]
r18269: regenerate idl output

metze
(This used to be commit 2047e2a98530e15bfb193de714c886563621ecb2)

16 years agor18259: Fix the non-krb5 builds.
Günther Deschner [Fri, 8 Sep 2006 08:47:07 +0000 (08:47 +0000)]
r18259: Fix the non-krb5 builds.

Guenther
(This used to be commit 576488933b8e04ddd6cb45a7992374efe174a404)

16 years agor18241: If replacing the krb5.conf, ensure it's readable.
Jeremy Allison [Fri, 8 Sep 2006 01:16:01 +0000 (01:16 +0000)]
r18241: If replacing the krb5.conf, ensure it's readable.
Jeremy.
(This used to be commit dfd93a30311ff0e57ef23ae1f1cb58d4019a3eee)

16 years agor18239: THIS IS GUENTHER'S WORK !!! He's allowing me to merge
Jeremy Allison [Fri, 8 Sep 2006 00:19:32 +0000 (00:19 +0000)]
r18239: THIS IS GUENTHER'S WORK !!! He's allowing me to merge
this at the moment as I'm working on this area. Thanks
a lot Guenther.
Add the capability to get krb5 tickets even if we
log on in the offline state and have to cache
the credentials. Once we go online we should
start getting krb5 tickets again. Currently
this code waits until lp_winbind_cache_time()
seconds (5 minutes by default) before getting
tickets. This is correct in the DC down case,
but not in the global offline -> online case.
I'll later add a trigger to force an immediate refresh
on the offline -> online state transition.
Jeremy.
(This used to be commit 04fe034f4a222c83a8d788040f7edc370afe9fa6)

16 years agor18237: include dcerpc.h here to fix compile of autogenerated unixinfo files
Gerald Carter [Thu, 7 Sep 2006 21:30:27 +0000 (21:30 +0000)]
r18237: include dcerpc.h here to fix compile of autogenerated unixinfo files
(This used to be commit 3757f249aa4427c031d0018a1a9244fb61357d94)

16 years agor18236: fully autogenerated unix info files
Gerald Carter [Thu, 7 Sep 2006 21:09:34 +0000 (21:09 +0000)]
r18236: fully autogenerated unix info files
(This used to be commit cbe39cb5e54f4e13575959e02fb66b42f2336240)

16 years agor18235: stub header to get past compile issues with pidl ndr output
Gerald Carter [Thu, 7 Sep 2006 21:08:42 +0000 (21:08 +0000)]
r18235: stub header to get past compile issues with pidl ndr output
(This used to be commit 1eaf62557f532d02fb818458c8bf78df7a7bc904)

16 years agor18234: DNS failures are too common to log at level zero or 1.
Jeremy Allison [Thu, 7 Sep 2006 21:08:29 +0000 (21:08 +0000)]
r18234: DNS failures are too common to log at level zero or 1.
Jeremy.
(This used to be commit 943e21d5da2a8aadab1b2c3d700a9b8b880582f2)

16 years agor18233: Use the autogenerated cli_unixinfo rather than the old one.
Jelmer Vernooij [Thu, 7 Sep 2006 20:42:42 +0000 (20:42 +0000)]
r18233: Use the autogenerated cli_unixinfo rather than the old one.
(This used to be commit eec8b915d1bf6e62c45d309579a4f93380aa43a8)

16 years agor18232: - Trim number of regexes applied to generated files
Jelmer Vernooij [Thu, 7 Sep 2006 20:29:03 +0000 (20:29 +0000)]
r18232: - Trim number of regexes applied to generated files
- Fix syntax error in shell script (refused by dash)
- Regenerate output
(This used to be commit 4dba965f9aa30eb2a54dc68e1bd5137ec6f5e6be)

16 years agor18230: Build Samba3 RPC client<->libndr glue code.
Jelmer Vernooij [Thu, 7 Sep 2006 20:13:10 +0000 (20:13 +0000)]
r18230: Build Samba3 RPC client<->libndr glue code.
(This used to be commit c77ddae4f0e30c821f54300f4485ab5d447b49ce)

16 years agor18229: regenerated unixinfo files and add a few header stubs. Almost autogenerated now
Gerald Carter [Thu, 7 Sep 2006 20:09:15 +0000 (20:09 +0000)]
r18229: regenerated unixinfo files and add a few header stubs.  Almost autogenerated now
(This used to be commit b860685a8117c3876158ac7b8db63cda9b415239)

16 years agor18226: Ensure we only do this evil thing if it's our realm.
Jeremy Allison [Thu, 7 Sep 2006 18:34:02 +0000 (18:34 +0000)]
r18226: Ensure we only do this evil thing if it's our realm.
Jeremy.
(This used to be commit 0a89b37b1a367470be410ae94b42c813c7dbefe6)

16 years agor18225: If we're going to overwrite krb5.conf, at least
Jeremy Allison [Thu, 7 Sep 2006 17:29:23 +0000 (17:29 +0000)]
r18225: If we're going to overwrite krb5.conf, at least
be polite enough to make a backup.
Jeremy.
(This used to be commit c82aac594fd7262029f9c47c2998c9e6b0ffc739)

16 years agor18224: Paranoia - ensure the oplock event handler is
Jeremy Allison [Thu, 7 Sep 2006 16:51:17 +0000 (16:51 +0000)]
r18224: Paranoia - ensure the oplock event handler is
removed immediately in the handler.
Extra debug info tracking down winbindd DC
selection.
Jeremy.
(This used to be commit 7ba9b6ce588f716589e9f88ed146fad36c4b3758)

16 years agor18201: Make explicit what's going on here.
Jeremy Allison [Thu, 7 Sep 2006 04:17:23 +0000 (04:17 +0000)]
r18201: Make explicit what's going on here.
Jeremy.
(This used to be commit 38b8a2b5278d2538b9803c2b81f767036a16ad65)

16 years agor18200: Experimental code to allow system /etc/krb5.conf to be
Jeremy Allison [Thu, 7 Sep 2006 04:01:11 +0000 (04:01 +0000)]
r18200: Experimental code to allow system /etc/krb5.conf to be
overwritten by winbindd. Don't enable this :-).
Jeremy.
(This used to be commit 88e11ee91a2e97c93f5d34313d45b1e38f793038)

16 years agor18199: Allow winbindd to delete a saf_ entry if it knows
Jeremy Allison [Thu, 7 Sep 2006 03:44:05 +0000 (03:44 +0000)]
r18199: Allow winbindd to delete a saf_ entry if it knows
it can't talk to it.
Jeremy.
(This used to be commit 7385a076f8fd351472d37d9363304948e88f9f99)

16 years agor18197: compile fixes
Gerald Carter [Thu, 7 Sep 2006 02:15:31 +0000 (02:15 +0000)]
r18197: compile fixes
(This used to be commit 9b0d44a0b0393d1897232d1be8dfe468ce8e7563)

16 years agor18196: Fix debug message (this should be online not offline).
Jeremy Allison [Thu, 7 Sep 2006 01:07:43 +0000 (01:07 +0000)]
r18196: Fix debug message (this should be online not offline).
Jeremy.
(This used to be commit 9c943dfe2d23e2d01df53ac81625278d4f870aa3)

16 years agor18195: remove hardcoded path introdiced by pidl
Gerald Carter [Wed, 6 Sep 2006 22:29:40 +0000 (22:29 +0000)]
r18195: remove hardcoded path introdiced by pidl
(This used to be commit cbf57a6327be2ed161ae716c884ed1243b578a7d)

16 years agor18193: Not quite to autogenerated NDR but closer thanks to Jelmer's
Gerald Carter [Wed, 6 Sep 2006 22:08:06 +0000 (22:08 +0000)]
r18193: Not quite to autogenerated NDR but closer thanks to Jelmer's
initial work.  I'm including the librpc/gen_ndr directory
in svn temporarily just to get some compile issues straightened
out.
(This used to be commit cf271aa433cfa606be5dbf3ed1d94fe3caf57653)

16 years agor18192: Fix the build.
Jeremy Allison [Wed, 6 Sep 2006 21:52:06 +0000 (21:52 +0000)]
r18192: Fix the build.
Jeremy.
(This used to be commit aa62bb6b4ccb46a58bbe8f46d552a062ca06c238)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)