jra/samba/.git
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)

16 years agor18955: fix the build on solaris where unistd.h needs to be includes before
Stefan Metzmacher [Wed, 27 Sep 2006 13:52:14 +0000 (13:52 +0000)]
r18955: fix the build on solaris where unistd.h needs to be includes before
socket_wrapper defined ioctl swrap_ioctl

metze
(This used to be commit e43d1f6c17c8a44c989a57309b8378c1dd8f591c)

16 years agor18954: Fix segv in QueryValue and Enumvalue. regedit.exe now
Gerald Carter [Wed, 27 Sep 2006 13:24:57 +0000 (13:24 +0000)]
r18954: Fix segv in QueryValue and Enumvalue.  regedit.exe now
is happy again when creating keys and values
(This used to be commit 6e9e9f8facbdd694041709e1fc6a8f824ac8c119)

16 years agor18953: sync socket_wrapper with samba4
Stefan Metzmacher [Wed, 27 Sep 2006 12:43:51 +0000 (12:43 +0000)]
r18953: sync socket_wrapper with samba4

metze
(This used to be commit 77b0af43f0f7e52b9040a1d3edfb556a232e64f1)

16 years agor18952: fix compiler warning (merge from samba4)
Stefan Metzmacher [Wed, 27 Sep 2006 12:43:08 +0000 (12:43 +0000)]
r18952: fix compiler warning (merge from samba4)

metze
(This used to be commit 4cd59d47c8d21685cfab45f4bcfc005c5d7cf79e)

16 years agor18951: socket_wrapper has only 16 interfaces anymore...
Stefan Metzmacher [Wed, 27 Sep 2006 12:42:24 +0000 (12:42 +0000)]
r18951: socket_wrapper has only 16 interfaces anymore...

metze
(This used to be commit a1966a9c073b597407ee925d1fda53dfa7453e98)

16 years agor18950: I can't see where stropts.h and poll.h are needed
Stefan Metzmacher [Wed, 27 Sep 2006 11:39:43 +0000 (11:39 +0000)]
r18950: I can't see where stropts.h and poll.h are needed
(I just removed the only reference to poll() in my last commit)

they were added in this commit, without make usage of them.

http://cvs.samba.org/cgi-bin/cvsweb/samba/source/configure.in.diff?r1=1.21&r2=1.22&f=h
http://cvs.samba.org/cgi-bin/cvsweb/samba/source/include/includes.h.diff?r1=1.105&r2=1.106&f=h

metze
(This used to be commit b852cf46c213b2e059a66cbe0d058ed063c37957)

16 years agor18949: use sys_usleep()
Stefan Metzmacher [Wed, 27 Sep 2006 11:37:02 +0000 (11:37 +0000)]
r18949: use sys_usleep()

metze
(This used to be commit f9944941415b88559b67f6c7e780e364d5030240)

16 years agor18941: Minor cleanup in ads_parse_gpo().
Günther Deschner [Wed, 27 Sep 2006 04:37:34 +0000 (04:37 +0000)]
r18941: Minor cleanup in ads_parse_gpo().

Guenther
(This used to be commit 7579a91f81a43f570987fecca03c19f559887685)

16 years agor18940: Fix a few memory corruption bugs to make CreateKey() and DeleteKey() work
Gerald Carter [Wed, 27 Sep 2006 03:43:42 +0000 (03:43 +0000)]
r18940: Fix a few memory corruption bugs to make CreateKey() and DeleteKey() work
(This used to be commit e7e3e35c1def29430dc69d3311d5779575659ec5)

16 years agor18939: don't rely on the umask being right in ldb creation. Both Samba3 and
Andrew Tridgell [Wed, 27 Sep 2006 03:34:50 +0000 (03:34 +0000)]
r18939: don't rely on the umask being right in ldb creation. Both Samba3 and
Samba4 smbd force the umask to 0, which meant we ended up with ldb
being world writable.

This isn't really an ideal fix, as it means ldb no longer honors umask
(as it should do, like all good libraries).

Unfortunately the 'proper' fix is too complex for now

this also merges a tiny code style fix from s4 to s3
(This used to be commit dd8ec8725f168f4286bbfc00d69cd56089ba3543)

16 years agor18938: fixed a group map bug reported by Jerry. The caller in mapping.c
Andrew Tridgell [Wed, 27 Sep 2006 03:29:38 +0000 (03:29 +0000)]
r18938: fixed a group map bug reported by Jerry. The caller in mapping.c
relies on appending to this list. Unfortunately this can't be tested
using 'net groupmap'
(This used to be commit a8d398edf0ce08b2a53342e80c2017f1805908d5)

