]> git.samba.org - samba.git/log
samba.git
16 years agor19147: This is WRONG, but the way the VFS works this is the only fix to get rid of
Volker Lendecke [Fri, 6 Oct 2006 17:28:52 +0000 (17:28 +0000)]
r19147: This is WRONG, but the way the VFS works this is the only fix to get rid of
this type-punned warning.

Volker
(This used to be commit d815b1a7e9609a760f93433bf022826f58f256db)

16 years agor19145: talloc_reference() can fail!
Stefan Metzmacher [Fri, 6 Oct 2006 16:14:41 +0000 (16:14 +0000)]
r19145: talloc_reference() can fail!

metze
(This used to be commit e4f2183684da90a67bc6a635d008b72a6dd3d0dd)

16 years agor19143: getdcname on the NETLOGON pipe returns WERROR, not NTSTATUS.
Günther Deschner [Fri, 6 Oct 2006 16:13:10 +0000 (16:13 +0000)]
r19143: getdcname on the NETLOGON pipe returns WERROR, not NTSTATUS.

Guenther
(This used to be commit 44e228ac796fca2db8509915067511ed705032bf)

16 years agor19137: that looks nicer:-)
Stefan Metzmacher [Fri, 6 Oct 2006 15:17:02 +0000 (15:17 +0000)]
r19137: that looks nicer:-)

metze
(This used to be commit db40552d9471f4a8ce2c5c724319a4eb242ed24a)

16 years agor19135: fix bugs...
Stefan Metzmacher [Fri, 6 Oct 2006 15:06:54 +0000 (15:06 +0000)]
r19135: fix bugs...

- passing mem_ctx as ldb_context is a bad idea!
- naming a static function talloc_ is also bad and misleading

metze
(This used to be commit 0523ad249335c6094854bc9cefb46e2095f4c0ba)

16 years agor19133: More C++ warnings -- Merge across?
Volker Lendecke [Fri, 6 Oct 2006 14:50:07 +0000 (14:50 +0000)]
r19133: More C++ warnings -- Merge across?
(This used to be commit c879ed3d1edffeda629dc1e05031dca91c1a1e30)

16 years agor19132: Fix some C++ warnings. Is there interest to have them in Samba4 as well?
Volker Lendecke [Fri, 6 Oct 2006 14:39:47 +0000 (14:39 +0000)]
r19132: Fix some C++ warnings. Is there interest to have them in Samba4 as well?

I have some problems resolving the last 3 ones in attrib_handlers.c. In line
251 the function ldb_dn_explode_casefold is called with mem_ctx as the first
argument. Looking at ldb_dn_explode_casefold I see that the first argument it
expects is a struct ldb_context. I could certainly add a cast to (struct
ldb_context *) to that call, but I would assume that this is the wrong fix. Is
it possible that attrib_handlers.c:251 and :254 should have ldb and not
mem_ctx as the first argument?

Can anybody from Samba4 clarify this for me and apply the correct fix?

Thanks a lot.

Volker
(This used to be commit 26f2cb71ebf00b2c6f356da5f32384f7fa083521)

16 years agor19130: fix the logic for the AC_PROG_CC_C99 check
Stefan Metzmacher [Fri, 6 Oct 2006 14:02:44 +0000 (14:02 +0000)]
r19130: fix the logic for the AC_PROG_CC_C99 check

metze
(This used to be commit 21516dc5ac95e7e5d6a7d7f890d42742b36f2454)

16 years agor19127: Fix bug 4152
Volker Lendecke [Fri, 6 Oct 2006 12:19:46 +0000 (12:19 +0000)]
r19127: Fix bug 4152
(This used to be commit 70038e8f7b3042c2732e7f8267cab0499972a819)

16 years agor19126: Fix some uninitialized variable warnings
Volker Lendecke [Fri, 6 Oct 2006 12:18:59 +0000 (12:18 +0000)]
r19126: Fix some uninitialized variable warnings
(This used to be commit 90bfa3461038f5d179525dec0cf5b3f137e927e0)

16 years agor19125: merge from samba4
Andrew Tridgell [Fri, 6 Oct 2006 12:00:23 +0000 (12:00 +0000)]
r19125: merge from samba4
(This used to be commit 65e1500ae6b5ca6334a63f4a18272568202bc048)

16 years agor19124: merge from samba4:
Stefan Metzmacher [Fri, 6 Oct 2006 11:05:03 +0000 (11:05 +0000)]
r19124: merge from samba4:

pass LDFLAGS from configure to Makefile

metze
(This used to be commit 7ba9fddacb97153405bf0bec16b3a868e4e323e0)

16 years agor19121: try to get rid of the difference between in system/iconv.h
Stefan Metzmacher [Fri, 6 Oct 2006 10:58:39 +0000 (10:58 +0000)]
r19121: try to get rid of the difference between in system/iconv.h
between samba 3 and 4.

