bbaumbach/samba-autobuild/.git
16 years agor19192: merge from samba4:
Stefan Metzmacher [Mon, 9 Oct 2006 08:26:58 +0000 (08:26 +0000)]
r19192: merge from samba4:

ensure that data values from ldap libs are null terminated, to allow
ldb_msg_find_attr_as_string() to work correctly.

Thanks to Jim Myers for spotting this!

metze
(This used to be commit a5ea82bb05fb9d5c1842f9a105f6a10e39141c89)

16 years agor19191: merge from samba4:
Stefan Metzmacher [Mon, 9 Oct 2006 08:25:27 +0000 (08:25 +0000)]
r19191: merge from samba4:

fix checker warnings

metze
(This used to be commit 93a0fe093b4614a18e99d0c3a71c5c8af2e57e4f)

16 years agor19190: merge from samba4:
Stefan Metzmacher [Mon, 9 Oct 2006 08:22:59 +0000 (08:22 +0000)]
r19190: merge from samba4:

remove wrong check and statement.
to manipulate rootDSE we use ldb_dn_new() as base and that has 0 elements.

metze
(This used to be commit b81cae4180452d2a14c445392fd828032e6eddec)

16 years agor19189: No display name is normal for some GPOs.
Günther Deschner [Mon, 9 Oct 2006 08:11:35 +0000 (08:11 +0000)]
r19189: No display name is normal for some GPOs.

Guenther
(This used to be commit 1ec1c5dd17c498d5a8a9804ad2ef114fb7603c31)

16 years agor19185: merge comment from samba4
Stefan Metzmacher [Mon, 9 Oct 2006 07:24:00 +0000 (07:24 +0000)]
r19185: merge comment from samba4

metze
(This used to be commit 256b83820168d14df2b15a75d8681be5f418ddf8)

16 years agor19184: W2k3 returns its name for the GetServerInfo RAP call. Do the same.
Volker Lendecke [Mon, 9 Oct 2006 07:17:37 +0000 (07:17 +0000)]
r19184: W2k3 returns its name for the GetServerInfo RAP call. Do the same.

Implement 'net rap server name'.

Volker
(This used to be commit 919385ed2a2a07e848bc0baaac9ed3d1964d4386)

16 years agor19183: merge from samba4:
Stefan Metzmacher [Mon, 9 Oct 2006 07:15:27 +0000 (07:15 +0000)]
r19183: merge from samba4:

don't crash on invalid utf8 chars

metze
(This used to be commit 71e1f8550f96eaaae7e4fc4d02eb36f1d894abc8)

16 years agor19182: merge from samba4:
Stefan Metzmacher [Mon, 9 Oct 2006 07:05:08 +0000 (07:05 +0000)]
r19182: merge from samba4:

add ldb_set_create_perms() function to set the create_perms after
ldb_init() and before ldb_connect()

metze
(This used to be commit dd9d469eef337954b6aee4c86ac0691f52812456)

16 years agor19181: merge from samba4:
Stefan Metzmacher [Mon, 9 Oct 2006 06:48:55 +0000 (06:48 +0000)]
r19181: merge from samba4:

with "export MAKE_TEST_KEEP_PCAP=yes" make test
doesn't delete the generated pcap files

metze
(This used to be commit 74212c30563826e2248c1cb16e4c953a28a25488)

16 years agor19179: remove difference with samba4
Stefan Metzmacher [Sun, 8 Oct 2006 21:54:19 +0000 (21:54 +0000)]
r19179: remove difference with samba4

metze
(This used to be commit e97e1ffea8e124c8001cf33ecac7500ae875f42f)

16 years agor19177: merge from samba4:
Stefan Metzmacher [Sun, 8 Oct 2006 21:50:22 +0000 (21:50 +0000)]
r19177: merge from samba4:

fix the standalone build of socket_wrapper by not using
samba's DLIST_ macros

metze
(This used to be commit bc7b2e8db8fb34d6f321cd6b13b74e58945d7124)

16 years agor19172: merge from samba4:
Stefan Metzmacher [Sun, 8 Oct 2006 20:49:05 +0000 (20:49 +0000)]
r19172: merge from samba4:

change the socket wrapper license to
what heimdal uses...

metze
(This used to be commit d19c19ae4be3f3ad349b72ba3181051bb4da335e)

16 years agor19170: use a very clever trick to pass the binary name to the
Stefan Metzmacher [Sun, 8 Oct 2006 20:38:25 +0000 (20:38 +0000)]
r19170: use a very clever trick to pass the binary name to the
gdb_backtrace script, I never noticed that %$(envvar)
exists...

Thanks to Bjoern Jacke for the suggestion!

metze
(This used to be commit 12a37bab3eafdabeb4f0dc23254bdec41860cd87)

16 years agor19169: port the trick to only display the smbd and nmbd log output
Stefan Metzmacher [Sun, 8 Oct 2006 20:30:09 +0000 (20:30 +0000)]
r19169: port the trick to only display the smbd and nmbd log output
of the current test