16 years agor18937: Protect against segc in the idmap winbindd child process
Gerald Carter [Wed, 27 Sep 2006 02:26:03 +0000 (02:26 +0000)]
r18937: Protect against segc in the idmap winbindd child process
(the domain is NULL here)
(This used to be commit a36de910d289363a5374fe063099311712d4e57a)

16 years agor18935: Make "netshareenum" work again. There is most probably a better way to
Günther Deschner [Tue, 26 Sep 2006 23:43:58 +0000 (23:43 +0000)]
r18935: Make "netshareenum" work again. There is most probably a better way to
do this... Any pointers?

Guenther
(This used to be commit 1f09e54fec9ac2e6173272d83d8c96d33636f1a0)

16 years agor18934: fix a segv in CreateKey()
Gerald Carter [Tue, 26 Sep 2006 22:39:40 +0000 (22:39 +0000)]
r18934: fix a segv in CreateKey()
(This used to be commit 92f22f67ede2ae8c23ee86021a5709d2e27d1dec)

16 years agor18932: In RegEnumvalue() and RegQueryValue(), the output buffer
Gerald Carter [Tue, 26 Sep 2006 22:03:52 +0000 (22:03 +0000)]
r18932: In RegEnumvalue() and RegQueryValue(), the output buffer
size must match the real value of the data.
(This used to be commit e11108024a049f6a62d6c170296ee9877200a0c0)

16 years agor18931: * Fix the IDL for QueryInfoKey. teh Classname in an
Gerald Carter [Tue, 26 Sep 2006 21:01:57 +0000 (21:01 +0000)]
r18931: * Fix the IDL for QueryInfoKey.  teh Classname in an
  in,out ref pointer
* Clarify variable names in EnumValue IDL
* Fix server code for _winreg_EnumValue() and _winreg_QueryInfoKe()
(This used to be commit f520a9d0fba4cc3cfbda40dd68cb63c4c3c4ed30)

16 years agor18929: * Clarify QueryValue IDL and regenerate code
Gerald Carter [Tue, 26 Sep 2006 19:37:37 +0000 (19:37 +0000)]
r18929: * Clarify QueryValue IDL and regenerate code
* Fix server _winreg_Query_Value() implementation so that
  usrmgr.exe starts now
(This used to be commit 435d7bfc37f430c462fcb53bf3a82fcddc809771)

16 years agor18928: Some more const for iniparser.
Günther Deschner [Tue, 26 Sep 2006 19:12:39 +0000 (19:12 +0000)]
r18928: Some more const for iniparser.

Guenther
(This used to be commit ac3de529b311e818805b2f5a6ab652ab7fa3ee2d)

16 years agor18927: Fix build. *please* compile the code at least once before checking it in.
Gerald Carter [Tue, 26 Sep 2006 18:31:47 +0000 (18:31 +0000)]
r18927: Fix build.  *please* compile the code at least once before checking it in.
(This used to be commit 4e464a2c35984752244f30ce9bb259eb16149e3f)

16 years agor18926: Add some useful macros.
Günther Deschner [Tue, 26 Sep 2006 17:22:15 +0000 (17:22 +0000)]
r18926: Add some useful macros.

Guenther
(This used to be commit 9be5cb27e4da061ddf03ae6321c29890f6cf585b)

16 years agor18924: Minor cleanup.
Günther Deschner [Tue, 26 Sep 2006 16:35:34 +0000 (16:35 +0000)]
r18924: Minor cleanup.

Guenther
(This used to be commit 143a48927b0e21d31a9f54cfc720b5d04a4b6751)

16 years agor18923: Fix more memleaks.
Günther Deschner [Tue, 26 Sep 2006 16:27:18 +0000 (16:27 +0000)]
r18923: Fix more memleaks.

Guenther
(This used to be commit ecb632a1534d5178602b9143bb17712559fe2e4f)

16 years agor18922: Apply some const.
Günther Deschner [Tue, 26 Sep 2006 16:26:43 +0000 (16:26 +0000)]
r18922: Apply some const.

Guenther
(This used to be commit d87994788b2c91992d804d8c2465adefc83451b1)

16 years agor18921: Fix some c++ warnings.
Günther Deschner [Tue, 26 Sep 2006 16:26:17 +0000 (16:26 +0000)]
r18921: Fix some c++ warnings.