metze
(This used to be commit 04031a9fca037ad77cca0ba0da6801d5017521ba)

16 years agor19119: try to be more portable...
Stefan Metzmacher [Fri, 6 Oct 2006 10:14:56 +0000 (10:14 +0000)]
r19119: try to be more portable...

metze
(This used to be commit 380e647534730313ee57d1acf2756708b7c9676d)

16 years agor19105: Ok - this is currently untested (but I'm testing it at
Jeremy Allison [Fri, 6 Oct 2006 02:04:57 +0000 (02:04 +0000)]
r19105: Ok - this is currently untested (but I'm testing it at
the moment) but winbindd isn't run in the build farm
so hopefully won't break anything too badly - I don't
want to lose this.

If winbindd starts offline then it falls back to using
MS-RPC backend. On going online it needs to reset the
backend and try and go to using the AD backend code if
possible, as the MS-RPC sequence number fetch just returns
1 as the sequence number if run against an AD DC.

In addition, the winbindd async child may end up
with the AD backend whilst the main winbindd - which
still contacts the DC for some non-async calls, is
left using MS-RPC. This can cause some trouble (as
you can imagine :-).

Attempt to ensure both main winbindd and async children
us AD backends on going online.

Jeremy.
(This used to be commit 5efd4b04b89ace4b264e9ac37a90e202749792be)

16 years agor19104: Fix from Björn JACKE <bjoern@j3e.de>
Jeremy Allison [Thu, 5 Oct 2006 21:30:31 +0000 (21:30 +0000)]
r19104: Fix from Björn JACKE <bjoern@j3e.de>
"here's a small fix for gdb_backtrace."
Jeremy.
(This used to be commit a0b4e5d11857cd067c60dd99dc5f00ee62a1354d)

16 years agor19103: From "Björn JACKE <bjoern@j3e.DE>":
Jeremy Allison [Thu, 5 Oct 2006 20:05:09 +0000 (20:05 +0000)]
r19103: From "Björn JACKE <bjoern@j3e.DE>":
The attached patch cleans up pam_winbind a tiny bit. Instead of making
exceptions for all pam implementations except for Linux' it's better
to make an exception for the only pam implementation which is
different from all the others. This is equivalent to what pam_smb_auth
does already.
-----------------
Jeremy
(This used to be commit 8e5596470822d20740f86585a6cf67240f2face4)

16 years agor19102: fix typo, thanks derrell!
Stefan Metzmacher [Thu, 5 Oct 2006 13:10:32 +0000 (13:10 +0000)]
r19102: fix typo, thanks derrell!

metze
(This used to be commit 0a516c3026114a32092f4a62fcbbfc4c410c0dea)

16 years agor19101: add sys_recv() wrapper
Stefan Metzmacher [Thu, 5 Oct 2006 12:33:59 +0000 (12:33 +0000)]
r19101: add sys_recv() wrapper

metze
(This used to be commit 2f146ec68344c4bc11e1a9d174bdf548e1a22d5a)

16 years agor19100: merge from samba4:
Stefan Metzmacher [Thu, 5 Oct 2006 11:52:23 +0000 (11:52 +0000)]
r19100: merge from samba4:

export MAKE_TEST_ENABLE_PCAP=yes enables
SOCKET_WRAPPER_PCAP_FILE support
in make test

metze
(This used to be commit 5faf816885b7a1bca5a25ab1ef5151d4e364cbda)

16 years agor19099: merge socket wrapper changes from samba4
Stefan Metzmacher [Thu, 5 Oct 2006 11:50:39 +0000 (11:50 +0000)]
r19099: merge socket wrapper changes from samba4

including SOCKET_WRAPPER_PCAP_FILE support

but I just noticed that samba don't use recv()/send()
on the socket, so the capture only contain connect()/close()

metze
(This used to be commit b894e33023738b5d6121c56e9c0b34b12f3e0005)

16 years agor19096: - fix the build with included popt
Stefan Metzmacher [Thu, 5 Oct 2006 10:49:18 +0000 (10:49 +0000)]
r19096: - fix the build with included popt
- and fix some whitespaces

metze
(This used to be commit 4906e601511fc2056393d8519bb249e5cce926e4)

16 years agor19095: Fix some compile warnings.
Günther Deschner [Thu, 5 Oct 2006 09:41:27 +0000 (09:41 +0000)]
r19095: Fix some compile warnings.

Guenther
(This used to be commit a0d19e1ebe694b089d40d67ea4f26e076af53ff9)

16 years agor19094: Fix debug statement.
Günther Deschner [Thu, 5 Oct 2006 09:38:49 +0000 (09:38 +0000)]
r19094: Fix debug statement.

Guenther
(This used to be commit e99696c97052d4ba962e11fcb7b6ea530350913d)

16 years agor19093: speed up the samba3 build from 8mins to 5mins:-)
Stefan Metzmacher [Thu, 5 Oct 2006 09:15:37 +0000 (09:15 +0000)]
r19093: speed up the samba3 build from 8mins to 5mins:-)