metze
(This used to be commit f668d4839de0ec98fcacf2efb6a69970757bebdd)

16 years agor19168: use the correct configuration
Stefan Metzmacher [Sun, 8 Oct 2006 20:17:55 +0000 (20:17 +0000)]
r19168: use the correct configuration

metze
(This used to be commit bf90ac567fc809bb8949b066e822a88170b73ac5)

16 years agor19164: merge the gdb_backtrace script from samba4
Stefan Metzmacher [Sat, 7 Oct 2006 10:33:33 +0000 (10:33 +0000)]
r19164: merge the gdb_backtrace script from samba4

this more portable and try to make use of ladebug on Tru64,
but that only works when the binary is passed as 2nd arg to gdb_backtrace
as Tru64 doesn't know /proc/${PID}/exe

we need to find a way to pass the progname in 'panic action'
in samba3

metze
(This used to be commit 2f55fd82ff5db82974f91648cc386daa423e38be)

16 years agor19163: pass always a mem_ctx to functions and a ldb_context where needed
Stefan Metzmacher [Sat, 7 Oct 2006 10:24:16 +0000 (10:24 +0000)]
r19163: pass always a mem_ctx to functions and a ldb_context where needed

It would be nice if someone can merge that to samba4,
otherwise I'll merge that to samba4 on monday

metze
(This used to be commit 6bc42f31ce294f2bd50ffbd536e1ee42607ef799)

16 years agor19161: Add NET_GETANYDCNAME (getdcname only gives the PDC while getanydcname
Günther Deschner [Sat, 7 Oct 2006 05:26:21 +0000 (05:26 +0000)]
r19161: Add NET_GETANYDCNAME (getdcname only gives the PDC while getanydcname
gives just any DC), also make sure to set timeouts in rpcclient
accordingly so that we actually get the DC's reply.

Guenther
(This used to be commit 6091c8152a3998d2503cb0911a217ee904509633)

16 years agor19160: Add new WERR codes seen by working with NETLOGON getdcname.
Günther Deschner [Sat, 7 Oct 2006 05:23:56 +0000 (05:23 +0000)]
r19160: Add new WERR codes seen by working with NETLOGON getdcname.

Guenther
(This used to be commit 78b0124a6e7051da2df3157f02593f06f7f31a1b)

16 years agor19159: The getdc call can take a long time. Allow for timeouts.
Jeremy Allison [Fri, 6 Oct 2006 21:35:26 +0000 (21:35 +0000)]
r19159: The getdc call can take a long time. Allow for timeouts.
Jeremy.
(This used to be commit 99bebb65273c78d9867254c47438577bb21af4ee)

16 years agor19158: Remove root and nobody users from ldif, from Björn Jacke
Jim McDonough [Fri, 6 Oct 2006 20:09:10 +0000 (20:09 +0000)]
r19158: Remove root and nobody users from ldif, from Björn Jacke
(This used to be commit 17880d6cadbb0b1b428430c26bb4b4545eb834ff)

16 years agor19157: Fix the build
Volker Lendecke [Fri, 6 Oct 2006 19:49:16 +0000 (19:49 +0000)]
r19157: Fix the build
(This used to be commit 3fc328dadeb5b4b35c6d58ba26c3ac9d1fcf4015)

16 years agor19156: Make enumprinters use the share iterators.
Volker Lendecke [Fri, 6 Oct 2006 19:32:52 +0000 (19:32 +0000)]
r19156: Make enumprinters use the share iterators.

Volker
(This used to be commit 9b1759617ce7841a78d9f792254a9e4fa814858f)

16 years agor19155: Fix debug message.
Jeremy Allison [Fri, 6 Oct 2006 19:10:32 +0000 (19:10 +0000)]
r19155: Fix debug message.
Jeremy.
(This used to be commit 42e5481ce4bebc65040d466b49e3c45cd4e79f5d)

16 years agor19154: Trivial logic simplification: Get rid of two indentation levels. Survives the
Volker Lendecke [Fri, 6 Oct 2006 19:07:23 +0000 (19:07 +0000)]
r19154: Trivial logic simplification: Get rid of two indentation levels. Survives the
consistency checks just checked into Samba4.

Volker
(This used to be commit c48bb4b37b32fac9d01d243290532641d3701ec7)

16 years agor19151: Create some dummy printers in the build farm
Volker Lendecke [Fri, 6 Oct 2006 18:49:29 +0000 (18:49 +0000)]
r19151: Create some dummy printers in the build farm
(This used to be commit c26a20e6d5ac36be137fa63f477155a9613f050f)

16 years agor19148: Finish last nights patch - make offline
Jeremy Allison [Fri, 6 Oct 2006 17:33:57 +0000 (17:33 +0000)]
r19148: Finish last nights patch - make offline
work again. Still under test.
Jeremy.
(This used to be commit 40a455db78f805daa6bfeb9e78fb78dcc12fd9a7)

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)