Guenther
(This used to be commit b1bc7fd347978620eb8bc79dc253fab5b207a40b)

16 years agor18920: merge socket_wrapper changes from samba4
Stefan Metzmacher [Tue, 26 Sep 2006 15:23:59 +0000 (15:23 +0000)]
r18920: merge socket_wrapper changes from samba4

metze
(This used to be commit b36d47c698b01a577af04205c9bdf0d588bd20e6)

16 years agor18919: * Get the new rpccli_winreg_XXXX() functions into the tree
Gerald Carter [Tue, 26 Sep 2006 15:15:26 +0000 (15:15 +0000)]
r18919: * Get the new rpccli_winreg_XXXX() functions into the tree
  There some broken functionality here that I'm still working on.
* remove unneeded parsing routines
(This used to be commit cbfe1a4b498593a48fc34f584754ed4a9ef72cc5)

16 years agor18912: we don't need the special case for comments now in the
Andrew Tridgell [Tue, 26 Sep 2006 02:49:16 +0000 (02:49 +0000)]
r18912: we don't need the special case for comments now in the

This also fixes comments in group mappings, as the code accidentially
put in "ntName" in the comment field :-)
(This used to be commit 7f1f5d6056da8ac55a41db54b68bf25967f81aaf)

16 years agor18910: Change ldb_msg_add_string() to not actually add an attribute if the
Andrew Tridgell [Tue, 26 Sep 2006 01:21:34 +0000 (01:21 +0000)]
r18910: Change ldb_msg_add_string() to not actually add an attribute if the
string is zero length. This allows callers to not have to worry about
creating an invalid ldap attribute.

See extensive discussion on samba-technical list :-)
(This used to be commit 9e66df05a4df3d3c7b02048d80e2661103d1d40a)

16 years agor18907: W00t. My original fix was correct after all :-).
Jeremy Allison [Mon, 25 Sep 2006 20:59:48 +0000 (20:59 +0000)]
r18907: W00t. My original fix was correct after all :-).
Re-checking it in.
Fix bug #4095 - username composed into domain\user
twice in spnego path.
Jeremy.
(This used to be commit 0c770467519e73897462e730c3226e65668d3890)

16 years agor18906: Fix 'make clean' to deal with new lib/ldb/ directory structure.
Gerald Carter [Mon, 25 Sep 2006 18:33:15 +0000 (18:33 +0000)]
r18906: Fix 'make clean' to deal with new lib/ldb/ directory structure.
(This used to be commit 9b43d7c63ad9f420188ba92c4a8f679757a9c9da)

16 years agor18905: I'm not really proud of this but I don't want to maintain
Gerald Carter [Mon, 25 Sep 2006 18:18:40 +0000 (18:18 +0000)]
r18905: I'm not really proud of this but I don't want to maintain
2 separate CPPFLAGS variables.  So just cleanup the SAMBA_CPPFLAGS
for out of tree builds.  This has been tested locally and works.
Maybe metze can find a better way tomorrow.
(This used to be commit 8aa681df992b8f856f454673f95d4266aba4671c)

16 years agor18904: * Revert previous fix for building out of tree and
Gerald Carter [Mon, 25 Sep 2006 17:34:32 +0000 (17:34 +0000)]
r18904: * Revert previous fix for building out of tree and
  add a better one which fixes the network interface detection
  breakage (caused by the previous commit).
(This used to be commit 7e908acdefe4728fc6ad04770915466ac9556a33)

16 years agor18902: Also dump mS-DS-CreatorSID.
Günther Deschner [Mon, 25 Sep 2006 16:55:19 +0000 (16:55 +0000)]
r18902: Also dump mS-DS-CreatorSID.

Guenther
(This used to be commit e7cae9bbae2848ca1088a822883563062dd3f612)

16 years agor18901: try to fix the samba3 build without having ldap
Stefan Metzmacher [Mon, 25 Sep 2006 16:47:50 +0000 (16:47 +0000)]
r18901: try to fix the samba3 build without having ldap

vl: you were a few seconds faster than me...:-)

metze
(This used to be commit 63e5727471bdf686f292a36aa43267213fb6e2f3)

16 years agor18900: Next attempt to fix the Solaris build. Not sure about whether to merge this
Volker Lendecke [Mon, 25 Sep 2006 16:29:26 +0000 (16:29 +0000)]
r18900: Next attempt to fix the Solaris build. Not sure about whether to merge this
one. Tridge? Metze?