we now don't compile mostly each .c file twice.

- we use PICFLAG for all object files
- PICFLAG defaults to PIE_CFLAGS and is then overwritten
  if the system supports shared libraries

as we currently always use -fPIE if available
(and at least on linux -fPIE produces the same code as -fPIC)
it doesn't change anything in the resulting code.

"high performance" binaries can be build with
"--disable-pie --disable-shared" if someone really needs to...

metze
(This used to be commit 6db1f57f45bf0b382572aec72dda29657c4a5c3f)

16 years agor19090: - the LIBREPLACE_C99 isn't needed in aclocal.m4
Stefan Metzmacher [Thu, 5 Oct 2006 07:45:21 +0000 (07:45 +0000)]
r19090: - the LIBREPLACE_C99 isn't needed in aclocal.m4
- including the ldb configure tests via aclocal.m4 is wrong

metze
(This used to be commit cd4b1cf0e7ced553c691ea0e34fd764577d88dce)

16 years agor19089: normalize KRB5_LIBS too
Stefan Metzmacher [Thu, 5 Oct 2006 07:39:25 +0000 (07:39 +0000)]
r19089: normalize KRB5_LIBS too

metze
(This used to be commit c7788f6c7183a139f1aa572880faef5bd185d1c0)

16 years agor19088: filter out -Wl,-rpath combinations with /usr/lib too
Stefan Metzmacher [Thu, 5 Oct 2006 07:38:43 +0000 (07:38 +0000)]
r19088: filter out -Wl,-rpath combinations with /usr/lib too

metze
(This used to be commit 52ffc8b12c53d4a65e31385108b34a20f1c74326)

16 years agor19087: normalize vars before printing them
Stefan Metzmacher [Thu, 5 Oct 2006 07:24:04 +0000 (07:24 +0000)]
r19087: normalize vars before printing them

metze
(This used to be commit 9900abf8ab97113ed33b84e3701d89cbc2cc2a76)

16 years agor19086: fix --disable-pie together with -C
Stefan Metzmacher [Thu, 5 Oct 2006 07:20:46 +0000 (07:20 +0000)]
r19086: fix --disable-pie together with -C

metze
(This used to be commit 035579b62c76e370356cb4a6ba5f652ac68b5862)

16 years agor19085: merge from samba4:
Stefan Metzmacher [Thu, 5 Oct 2006 07:05:26 +0000 (07:05 +0000)]
r19085: merge from samba4:

- source and destination address handling
- tcp handling

metze
(This used to be commit 98154fd43350f3edae54423756620a48e089f96d)

16 years agor19083: Fix objectclass
Volker Lendecke [Thu, 5 Oct 2006 06:29:06 +0000 (06:29 +0000)]
r19083: Fix objectclass
(This used to be commit 6c4d68d84987a88f91bca976a0396dff720043e5)

16 years agor19080: Fix a potential NULL dereference
Volker Lendecke [Wed, 4 Oct 2006 21:07:05 +0000 (21:07 +0000)]
r19080: Fix a potential NULL dereference
(This used to be commit 682b490c23bb88a1a570bd1fcb7d2b6aa778dd14)

16 years agor19079: talloc_array can fail
Volker Lendecke [Wed, 4 Oct 2006 20:59:06 +0000 (20:59 +0000)]
r19079: talloc_array can fail
(This used to be commit 7b6738522a80740824f3b96e73e7c48a0623b1b1)

16 years agor19078: talloc_strdup can fail
Volker Lendecke [Wed, 4 Oct 2006 20:51:17 +0000 (20:51 +0000)]
r19078: talloc_strdup can fail
(This used to be commit 2b3b9ce2a122ec5fd945728c117c321087d85203)

16 years agor19077: Fix an uninitialized variable
Volker Lendecke [Wed, 4 Oct 2006 20:43:56 +0000 (20:43 +0000)]
r19077: Fix an uninitialized variable
(This used to be commit 6bc2cce645af94274a5959312c52799c221b0899)

16 years agor19076: ldb_dn_copy_partial can fail
Volker Lendecke [Wed, 4 Oct 2006 20:22:08 +0000 (20:22 +0000)]
r19076: ldb_dn_copy_partial can fail
(This used to be commit c247cf3fba13ce1a32878efcc922eadfcbc2b092)

16 years agor19075: Fix a potential NULL dereference
Volker Lendecke [Wed, 4 Oct 2006 20:15:23 +0000 (20:15 +0000)]
r19075: Fix a potential NULL dereference
(This used to be commit 0ab5d7692c2c0fe798a067866cb236ea9c304463)

16 years agor19073: mapping_dn can fail
Volker Lendecke [Wed, 4 Oct 2006 19:40:25 +0000 (19:40 +0000)]
r19073: mapping_dn can fail
(This used to be commit d234f39c79e0e50f784826d0920ebd21cc9a283d)

16 years agor19072: Fix a potential NULL dereference. Simo/Tridge, not merging yet to 4_0, I'd
Volker Lendecke [Wed, 4 Oct 2006 19:32:55 +0000 (19:32 +0000)]
r19072: Fix a potential NULL dereference. Simo/Tridge, not merging yet to 4_0, I'd
like you to comment.

Volker
(This used to be commit ba18c58f1fb618447ba39bae6ef8f4e6c00c4d32)

16 years agor19071: Backport to SAMBA_3_0 as well
Simo Sorce [Wed, 4 Oct 2006 19:12:01 +0000 (19:12 +0000)]
r19071: Backport to SAMBA_3_0 as well
(This used to be commit df148a5def06956ecd8392d259f1c408c62100fa)

16 years agor19070: If there's an error in the data struct, there's no point to continue with
Volker Lendecke [Wed, 4 Oct 2006 19:09:32 +0000 (19:09 +0000)]
r19070: If there's an error in the data struct, there's no point to continue with
asn1_pop_tag.

Volker
(This used to be commit d18e9f1da9a22aa16860aa2a91e7c788d28d3314)

16 years agor19067: Fix a potential NULL dereference
Volker Lendecke [Wed, 4 Oct 2006 18:22:51 +0000 (18:22 +0000)]
r19067: Fix a potential NULL dereference
(This used to be commit 6a8937ed03f0ee62eb81da798e0c38b405d44731)

16 years agor19066: Fix a memleak
Volker Lendecke [Wed, 4 Oct 2006 16:33:42 +0000 (16:33 +0000)]
r19066: Fix a memleak
(This used to be commit c53e2e54750764c9a0eb57a86fd226b4f8711a66)

16 years agor19065: No functional change, just a trivial simplification
Volker Lendecke [Wed, 4 Oct 2006 16:18:36 +0000 (16:18 +0000)]
r19065: No functional change, just a trivial simplification
(This used to be commit 45628f71cfc770b1ba67abf38aac53ac40773cd0)

16 years agor19064: This code block is already #ifdef'ed by WITH_ADS which should imply
Volker Lendecke [Wed, 4 Oct 2006 15:05:00 +0000 (15:05 +0000)]
r19064: This code block is already #ifdef'ed by WITH_ADS which should imply
HAVE_KRB5. If WITH_ADS does not imply KRB5, we have to fix that.

Lets see what the build farm thinks about this.

Volker
(This used to be commit 27b063078dff0d8c5eb552dd73825f6858d04e4b)

16 years agor19062: try to fix the valgrind noise in the build-farm
Stefan Metzmacher [Wed, 4 Oct 2006 10:59:00 +0000 (10:59 +0000)]
r19062: try to fix the valgrind noise in the build-farm

metze
(This used to be commit 9cb182507c8e168a94db0b0e290fd124be1bac11)

16 years agor19060: Attempt to fix the valgrind suppressions for "fort"
Volker Lendecke [Wed, 4 Oct 2006 08:26:29 +0000 (08:26 +0000)]
r19060: Attempt to fix the valgrind suppressions for "fort"
(This used to be commit f8c4578f913bed3bdd7b6785cb402b961f719603)

16 years agor19058: Implement "user cannot change password", and complete "user must change
Jim McDonough [Tue, 3 Oct 2006 17:14:18 +0000 (17:14 +0000)]
r19058: Implement "user cannot change password", and complete "user must change
password at next logon" code.  The "password last set time" of zero now
means "user must change password", because that's how windows seems to
use it.  The "can change" and "must change" times are now calculated
based on the "last set" time and policies.

We use the "can change" field now to indicate that a user cannot change
a password by putting MAX_TIME_T in it (so long as "last set" time isn't
zero).  Based on this, we set the password-can-change bit in the
faked secdesc.
(This used to be commit 21abbeaee9b7f7cff1d34d048463c30cda44a2e3)

16 years agor19054: Callers of gencache may not have the rights to
Jeremy Allison [Mon, 2 Oct 2006 23:34:03 +0000 (23:34 +0000)]
r19054: Callers of gencache may not have the rights to
open read/write. Allow them to fallback to read-only.
Jeremy
(This used to be commit ec526e1b882e3ade23f90c5e3d637c72b6839da5)