Volker
(This used to be commit d0eef2f6e870031538959f2308a3414fc68ef18c)

16 years agor18899: remove check for root when running configure since it does not appear to...
Gerald Carter [Mon, 25 Sep 2006 16:27:33 +0000 (16:27 +0000)]
r18899: remove check for root when running configure since it does not appear to be used anymore
(This used to be commit da17fb41dbf69cafaceb96674fa41744deb487f7)

16 years agor18898: Fix for bug #4100 from Udo Eberhardt <udo.eberhardt@thesycon.de>.
Jeremy Allison [Mon, 25 Sep 2006 16:26:25 +0000 (16:26 +0000)]
r18898: Fix for bug #4100 from Udo Eberhardt <udo.eberhardt@thesycon.de>.
Ensure we initialize values for smb_io_notify_info_data_strings to
fix crash.
Jeremy.
(This used to be commit ceefb8dd3ca67449d5afbf556e9879abb37830ac)

16 years agor18897: Fix valgrind bug found by Volker.
Jeremy Allison [Mon, 25 Sep 2006 16:19:30 +0000 (16:19 +0000)]
r18897: Fix valgrind bug found by Volker.
Jeremy.
(This used to be commit db458d3e8bdd11812cea34128df6a3c29baa59c3)

16 years agor18896: * Fix out of tree builds after libreplace merge
Gerald Carter [Mon, 25 Sep 2006 14:07:33 +0000 (14:07 +0000)]
r18896: * Fix out of tree builds after libreplace merge
* Remove unused -D define in Makefile
(This used to be commit 3c9632bedca5ff3816f5f7b8b5f47b29c4e7fa02)

16 years agor18895: AIX need to call pidl with --uint-enums as the compiler doesn't
Stefan Metzmacher [Mon, 25 Sep 2006 12:59:31 +0000 (12:59 +0000)]
r18895: AIX need to call pidl with --uint-enums as the compiler doesn't
like negative values in the generated code.

I'm not sure how we can solve that in samba3 as the generated code is commited

Maybe we need to alsways pass --uint-enums

metze
(This used to be commit 9468dcc5d564d7242d527eb770717e2b4480cf1c)

16 years agor18893: Attempt to fix the Solaris build
Volker Lendecke [Mon, 25 Sep 2006 05:35:51 +0000 (05:35 +0000)]
r18893: Attempt to fix the Solaris build
(This used to be commit db838f49a0e9de6881b36b10fe2c3862862b1908)

16 years agor18892: Copy over the Samba4 valgrind suppressions
Volker Lendecke [Mon, 25 Sep 2006 05:11:16 +0000 (05:11 +0000)]
r18892: Copy over the Samba4 valgrind suppressions
(This used to be commit 6d7e3f39832535ece5b367ad0ec2c59e5ab656d8)

16 years agor18891: Fix "double const" warning from host opi
Volker Lendecke [Mon, 25 Sep 2006 05:06:42 +0000 (05:06 +0000)]
r18891: Fix "double const" warning from host opi
(This used to be commit 47c19811ae2282259f523a0d41a08d84de74cbda)

16 years agor18889: Add some const. What's the policy here? Should I do this in Samba4 as well?
Volker Lendecke [Mon, 25 Sep 2006 04:55:07 +0000 (04:55 +0000)]
r18889: Add some const. What's the policy here? Should I do this in Samba4 as well?

Volker
(This used to be commit fd020a1998db7660ab093c136207df4fb09720cb)

16 years agor18888: Fix a 64-bit warning
Volker Lendecke [Mon, 25 Sep 2006 04:52:30 +0000 (04:52 +0000)]
r18888: Fix a 64-bit warning
(This used to be commit 94b53f2f2abf7be003aebdb586b154dfda56d120)

16 years agor18886: First, RPC_SRVSVC is called RPC-SRVSVC and second, we're so far off on that
Volker Lendecke [Mon, 25 Sep 2006 04:17:38 +0000 (04:17 +0000)]
r18886: First, RPC_SRVSVC is called RPC-SRVSVC and second, we're so far off on that
one that there's no point yet to run this in the build farm.

Volker
(This used to be commit bbd9f0bb6f58cda0ed4f18a3c19221cacfef1c0f)

16 years agor18879: Fix crash for "net ads gpo list".
Günther Deschner [Sun, 24 Sep 2006 23:44:00 +0000 (23:44 +0000)]
r18879: Fix crash for "net ads gpo list".