16 years agor19046: It does not do much yet, but activate RPC-SAMBA3-SPOOLSS
Volker Lendecke [Mon, 2 Oct 2006 13:50:30 +0000 (13:50 +0000)]
r19046: It does not do much yet, but activate RPC-SAMBA3-SPOOLSS
(This used to be commit 3bf313240c8dcabc28a2fbf35a68daf8274cf659)

16 years agor19043: There's no point in #ifdef'ing the detection whether we were offered KRB5 in
Volker Lendecke [Mon, 2 Oct 2006 13:30:05 +0000 (13:30 +0000)]
r19043: There's no point in #ifdef'ing the detection whether we were offered KRB5 in
SPNEGO, as long as we don't make use of it without krb libs. Makes the code a
bit simpler.

Volker
(This used to be commit 23549e6c082e92e45ced4eee215bcc0094b2a88b)

16 years agor19042: Fix the non-krb5 build. This needs sooo severe cleanup ... :-)
Volker Lendecke [Mon, 2 Oct 2006 13:09:42 +0000 (13:09 +0000)]
r19042: Fix the non-krb5 build. This needs sooo severe cleanup ... :-)

Volker
(This used to be commit b601fc42cb289366b7c522f41aa4c66920006890)

16 years agor19041: Make us connect to Vista RC1. Apparently metze had done the same patch some
Volker Lendecke [Mon, 2 Oct 2006 12:54:49 +0000 (12:54 +0000)]
r19041: Make us connect to Vista RC1. Apparently metze had done the same patch some
weeks ago.

We have some work before us, when in AD mode Vista sends
"not_defined_in_RFC4178@please_ignore" as the principal.....

Volker
(This used to be commit af85d8ec02b36b765ceadf0a342c7eda2410034b)

16 years agor19040: use more portable shellscripting, hopefully give better results on Tru64
Stefan Metzmacher [Mon, 2 Oct 2006 12:24:51 +0000 (12:24 +0000)]
r19040: use more portable shellscripting, hopefully give better results on Tru64

metze
(This used to be commit e8dd73f79656d9ef6faf9fceb84dc8702ac8e10a)

16 years agor19039: Do not segfault in "net ads printer info" when a requested printserver
Günther Deschner [Mon, 2 Oct 2006 12:06:49 +0000 (12:06 +0000)]
r19039: Do not segfault in "net ads printer info" when a requested printserver
does not exist.

Guenther
(This used to be commit 359315021df3a4dbfe5142e529e3efdbc49e405c)

16 years agor19038: build libreplace testsuite as replacetort
Stefan Metzmacher [Mon, 2 Oct 2006 11:35:41 +0000 (11:35 +0000)]
r19038: build libreplace testsuite as replacetort
and run it with make test

metze
(This used to be commit 9db9eb199f1902cb7e7f4f700b8594f4fc98ae8a)

16 years agor19037: Fix a segfault
Volker Lendecke [Mon, 2 Oct 2006 11:03:53 +0000 (11:03 +0000)]
r19037: Fix a segfault
(This used to be commit 1c18ebe67500a59d4bf08c7e2e2c2af416bfa084)

16 years agor19034: merge from samba4:
Stefan Metzmacher [Mon, 2 Oct 2006 10:37:17 +0000 (10:37 +0000)]
r19034: merge from samba4:

prepare libreplace testsuite for usage in smbtorture

metze
(This used to be commit 281677084e022336877dd141befd508a0b5c08a9)

16 years agor19031: merge from samba4:
Stefan Metzmacher [Mon, 2 Oct 2006 09:21:20 +0000 (09:21 +0000)]
r19031: merge from samba4:

add test that opendir() on files sets errno = ENOTDIR

metze
(This used to be commit fdad2ce7346678d29adf877b580e9285be286755)

16 years agor19030: merge missing stuff from samba4:
Stefan Metzmacher [Mon, 2 Oct 2006 09:20:18 +0000 (09:20 +0000)]
r19030: merge missing stuff from samba4:

- strnlen() and strndup() are broken on AIX
- we need some extra CFLAGS on HPUX 11.11

metze
(This used to be commit 61aa60c60ffddcbad433b26d7f3a836e4fcd8732)

16 years agor19028: Implement getprinterinfo level 6 (only the status) and get rid of snum in the
Volker Lendecke [Mon, 2 Oct 2006 08:38:54 +0000 (08:38 +0000)]
r19028: Implement getprinterinfo level 6 (only the status) and get rid of snum in the
getprinter calls. Survives the RPC-SAMBA3-SPOOLSS test which I will activate
when the Samba4 build farm has picked it up.

Volker
(This used to be commit d7248b6cfa4d6e639d92afdd092136d900d90e19)

16 years agor19026: we don't need this twice
Stefan Metzmacher [Mon, 2 Oct 2006 06:32:58 +0000 (06:32 +0000)]
r19026: we don't need this twice

metze
(This used to be commit 5d16aa61c6c5e284f6ff742dbf686493e4539c79)

16 years agor19016: As per Samba4 coding standards, turn tabs into spaces
Volker Lendecke [Sun, 1 Oct 2006 20:43:16 +0000 (20:43 +0000)]
r19016: As per Samba4 coding standards, turn tabs into spaces
(This used to be commit 3f59c8ef0c3f2a27c1c46b48fe8ee5ccacb44b7b)

16 years agor19015: we don't need talloc_* in proto.h
Stefan Metzmacher [Sun, 1 Oct 2006 17:56:39 +0000 (17:56 +0000)]
r19015: we don't need talloc_* in proto.h

metze
(This used to be commit 685304e57433d05e2ab971af9dd31ddcf3cbf92d)

16 years agor19013: Fix some 64-bit warnings.
Volker Lendecke [Sat, 30 Sep 2006 17:32:26 +0000 (17:32 +0000)]
r19013: Fix some 64-bit warnings.

Jelmer, Jerry, in cmd_unixinfo.c:159 there is still the warning that "info" is
being used uninitialized which I don't really know how to fix.

Any hints?

Volker
(This used to be commit 4a5d11e194ebdfb6c21586d1cf902f8ed2478e45)

16 years agor19012: Fix an uninitialized variable
Volker Lendecke [Sat, 30 Sep 2006 17:20:02 +0000 (17:20 +0000)]
r19012: Fix an uninitialized variable
(This used to be commit 46cae04fbee1a2e04883085294be4f75b2d6d56c)

16 years agor19011: Attempt to fix the BSD RAW-CHKPATH failures: In Samba3 we rely on opendir
Volker Lendecke [Sat, 30 Sep 2006 14:12:02 +0000 (14:12 +0000)]
r19011: Attempt to fix the BSD RAW-CHKPATH failures: In Samba3 we rely on opendir
returning ENOTDIR when the file opened is not a directory. Can we merge this
back into Samba4?

Volker
(This used to be commit 448d7c0c4b6a1d7d9c544d39d7b461dd1c69fd8e)

16 years agor19010: Fix bug 4137
Volker Lendecke [Sat, 30 Sep 2006 09:45:53 +0000 (09:45 +0000)]
r19010: Fix bug 4137
(This used to be commit 3790d00a78fa4133b9875b9fed36f5752dce8e7f)

16 years agor19008: Fix a segfault
Volker Lendecke [Fri, 29 Sep 2006 21:26:33 +0000 (21:26 +0000)]
r19008: Fix a segfault
(This used to be commit adfc82f0e6b12f8ccfe00f3ff49a089a4c936239)

16 years agor19007: reformat service control manager IDL
Gerald Carter [Fri, 29 Sep 2006 20:45:44 +0000 (20:45 +0000)]
r19007: reformat service control manager IDL
(This used to be commit d0658139a3419e42e00b3cddb2b149d48f2a76a5)

16 years agor19006: Final cleanups for the winreg libmsrpc functions.
Gerald Carter [Fri, 29 Sep 2006 20:31:09 +0000 (20:31 +0000)]
r19006: Final cleanups for the winreg libmsrpc functions.
Needs thorough testing but the code has been adapted
to the new rpccli_winreg_XX() API.
(This used to be commit c3d1c3ca4d9b23bdbba131563c751b8e0dc4c01f)

16 years agor19003: Finally activate "net ads gpo".
Günther Deschner [Fri, 29 Sep 2006 17:15:45 +0000 (17:15 +0000)]
r19003: Finally activate "net ads gpo".

For those who are interested, try

        net ads gpo refresh mybox$

to get your machine related GPOs downloaded to /var/lib/samba/gpo_cache.
Detailed information about GPOs is currently only printed when setting a
higher debuglevel then 0.

Guenther
(This used to be commit d086babf9d2592f041cc35db3d60b4452ea953f5)

16 years agor19002: Add a very simple synchronisation function to download the full GPO.
Günther Deschner [Fri, 29 Sep 2006 16:36:03 +0000 (16:36 +0000)]
r19002: Add a very simple synchronisation function to download the full GPO.

Guenther
(This used to be commit 02b75ff2a833677df3448b0f9a4928cb3f0274de)

16 years agor19001: Fix comment
Volker Lendecke [Fri, 29 Sep 2006 15:43:27 +0000 (15:43 +0000)]
r19001: Fix comment
(This used to be commit 048127f9dd6363dfb3c78369fa2227551b741831)

16 years agor19000: Merge the max tcon check from 3_0_23. Thanks to James Peach that this was not
Volker Lendecke [Fri, 29 Sep 2006 12:47:00 +0000 (12:47 +0000)]
r19000: Merge the max tcon check from 3_0_23. Thanks to James Peach that this was not
done in the 3_0 tree.