Guenther
(This used to be commit 7df5808d8b1d9458dbd47b92750c0b128325335c)

16 years agor18878: With the recent checkins for me Samba3 compiles again with the NTSTATUS/WERROR
Volker Lendecke [Sun, 24 Sep 2006 22:13:43 +0000 (22:13 +0000)]
r18878: With the recent checkins for me Samba3 compiles again with the NTSTATUS/WERROR
checks enabled. I'll look at the build farm in a couple of hours and fix it if
not.

Volker
(This used to be commit 58583aa9431034be0ea03f0bc3c69463fb9c8c22)

16 years agor18877: More WERROR/NTSTATUS bugs
Volker Lendecke [Sun, 24 Sep 2006 22:11:36 +0000 (22:11 +0000)]
r18877: More WERROR/NTSTATUS bugs
(This used to be commit 88a928a2332b96124935c547cf5ee16163865d84)

16 years agor18876: Fix smbclient -L
Volker Lendecke [Sun, 24 Sep 2006 22:11:14 +0000 (22:11 +0000)]
r18876: Fix smbclient -L
(This used to be commit a03fb81a9d16c9db787c539d63c13ecaf6d6f80d)

16 years agor18875: The comment field can be empty
Volker Lendecke [Sun, 24 Sep 2006 22:10:48 +0000 (22:10 +0000)]
r18875: The comment field can be empty
(This used to be commit 6d5d7bf4bbcfee77853776af59e00d006fd86dc9)

16 years agor18874: Fix some NTSTATUS/WERROR mixups
Volker Lendecke [Sun, 24 Sep 2006 22:10:20 +0000 (22:10 +0000)]
r18874: Fix some NTSTATUS/WERROR mixups
(This used to be commit ecac9b59594ef14a65091591c258b000036575fc)

16 years agor18871: Fix copy/paste mixup.
Günther Deschner [Sun, 24 Sep 2006 07:25:08 +0000 (07:25 +0000)]
r18871: Fix copy/paste mixup.

Guenther
(This used to be commit 2a605a0b175dc0ccc65ee2dc68e394bef7c954d1)

16 years agor18870: - enable the ldb ldap backend properly based on configure tests for
Andrew Tridgell [Sun, 24 Sep 2006 07:11:34 +0000 (07:11 +0000)]
r18870: - enable the ldb ldap backend properly based on configure tests for
  ldap

- use ldb_global_init() instead of the backend specific
  ldb_tdb_init().
(This used to be commit a6c53e58616d7731a1df9af33f78ccf0c774296e)

16 years agor18869: two build fixes for systems without ldap
Andrew Tridgell [Sun, 24 Sep 2006 03:15:58 +0000 (03:15 +0000)]
r18869: two build fixes for systems without ldap

the first is to not enable the ldap ldb backend just yet. This will
need configure tests to conditionally include. We should be able to
use the m4 files from lib/ldb/

The 2nd is to fix libads/gpo.o not to publicly prototype a function
that needs ldap.h
(This used to be commit 1cf17edc14ebd379b982b589a66e86316ef7087b)

16 years agor18868: just in case there is a disaster (with our code? never ...) use a
Andrew Tridgell [Sun, 24 Sep 2006 02:58:58 +0000 (02:58 +0000)]
r18868: just in case there is a disaster (with our code? never ...) use a
rename to group_mapping.tdb.upgraded rather than an unlink when
upgrading. So if we absolutely have to go back to the tdb, we can
change mapping_ldb.o to mapping_tdb.o in Makefile.in and recover
peoples group mappings.

We could go one step futher and make the backend configurable. Any
opinions on that?
(This used to be commit 203fc0b03c7397f7339a917456cb1701ed592f32)

16 years agor18867: change the group mapping code to use ldb instead of tdb
Andrew Tridgell [Sun, 24 Sep 2006 02:52:25 +0000 (02:52 +0000)]
r18867: change the group mapping code to use ldb instead of tdb

See the discussion of this on the samba-technical list
(This used to be commit 4ad1436ceae0128e187222fce0fc79adb3049d3f)

16 years agor18866: Jeremy and Volker have given the go-ahead on the group mapping ldb
Andrew Tridgell [Sun, 24 Sep 2006 02:49:04 +0000 (02:49 +0000)]
r18866: Jeremy and Volker have given the go-ahead on the group mapping ldb
code. Yay!