Volker
(This used to be commit b2fbf5ac0ca38577957e8e7ddb176dd3499de213)

16 years agor18998: - make more usage of PRINTF_ATTRIBUTE()
Stefan Metzmacher [Fri, 29 Sep 2006 12:30:14 +0000 (12:30 +0000)]
r18998: - make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'

metze
(This used to be commit 8899bc45f908a15fb496f5c0a29692e7494a56cc)

16 years agor18996: merge from samba4:
Stefan Metzmacher [Fri, 29 Sep 2006 10:53:27 +0000 (10:53 +0000)]
r18996: merge from samba4:

- fix bug 4078
- talloc_free(talloc_autofree_context()); should not result
  in a SIGABORT on exit
- add a test for this, but this test can also pass in the standalone build
  and samba3, as samba4 uses talloc_autofree_context()

metze
(This used to be commit f5b0924f975f58bba3c13a53388ea25af51d3bc8)

16 years agor18993: merge from samba4:
Stefan Metzmacher [Fri, 29 Sep 2006 09:48:46 +0000 (09:48 +0000)]
r18993: merge from samba4:

prepare SOCKET_WRAPPER_PCAP_FILE support

metze
(This used to be commit 372471cbad34b1d0d2159e75994c481de6eaed05)

16 years agor18991: Fix bug 4133 -- Thanks to Olaf Flebbe
Volker Lendecke [Fri, 29 Sep 2006 09:12:55 +0000 (09:12 +0000)]
r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
(This used to be commit 00f09d851c734cb6450feac2d6efc71a540be11f)

16 years agor18988: Check and refresh expired GPOs.
Günther Deschner [Fri, 29 Sep 2006 01:49:26 +0000 (01:49 +0000)]
r18988: Check and refresh expired GPOs.

Guenther
(This used to be commit e0e44bfadbf9bce8a5d3fe969c0f6da59a0cc29e)

16 years agor18987: Add some usage prints for "net ads gpo".
Günther Deschner [Fri, 29 Sep 2006 01:42:28 +0000 (01:42 +0000)]
r18987: Add some usage prints for "net ads gpo".

Guenther
(This used to be commit 581152f81919f46c547fe7193b65384d49bea00e)

16 years agor18986: Add some more GPO download helper functions.
Günther Deschner [Fri, 29 Sep 2006 01:27:54 +0000 (01:27 +0000)]
r18986: Add some more GPO download helper functions.

Guenther
(This used to be commit d2db3b6b4695038374d0848e1ce981ccf0ae8c24)

16 years agor18985: Add parse_gpt_ini() to parse GPT.INI files using iniparser.
Günther Deschner [Thu, 28 Sep 2006 23:49:36 +0000 (23:49 +0000)]
r18985: Add parse_gpt_ini() to parse GPT.INI files using iniparser.

Guenther
(This used to be commit 46db28de488eb04da30bf03a16d4c9ea086aed07)

16 years agor18984: Removing ads_gpo_get_sysvol_gpt_version() which was just doing stupid
Günther Deschner [Thu, 28 Sep 2006 23:13:15 +0000 (23:13 +0000)]
r18984: Removing ads_gpo_get_sysvol_gpt_version() which was just doing stupid
things.

Guenther
(This used to be commit a597ef83c44368f81956bcd722e69b53bf205a8a)

16 years agor18983: Add some comments for the LDAP based GPO routines.
Günther Deschner [Thu, 28 Sep 2006 23:04:17 +0000 (23:04 +0000)]
r18983: Add some comments for the LDAP based GPO routines.

Guenther
(This used to be commit 2c21ee684c4197899f2314e99b891ce771b1fd65)

16 years agor18982: Move the gpo related functions to "libgpo".
Günther Deschner [Thu, 28 Sep 2006 21:33:54 +0000 (21:33 +0000)]
r18982: Move the gpo related functions to "libgpo".

Guenther
(This used to be commit 1308a842716bc3bd1a9853b9b206dc7308a8c1dd)

16 years agor18981: * cleanup some vestiges of old cli_reg.c code and mark some TODO
Gerald Carter [Thu, 28 Sep 2006 21:19:08 +0000 (21:19 +0000)]
r18981: * cleanup some vestiges of old cli_reg.c code and mark some TODO
  items in cac_winreg.c