This first commit copies lib/ldb/ from Samba4. A huge congratulations
should go to Simo on this - he has put an enormous amount of work into
ldb, and it's great to see it go into the Samba3 tree.
(This used to be commit bbedf2e34315f5c420a3a05dfe22b1d5cf79f042)

16 years agor18865: fixed some of the most obvious NTSTATUS/WERROR mixups in Samba3. It
Andrew Tridgell [Sun, 24 Sep 2006 02:32:34 +0000 (02:32 +0000)]
r18865: fixed some of the most obvious NTSTATUS/WERROR mixups in Samba3. It
still doesn't compile with immediate structures and the
NTSTATUS/WERROR separation, as there are still several places where
the two error types are mixed up. I haven't fixed those as they
require decisions about the rpcclient code that I really don't want to
get into (the error handling there is a mess)

So samba3 compiles now, but only becaise HAVE_IMMEDIATE_STRUCTURES is
not used (look for HAVE_IMMEDIATE_STRUCTURES_XX_DISABLED)
(This used to be commit 8438a6a7d4506d395c8b4bd0e99f9c100e5e3c4e)

16 years agor18864: merge lib/replace changes from samba4
Andrew Tridgell [Sun, 24 Sep 2006 02:29:12 +0000 (02:29 +0000)]
r18864: merge lib/replace changes from samba4
(This used to be commit 6d5f507136be327558e98214b64eca225ca23d66)

16 years agor18863: the test for immediate structures has moved to lib/replace/
Andrew Tridgell [Sun, 24 Sep 2006 02:28:28 +0000 (02:28 +0000)]
r18863: the test for immediate structures has moved to lib/replace/
(This used to be commit 46d8433a4f8918b5e21def2dc55a62adfde234b1)

16 years agor18858: arrgh! - since HAVE_IMMEDIATE_STRUCTURES were last enabled the code
Andrew Tridgell [Sat, 23 Sep 2006 21:41:41 +0000 (21:41 +0000)]
r18858: arrgh! - since HAVE_IMMEDIATE_STRUCTURES were last enabled the code
can no longer handle it (at least with gcc 4.1.2). Disable it until
investigated and fixed properly.
(This used to be commit c8670b33b490daeaff987c21fcb0ec601a91d54e)

16 years agor18857: Re-enable the CC checks from libreplace after Tridge's fix. Thanks for that!
Volker Lendecke [Sat, 23 Sep 2006 21:35:25 +0000 (21:35 +0000)]
r18857: Re-enable the CC checks from libreplace after Tridge's fix. Thanks for that!

Volker
(This used to be commit 91955c1f266e8f8ee9d4775dffdcc59b44280060)

16 years agor18856: fixed HAVE_IMMEDIATE_STRUCTURES and thus checking of NTSTATUS/BOOL
Andrew Tridgell [Sat, 23 Sep 2006 21:29:51 +0000 (21:29 +0000)]
r18856: fixed HAVE_IMMEDIATE_STRUCTURES and thus checking of NTSTATUS/BOOL
mixups
(This used to be commit 21a458ab9d132e09b9b00e4dbb32af4275b7c2fb)

16 years agor18855: Tell the diff between WERROR and NTSTATUS
Volker Lendecke [Sat, 23 Sep 2006 21:27:48 +0000 (21:27 +0000)]
r18855: Tell the diff between WERROR and NTSTATUS

Volker
(This used to be commit 5cc4117692572f086b44324949546463681b837e)

16 years agor18854: Disable the AC_LIBREPLACE_CC_CHECKS, this breaks the HAVE_IMMEDIATE_STRUCTURES
Volker Lendecke [Sat, 23 Sep 2006 21:23:48 +0000 (21:23 +0000)]
r18854: Disable the AC_LIBREPLACE_CC_CHECKS, this breaks the HAVE_IMMEDIATE_STRUCTURES
test with gcc 4.1.0. As the build farm is not in the best state right now,
this should not matter.

Stefan, is there any chance we get the IMMEDIATE_STRUCTURES back and have
libreplace at the same time?

Volker
(This used to be commit 776bd5e36d439a59e2c557e9405a30eeedd78fd2)

16 years agor18853: Fix remaining warnings. Volker, should be fine now.
Günther Deschner [Sat, 23 Sep 2006 21:06:33 +0000 (21:06 +0000)]
r18853: Fix remaining warnings. Volker, should be fine now.

Guenther
(This used to be commit 40a6169aceb51dc7f73ae72ebac2e55c6b1edc3f)