* Get 'net rpc registry enumerate' to list values again
* Fix winreg.idl QueryInfoKey().  The max_subkeysize is the
  max_classlen (we previously had this correct in Samba3")
* fix valgrind error about uninitialized memory and use-before-set
  on size value inmemset() call
* Fix key enumeration in 'net rpc registry enumerate'
* regenerate gen_dir files based on local pidl patches

Please note that the generated ndr files are from my local
copy of pidl.  If you need to regenerate, please apply the
patch that I posted to the samba-technical list earlier today.
(This used to be commit 5d843612a1b9d92022f76626f1c7473faebec4ba)

16 years agor18980: Be a little more intelligent about "startup_time",
Jeremy Allison [Thu, 28 Sep 2006 18:08:03 +0000 (18:08 +0000)]
r18980: Be a little more intelligent about "startup_time",
move into the domain struct. Allow message to go online
to set this state and cope with removing it.
Jeremy.
(This used to be commit 51f0e60cc3a652b0ff1658d4c07bfc9493fbc51a)

16 years agor18976: follow the advice from "William Jojo" <jojowil@hvcc.edu>
Stefan Metzmacher [Thu, 28 Sep 2006 15:13:08 +0000 (15:13 +0000)]
r18976: follow the advice from "William Jojo" <jojowil@hvcc.edu>
and pass -bbigtoc also to the linker when building shared libs

metze
(This used to be commit 4948b676a804a5a250d464a7848420ed79cb52b2)

16 years agor18973: we should always set LDFLAGS and DYNEXP depending on the host_os
Stefan Metzmacher [Thu, 28 Sep 2006 14:08:44 +0000 (14:08 +0000)]
r18973: we should always set LDFLAGS and DYNEXP depending on the host_os
but disable building of shared libs and modules whe enable_shared != yes

Also make it easier to track down the problem with lost LDFLAGS values
on AIX.

metze
(This used to be commit 3367e306e6aa5c2007fb41655b7af1fd37dea47d)

16 years agor18969: Fix typo.
Günther Deschner [Thu, 28 Sep 2006 03:21:49 +0000 (03:21 +0000)]
r18969: Fix typo.

Guenther
(This used to be commit 31f21282cd5fb27c867615790e7fd27df4cd4c0e)

16 years agor18966: this bug affects Samba3 too. I'm actually surprised nobody has
Andrew Tridgell [Wed, 27 Sep 2006 23:31:53 +0000 (23:31 +0000)]
r18966: this bug affects Samba3 too. I'm actually surprised nobody has
reported that Samba3 on Solaris Sparc with the native compiler can't
join Windows domains. If it worked we were just lucky. I suspect it
just didn't work.
(This used to be commit 9df1e7d98973ac1ec6ba25d528591216e568f2f3)

16 years agor18964: fix 'net rpc registry save' to use the new wnireg client code
Gerald Carter [Wed, 27 Sep 2006 21:37:43 +0000 (21:37 +0000)]
r18964: fix 'net rpc registry save' to use the new wnireg client code
(This used to be commit f2747daafc2f1cd515570c676b2660ab6fcba740)

16 years agor18963: * Move parts of registry headers that were still in
Gerald Carter [Wed, 27 Sep 2006 19:03:54 +0000 (19:03 +0000)]
r18963: * Move parts of registry headers that were still in
  use to reg_objects.h
* Remove unused rpc headers
(This used to be commit 4f79d8c83db5af80078114e9fb39171380d040b1)

16 years agor18962: * Add IDL for SaveKey() and RestoreKey() and regenerated
Gerald Carter [Wed, 27 Sep 2006 16:05:25 +0000 (16:05 +0000)]
r18962: * Add IDL for SaveKey() and RestoreKey() and regenerated
* Tested RegSaveKey() using win32 app.  Apparently
  this code has been brokne for a really long time.
(This used to be commit 5381dcbde34206462562bdfc7639f488820a5a64)

16 years agor18961: merge from samba4:
Stefan Metzmacher [Wed, 27 Sep 2006 14:47:36 +0000 (14:47 +0000)]
r18961: merge from samba4:

fix caching of some configure tests AC_CACHE_CHECK()
*needs* '_cv_' in the shell var to do caching...

metze
(This used to be commit c460f28b68b75342bfabe3b396dd06e07a668ec4)

16 years agor18959: reformat using indent
Gerald Carter [Wed, 27 Sep 2006 14:32:18 +0000 (14:32 +0000)]
r18959: reformat using indent
(This used to be commit 69c298f85d44ac3138d11de2db34923a3328e119)

16 years agor18958: merge from samba4:
Stefan Metzmacher [Wed, 27 Sep 2006 14:18:08 +0000 (14:18 +0000)]
r18958: merge from samba4:

we need to include unistd.h in system/network.h because
it contains the ioctl() prototype on some systems
and we need to make sure it gets included before socket_wrapper
defines ioctl swrap_ioctl

metze
(This used to be commit d8275347606cd183caea69837fd765b96d4bab71)

16 years agor18956: fix -pie and -fPIE together with configure -C
Stefan Metzmacher [Wed, 27 Sep 2006 14:10:35 +0000 (14:10 +0000)]
r18956: fix -pie and -fPIE together with configure -C

metze
(This used to be commit aafb86f6eb8661a1905a0ca4acda6673e9df51d5)