16 years agor18852: Fix compiler warning (thanks Volker).
Günther Deschner [Sat, 23 Sep 2006 20:53:45 +0000 (20:53 +0000)]
r18852: Fix compiler warning (thanks Volker).

Guenther
(This used to be commit 01a8562fe164453af4c5946710f9e58f917df2ce)

16 years agor18846: Fix the same bug Volker noticed when marshalling/unmarshalling
Jeremy Allison [Sat, 23 Sep 2006 18:24:03 +0000 (18:24 +0000)]
r18846: Fix the same bug Volker noticed when marshalling/unmarshalling
SEC_ACE. "type" is also an enum that may be any size. Treat as
a uint8.
Jeremy.
(This used to be commit fd97f48ba38cb6a737302dac5cf23239ce7059cc)

16 years agor18845: Fix a type-punned warning that turned out to be a real bug: The secdesc
Volker Lendecke [Sat, 23 Sep 2006 17:59:52 +0000 (17:59 +0000)]
r18845: Fix a type-punned warning that turned out to be a real bug: The secdesc
revision is now an enum that might be represented as anything, in particular
as an int. It's definitely not a uint16 :-)

Volker
(This used to be commit 7c5d66c97111389b679aadb7b8b6721f07496bda)

16 years agor18842: Protect against "winbind cache time = 0" on two other occasions.
Günther Deschner [Sat, 23 Sep 2006 06:42:28 +0000 (06:42 +0000)]
r18842: Protect against "winbind cache time = 0" on two other occasions.

Guenther
(This used to be commit b1cd9d45e9581bec56bfdc21d2a8afb7f094be22)

16 years agor18841: Protect against potential event loop when someone is using "winbind
Günther Deschner [Sat, 23 Sep 2006 06:36:22 +0000 (06:36 +0000)]
r18841: Protect against potential event loop when someone is using "winbind
cache time = 0".

Guenther
(This used to be commit 9ac6016e32d236e7470919c075df551d1d73498c)

16 years agor18823: Fix some errors in the srsvc handling code and start running the RPC-SRVSVC
Jelmer Vernooij [Fri, 22 Sep 2006 15:09:08 +0000 (15:09 +0000)]
r18823: Fix some errors in the srsvc handling code and start running the RPC-SRVSVC
test against samba3.
(This used to be commit f0508ecb44f13e9e9e521e2534889e98a31d2372)

16 years agor18820: Comment out some unused functions.
Günther Deschner [Fri, 22 Sep 2006 10:09:15 +0000 (10:09 +0000)]
r18820: Comment out some unused functions.

Guenther
(This used to be commit cdc81927dbbc542500211ad8e6815815d7764731)

16 years agor18819: Fix build without LDAP.
Günther Deschner [Fri, 22 Sep 2006 09:34:25 +0000 (09:34 +0000)]
r18819: Fix build without LDAP.

Guenther
(This used to be commit a0aedee1c90af163210dd459603dd5dffb73e132)

16 years agor18818: Forgot header file.
Günther Deschner [Fri, 22 Sep 2006 09:09:01 +0000 (09:09 +0000)]
r18818: Forgot header file.

Guenther
(This used to be commit 9da91022f9fa0e6610a235ddd2130c8b01d6f1c5)

16 years agor18817: Enable the build of the gpo tool but do not make it available yet.
Günther Deschner [Fri, 22 Sep 2006 09:07:31 +0000 (09:07 +0000)]
r18817: Enable the build of the gpo tool but do not make it available yet.

Guenther
(This used to be commit 927cda5d31e9cb02105df3cfc06f5cb273233747)

16 years agor18816: Fix some build warnings.
Günther Deschner [Fri, 22 Sep 2006 09:00:59 +0000 (09:00 +0000)]
r18816: Fix some build warnings.

Guenther
(This used to be commit b70ed9e48394ddeaf0102e017cf706ff083e065b)

16 years agor18814: diable immediate structs for now until we completely build with them again
Stefan Metzmacher [Fri, 22 Sep 2006 05:46:03 +0000 (05:46 +0000)]
r18814: diable immediate structs for now until we completely build with them again

metze
(This used to be commit 5b8eb441a3332fbec4d105670ceea1978903a26a)

16 years agor18813: the generated rpccli_ functions give NTSTATUS
Stefan Metzmacher [Fri, 22 Sep 2006 05:36:15 +0000 (05:36 +0000)]
r18813: the generated rpccli_ functions give NTSTATUS

metze
(This used to be commit 4a198cebe37d74437a8d526aff1139f1668bcd37)

16 years agor18812: newer compilers don't allow non consts in static arrays
Stefan Metzmacher [Fri, 22 Sep 2006 05:26:26 +0000 (05:26 +0000)]
r18812: newer compilers don't allow non consts in static arrays

give us a chance to detect NTSTATUS vs. WERROR bugs...

metze
(This used to be commit 27181b675e6134979c4babd4497d9b995caba0ab)

16 years agor18811: rename stat field to avoid compiler warnings about
Gerald Carter [Fri, 22 Sep 2006 04:31:11 +0000 (04:31 +0000)]
r18811: rename stat field to avoid compiler warnings about
shadowed variables
(This used to be commit cc5f31c08159d671eaa873eb39b25893931c7341)

16 years agor18810: use a copy of samba4's talloc under lib/talloc/
Stefan Metzmacher [Fri, 22 Sep 2006 04:16:58 +0000 (04:16 +0000)]
r18810: use a copy of samba4's talloc under lib/talloc/
to make mergeing easier.

metze
(This used to be commit d49ffbc19b29f7620e427de133ffab74721f37e8)

16 years agor18809: add a valgrind suppression file to prepare running make test
Stefan Metzmacher [Fri, 22 Sep 2006 04:05:15 +0000 (04:05 +0000)]
r18809: add a valgrind suppression file to prepare running make test
under valgrind in the buildfarm

metze
(This used to be commit 646cf0ae8c32f0645955fba6a1f5951a018fd6b0)

16 years agor18804: resume_hnd isn't a ref pointer and can be NULL
Stefan Metzmacher [Fri, 22 Sep 2006 03:41:11 +0000 (03:41 +0000)]
r18804: resume_hnd isn't a ref pointer and can be NULL

metze
(This used to be commit 8736262342611d432d529812bc1f647b8d6cf625)

16 years agor18803: remove unused function
Gerald Carter [Fri, 22 Sep 2006 00:05:53 +0000 (00:05 +0000)]
r18803: remove unused function
(This used to be commit 964d95bce6bbaf985ed8cd50daee8216bc446a28)

16 years agor18802: Use the pidl-generated code for the srvsvc interface, both client and server...
Jelmer Vernooij [Thu, 21 Sep 2006 23:57:32 +0000 (23:57 +0000)]
r18802: Use the pidl-generated code for the srvsvc interface, both client and server code.

This has had some basic testing. I'll do more during the next couple of days and hopefully also
make RPC-SRVSVC from Samba4 pass against it.
(This used to be commit ef10672399c4b82700dc431b4d93431ffdd42d98)

16 years agor18801: Fix (at least the build of) python bindings.
Günther Deschner [Thu, 21 Sep 2006 23:10:40 +0000 (23:10 +0000)]
r18801: Fix (at least the build of) python bindings.

Guenther
(This used to be commit fc6543ca78e5c137d77bdc7845df273aae50e5cb)

16 years agor18799: Prepare query_disp_info to use the next idx from the last result entry
Günther Deschner [Thu, 21 Sep 2006 22:44:32 +0000 (22:44 +0000)]
r18799: Prepare query_disp_info to use the next idx from the last result entry
for the enumeration loop (following msdn docs of that call).

Guenther
(This used to be commit 138a921f82a02991eed7ab7d958ec7ea78608684)

16 years agor18798: use libreplace headers in pam and nss modules
Stefan Metzmacher [Thu, 21 Sep 2006 22:24:53 +0000 (22:24 +0000)]
r18798: use libreplace headers in pam and nss modules

this hopefully fixes the build on AIX

metze
(This used to be commit ef1001f5a269f3d6a66f40e3fb01eccc807dcd7e)

16 years agor18797: fix the loading of pam_winbind.so and libnss_winbind.so
Stefan Metzmacher [Thu, 21 Sep 2006 21:21:31 +0000 (21:21 +0000)]
r18797: fix the loading of pam_winbind.so and libnss_winbind.so
when building with socket wrapper

metze
(This used to be commit 6ad6aba1029035f67b901121e41b238d5760c6ff)

16 years agor18796: Fix the build. Sorry.
Jeremy Allison [Thu, 21 Sep 2006 20:53:56 +0000 (20:53 +0000)]
r18796: Fix the build. Sorry.
Jeremy.
(This used to be commit 8b9e5f28c2b8530bee46aefadf97414b85ab5bc8)