samba.git
16 years agor2882: fix mistake that caused a failure on a bind to a dynamic tcp port
Stefan Metzmacher [Sat, 9 Oct 2004 22:34:18 +0000 (22:34 +0000)]
r2882: fix mistake that caused a failure on a bind to a dynamic tcp port

metze

16 years agor2881: also bind the ldap service on the global catalog service port
Stefan Metzmacher [Sat, 9 Oct 2004 22:25:24 +0000 (22:25 +0000)]
r2881: also bind the ldap service on the global catalog service port
(port 3268)

metze

16 years agor2880: move the rootdse.ldif template to the source/ dir
Stefan Metzmacher [Sat, 9 Oct 2004 22:04:36 +0000 (22:04 +0000)]
r2880: move the rootdse.ldif template to the source/ dir

so that that it will be easier found by running
./script/rootdse.pl

metze

16 years agor2879: the domain name should be resolved to the ip addresses of all dc's
Stefan Metzmacher [Sat, 9 Oct 2004 22:02:26 +0000 (22:02 +0000)]
r2879: the domain name should be resolved to the ip addresses of all dc's

sort entries by service

metze

16 years agor2878: add server sasl support
Stefan Metzmacher [Sat, 9 Oct 2004 22:00:00 +0000 (22:00 +0000)]
r2878: add server sasl support
(there are a lot of clean ups following later, but the LDAP-BASIC test
 works :-)

metze

16 years agor2877: the Bind and Unbind function are already moved...
Stefan Metzmacher [Sat, 9 Oct 2004 21:57:45 +0000 (21:57 +0000)]
r2877: the Bind and Unbind function are already moved...

metze

16 years agor2876: - more than one rootDSE entry in the database is an error!
Stefan Metzmacher [Sat, 9 Oct 2004 21:53:01 +0000 (21:53 +0000)]
r2876: - more than one rootDSE entry in the database is an error!

- don't say that we provide the same functionality as w2k3

- netbiosname is always upper case hostname

- minor fixes rootdse.pl

metze

16 years agor2875: some fixes + (C) note
Simo Sorce [Sat, 9 Oct 2004 16:38:18 +0000 (16:38 +0000)]
r2875: some fixes + (C) note

16 years agor2874: Italian CodeJam commit :-)
Simo Sorce [Sat, 9 Oct 2004 16:37:29 +0000 (16:37 +0000)]
r2874: Italian CodeJam commit :-)

implemented rootDSE on ldb with rootdse.ldif and related script to populate a basic rootDSE tree

16 years agor2873: create a DNS zone file for a BIND name server
Stefan Metzmacher [Sat, 9 Oct 2004 10:11:26 +0000 (10:11 +0000)]
r2873: create a DNS zone file for a BIND name server

metze

16 years agor2872: got rid of a couple of unused (and horrible) functions
Andrew Tridgell [Sat, 9 Oct 2004 07:16:49 +0000 (07:16 +0000)]
r2872: got rid of a couple of unused (and horrible) functions

16 years agor2871: - got rid of the last bits of non-threadsafe data in util_str.o
Andrew Tridgell [Sat, 9 Oct 2004 07:11:21 +0000 (07:11 +0000)]
r2871: - got rid of the last bits of non-threadsafe data in util_str.o

- switch the fallback case tables to use talloc

- moved the used-once octal_string() inline in loadparm.c

16 years agor2867: make call_backtrace() public
Stefan Metzmacher [Fri, 8 Oct 2004 14:38:22 +0000 (14:38 +0000)]
r2867: make call_backtrace() public

this is very usefull we you don't want to use smb_panic()

metze

16 years agor2864: - Bind and Unbind are no directory partition operations
Stefan Metzmacher [Fri, 8 Oct 2004 12:31:13 +0000 (12:31 +0000)]
r2864: - Bind and Unbind are no directory partition operations

- move Bind Unbind code to a seperate file

metze

16 years agor2863: move the logical ldapsrv functions to a seperate file
Stefan Metzmacher [Fri, 8 Oct 2004 12:26:14 +0000 (12:26 +0000)]
r2863: move the logical ldapsrv functions to a seperate file

metze

16 years agor2862: prepare LDAP SASL support for the server
Stefan Metzmacher [Fri, 8 Oct 2004 12:19:08 +0000 (12:19 +0000)]
r2862: prepare LDAP SASL support for the server

metze

16 years agor2861: encode and decode BindRequest/Response correct
Stefan Metzmacher [Fri, 8 Oct 2004 12:08:43 +0000 (12:08 +0000)]
r2861: encode and decode BindRequest/Response correct

and some minor changes
- make ldap_encode/decode_response maore usable

metze

16 years agor2860: add gensec_have_feature() to check what feature are used in the connection
Stefan Metzmacher [Fri, 8 Oct 2004 11:29:43 +0000 (11:29 +0000)]
r2860: add gensec_have_feature() to check what feature are used in the connection

metze

16 years agor2859: It seems useful to allow the seal/unseal functions in gensec to pass
Andrew Bartlett [Fri, 8 Oct 2004 10:16:34 +0000 (10:16 +0000)]
r2859: It seems useful to allow the seal/unseal functions in gensec to pass
though to the sign/check_sig functions.

Andrew Bartlett

16 years agor2858: fix a few SMB_EXT_LIB_FROM_PKGCONFIG() bugs
Stefan Metzmacher [Fri, 8 Oct 2004 09:37:55 +0000 (09:37 +0000)]
r2858: fix a few SMB_EXT_LIB_FROM_PKGCONFIG() bugs

metze

16 years agor2857: this commit gets rid of smb_ucs2_t, wpstring and fpstring, plus lots of associ...
Andrew Tridgell [Fri, 8 Oct 2004 08:13:00 +0000 (08:13 +0000)]
r2857: this commit gets rid of smb_ucs2_t, wpstring and fpstring, plus lots of associated functions.

The motivation for this change was to avoid having to convert to/from
ucs2 strings for so many operations. Doing that was slow, used many
static buffers, and was also incorrect as it didn't cope properly with
unicode codepoints above 65536 (which could not be represented
correctly as smb_ucs2_t chars)

The two core functions that allowed this change are next_codepoint()
and push_codepoint(). These functions allow you to correctly walk a
arbitrary multi-byte string a character at a time without converting
the whole string to ucs2.

While doing this cleanup I also fixed several ucs2 string handling
bugs. See the commit for details.

The following code (which counts the number of occuraces of 'c' in a
string) shows how to use the new interface:

size_t count_chars(const char *s, char c)
{
size_t count = 0;

while (*s) {
size_t size;
codepoint_t c2 = next_codepoint(s, &size);
if (c2 == c) count++;
s += size;
}

return count;
}

16 years agor2856: fixed a minor memory leak in the auth code
Andrew Tridgell [Fri, 8 Oct 2004 08:05:11 +0000 (08:05 +0000)]
r2856: fixed a minor memory leak in the auth code

16 years agor2855: fix error codes for Compare
Stefan Metzmacher [Fri, 8 Oct 2004 06:44:02 +0000 (06:44 +0000)]
r2855: fix error codes for Compare

metze

16 years agor2854: added a RPC-COUNTCALLS torture test - a useful varient on the full scanner...
Andrew Tridgell [Fri, 8 Oct 2004 01:15:25 +0000 (01:15 +0000)]
r2854: added a RPC-COUNTCALLS torture test - a useful varient on the full scanner in RPC-SCANNER

16 years agor2853: add torture test to find the defaultNamingContext on the RootDSE
Stefan Metzmacher [Thu, 7 Oct 2004 15:13:20 +0000 (15:13 +0000)]
r2853: add torture test to find the defaultNamingContext on the RootDSE

try a sasl sealed CompareRequest

abartlet: we need to check how SINGING only can work,
          it failed for me:-(

metze

16 years agor2851: don't destroy the gensec context it's used for sign and seal
Stefan Metzmacher [Thu, 7 Oct 2004 14:46:58 +0000 (14:46 +0000)]
r2851: don't destroy the gensec context it's used for sign and seal

check the result of ldap_receive()

metze

16 years agor2850: - check for GENSEC_WANT_SEAL in gensec_unseal_packet()
Stefan Metzmacher [Thu, 7 Oct 2004 14:44:18 +0000 (14:44 +0000)]
r2850: - check for GENSEC_WANT_SEAL in gensec_unseal_packet()

- pass functions to the subcontext in spnego

metze

16 years agor2836: removed a couple of unused variables
Andrew Tridgell [Thu, 7 Oct 2004 05:38:10 +0000 (05:38 +0000)]
r2836: removed a couple of unused variables

16 years agor2833: - added a call to SamrQueryGroupMember for every group, and fix the
Andrew Tridgell [Thu, 7 Oct 2004 03:47:38 +0000 (03:47 +0000)]
r2833: - added a call to SamrQueryGroupMember for every group, and fix the
  IDL so this works (the previous IDL was bogus)

- changed a hyper to uint64 after looking at output on cascade on sparc

16 years agor2831: // style comments are not supported by pure C preprocessors. Please DONT use
Volker Lendecke [Wed, 6 Oct 2004 15:14:55 +0000 (15:14 +0000)]
r2831: // style comments are not supported by pure C preprocessors. Please DONT use
them. This includes idl files.

Volker

16 years agor2830: // style comments are not supported by pure C preprocessors. Please DONT use
Volker Lendecke [Wed, 6 Oct 2004 14:55:50 +0000 (14:55 +0000)]
r2830: // style comments are not supported by pure C preprocessors. Please DONT use
them. This includes idl files.

Volker

16 years agor2829: REALM and netbiosname are always uppercase
Stefan Metzmacher [Wed, 6 Oct 2004 13:57:42 +0000 (13:57 +0000)]
r2829: REALM and netbiosname are always uppercase

dnsname and dnshostname always lowercase

metze

16 years agor2825: fix the build
Stefan Metzmacher [Tue, 5 Oct 2004 11:10:26 +0000 (11:10 +0000)]
r2825: fix the build

this function names are unsed elsewhere in the code too

metze

16 years agor2820: complete the parsing routing with correct support for escaped chars
Simo Sorce [Mon, 4 Oct 2004 21:02:00 +0000 (21:02 +0000)]
r2820: complete the parsing routing with correct support for escaped chars
clean up simple_ldb functions

16 years agor2818: On AIX, for some reason pidl fails in dcom.idl:29. The only thing
Volker Lendecke [Mon, 4 Oct 2004 14:40:53 +0000 (14:40 +0000)]
r2818: On AIX, for some reason pidl fails in dcom.idl:29. The only thing
is a /* style comment. Try //.

Volker

16 years agor2817: Get winreg_GetKeySecurity() working but use data blob instead of
Tim Potter [Mon, 4 Oct 2004 06:29:06 +0000 (06:29 +0000)]
r2817: Get winreg_GetKeySecurity() working but use data blob instead of
security descriptor.

16 years agor2816: fix 'Default-First-Site-Name' dn
Stefan Metzmacher [Mon, 4 Oct 2004 05:40:59 +0000 (05:40 +0000)]
r2816: fix 'Default-First-Site-Name' dn

metze

16 years agor2815: add some more docs
Simo Sorce [Sun, 3 Oct 2004 21:17:45 +0000 (21:17 +0000)]
r2815: add some more docs

add a nearly complete rfc conformat dn parsing function

16 years agor2808: added auto-detection of unix user and groups names during provision.
Andrew Tridgell [Sun, 3 Oct 2004 11:27:31 +0000 (11:27 +0000)]
r2808: added auto-detection of unix user and groups names during provision.

16 years agor2807: OK I think winreg_EnumValue() finally works. The previous version
Tim Potter [Sun, 3 Oct 2004 11:07:04 +0000 (11:07 +0000)]
r2807: OK I think winreg_EnumValue() finally works.  The previous version
didn't work with non-NULL registry value names.

Update testsuite to enumerate all keys and values two levels deep.

16 years agor2806: Add winreg.i to dependencies for dcerpc.i
Tim Potter [Sun, 3 Oct 2004 11:05:13 +0000 (11:05 +0000)]
r2806: Add winreg.i to dependencies for dcerpc.i

16 years agor2805: Handle NULL pointers when converting structures to Python. All the
Tim Potter [Sun, 3 Oct 2004 11:04:06 +0000 (11:04 +0000)]
r2805: Handle NULL pointers when converting structures to Python.  All the
test cases up till now haven't come across them yet!

16 years agor2804: - setup some reasonable default SAM to unixName mappings in the provisioning.
Andrew Tridgell [Sun, 3 Oct 2004 10:31:12 +0000 (10:31 +0000)]
r2804: - setup some reasonable default SAM to unixName mappings in the provisioning.

- enable the unixuid module by default on all backends

16 years agor2803: allow unixuid module to work with foreign security principles
Andrew Tridgell [Sun, 3 Oct 2004 10:25:06 +0000 (10:25 +0000)]
r2803: allow unixuid module to work with foreign security principles

16 years agor2802: a better provisioning script
Andrew Tridgell [Sun, 3 Oct 2004 10:02:41 +0000 (10:02 +0000)]
r2802: a better provisioning script

16 years agor2801: Wrapped functions that return a DOS error code can return DCERPC
Tim Potter [Sun, 3 Oct 2004 08:50:31 +0000 (08:50 +0000)]
r2801: Wrapped functions that return a DOS error code can return DCERPC
faults if they are badly formed.  Handle this by checking the value of
NTSTATUS as well as WERROR.

16 years agor2800: removed the warning about using the posix ntvfs handler, as it is now
Andrew Tridgell [Sun, 3 Oct 2004 08:27:56 +0000 (08:27 +0000)]
r2800: removed the warning about using the posix ntvfs handler, as it is now
considerably more complete than the simple handler

16 years agor2799: removed one last occurance of torture_ldb_alloc()
Andrew Tridgell [Sun, 3 Oct 2004 07:35:29 +0000 (07:35 +0000)]
r2799: removed one last occurance of torture_ldb_alloc()

16 years agor2798: get rid of a unnecessary static
Andrew Tridgell [Sun, 3 Oct 2004 07:32:40 +0000 (07:32 +0000)]
r2798: get rid of a unnecessary static

16 years agor2797: don't free the server_info before using it for anonymous connections
Andrew Tridgell [Sun, 3 Oct 2004 07:32:08 +0000 (07:32 +0000)]
r2797: don't free the server_info before using it for anonymous connections

16 years agor2796: - changed ldap attributes "UnixID" to "unixID" and "UnixName" to "unixName...
Andrew Tridgell [Sun, 3 Oct 2004 07:31:32 +0000 (07:31 +0000)]
r2796: - changed ldap attributes "UnixID" to "unixID" and "UnixName" to "unixName" to be more ldap traditional

- register the unixuid module as all 3 ntvfs backend types, as it doesn't care what type of backend
  it filters

16 years agor2795: Split status code constants into a separate file.
Tim Potter [Sun, 3 Oct 2004 07:00:17 +0000 (07:00 +0000)]
r2795: Split status code constants into a separate file.

16 years agor2794: a very simple version of the unixuid NTVFS pass-thru module. In
Andrew Tridgell [Sun, 3 Oct 2004 06:46:29 +0000 (06:46 +0000)]
r2794: a very simple version of the unixuid NTVFS pass-thru module. In
conjunction with the posix backend this gives us a way to correctly
setup the unix security context in Samba4.

I chose the following method to determine the unix uid's and gid's to
use given the list of SIDs from the login process

 - look for a "UnixID" field in the sam record. If present, then use it
   (check if the record is of the right type as well)

 - if UnixID is not present, then look for the "UnixName" sam
   field. If it is present then use getpwnam() or getgrnam() to find
   the unix id.

 - if UnixID and UnixName are not present, then look for a unix
   account of the right type called by the same name as the sAMAccountName field.

 - if none of the above work then fail the operation with NT_STATUS_ACCESS_DENIED

obviously these steps only work well with a local SAM. It will need to
be more sophisticated in future.

I did not put any cache in place at all. That will need to be added
for decent performance.

16 years agor2793: fixed the handling of primaryGroupID in auth_sam. There were two bugs,
Andrew Tridgell [Sun, 3 Oct 2004 06:40:40 +0000 (06:40 +0000)]
r2793: fixed the handling of primaryGroupID in auth_sam. There were two bugs,
the first was it didn't pass primaryGroupID as an attributed it
wanted, the second was it didn't cope with primaryGroupID not being
present.

16 years agor2792: got rid of talloc_ldb_alloc() and instead created talloc_realloc_fn(),
Andrew Tridgell [Sun, 3 Oct 2004 06:39:19 +0000 (06:39 +0000)]
r2792: got rid of talloc_ldb_alloc() and instead created talloc_realloc_fn(),
so talloc now doesn't contain any ldb specific functions.

allow NULL to be passed to a couple more talloc() functions

16 years agor2791: got rid of talloc_unreference() and instead created talloc_unlink(),
Andrew Tridgell [Sun, 3 Oct 2004 00:04:30 +0000 (00:04 +0000)]
r2791: got rid of talloc_unreference() and instead created talloc_unlink(),
which is much clearer and simpler to use. It removes a specific parent
from a pointer, no matter whether that parent is a "reference" or a
direct parent. This gives complete control over the free process.

16 years agor2790: Add code to generate WERROR exceptions. Arrange inclusion of autogenerated
Tim Potter [Sat, 2 Oct 2004 23:35:50 +0000 (23:35 +0000)]
r2790: Add code to generate WERROR exceptions.  Arrange inclusion of autogenerated
interface files to divvy them up into pipes that return WERRORs and pipes
that return NTSTATUS values.

16 years agor2789: fix compile
Simo Sorce [Sat, 2 Oct 2004 15:28:16 +0000 (15:28 +0000)]
r2789: fix compile

16 years agor2788: prevent a memory leak in the pvfs search backend
Andrew Tridgell [Sat, 2 Oct 2004 13:29:20 +0000 (13:29 +0000)]
r2788: prevent a memory leak in the pvfs search backend

16 years agor2787: force masktest to use RAW_SEARCH_BOTH_DIRECTORY_INFO so it can obtain the...
Andrew Tridgell [Sat, 2 Oct 2004 12:30:02 +0000 (12:30 +0000)]
r2787: force masktest to use RAW_SEARCH_BOTH_DIRECTORY_INFO so it can obtain the short name

16 years agor2786: - match on both long and short name for search posix backend
Andrew Tridgell [Sat, 2 Oct 2004 12:25:02 +0000 (12:25 +0000)]
r2786: - match on both long and short name for search posix backend

- a final name component of . is illegal

16 years agor2785: call init_iconv() in smbtorture to ensure we have no memory allocated
Andrew Tridgell [Sat, 2 Oct 2004 12:18:59 +0000 (12:18 +0000)]
r2785: call init_iconv() in smbtorture to ensure we have no memory allocated
when a test started, thus making leak detection easier

16 years agor2784: - fixed alignment of ascii directory listings
Andrew Tridgell [Sat, 2 Oct 2004 12:16:46 +0000 (12:16 +0000)]
r2784: - fixed alignment of ascii directory listings

- fixed minimum parameter size for ascii qpathinfo call

16 years agor2783: got rid of the unused remote architecture detection code
Andrew Tridgell [Sat, 2 Oct 2004 12:14:23 +0000 (12:14 +0000)]
r2783: got rid of the unused remote architecture detection code

16 years agor2782: Reformat IDL for winreg_EnumValue()
Tim Potter [Sat, 2 Oct 2004 11:58:35 +0000 (11:58 +0000)]
r2782: Reformat IDL for winreg_EnumValue()

16 years agor2781: Got winreg_EnumValue() working. Check it in so I don't break it trying
Tim Potter [Sat, 2 Oct 2004 11:26:58 +0000 (11:26 +0000)]
r2781: Got winreg_EnumValue() working.  Check it in so I don't break it trying
to clean it up.  (-:

16 years agor2780: Add conversion routines for DATA_BLOB. I'm not convinced that DATA_BLOB's
Tim Potter [Sat, 2 Oct 2004 11:22:20 +0000 (11:22 +0000)]
r2780: Add conversion routines for DATA_BLOB.  I'm not convinced that DATA_BLOB's
should be treated as scalar types though.

16 years agor2777: Correctly abort if an idl file fails to parse. Bloody perl...
Tim Potter [Sat, 2 Oct 2004 06:32:53 +0000 (06:32 +0000)]
r2777: Correctly abort if an idl file fails to parse.  Bloody perl...

16 years agor2776: if there are no wildcard characters then use StrCaseCmp()
Andrew Tridgell [Sat, 2 Oct 2004 05:09:16 +0000 (05:09 +0000)]
r2776: if there are no wildcard characters then use StrCaseCmp()

note that this is not just an optimisation, it fixes a rare edge case
when LANMAN1 is negotiated

16 years agor2775: rewrote our ms_fnmatch code to be much more efficient, and to exactly
Andrew Tridgell [Sat, 2 Oct 2004 01:43:43 +0000 (01:43 +0000)]
r2775: rewrote our ms_fnmatch code to be much more efficient, and to exactly
match w2k behaviour for older negotiated protocols.

16 years agor2774: get rid of the lanman specific code in masktest, and add a -l option
Andrew Tridgell [Sat, 2 Oct 2004 01:42:41 +0000 (01:42 +0000)]
r2774: get rid of the lanman specific code in masktest, and add a -l option

16 years agor2773: allow zero sized array talloc
Andrew Tridgell [Sat, 2 Oct 2004 01:42:06 +0000 (01:42 +0000)]
r2773: allow zero sized array talloc

16 years agor2767: Get rid of some unnecessary %s formatting.
Tim Potter [Fri, 1 Oct 2004 07:38:09 +0000 (07:38 +0000)]
r2767: Get rid of some unnecessary %s formatting.

16 years agor2766: Test OpenKey, QueryInfoKey, EnumKey, CloseKey functions.
Tim Potter [Fri, 1 Oct 2004 07:37:37 +0000 (07:37 +0000)]
r2766: Test OpenKey, QueryInfoKey, EnumKey, CloseKey functions.

The IDL for EnumValue is wrong - can't figure it out right now.

16 years agor2765: Allow functions containing WERROR values to be compiled.
Tim Potter [Fri, 1 Oct 2004 07:36:47 +0000 (07:36 +0000)]
r2765: Allow functions containing WERROR values to be compiled.

Add winreg.i to list of extensions.

16 years agor2764: Use hand-written function for all occurrences of IDL strings, not just
Tim Potter [Fri, 1 Oct 2004 05:28:20 +0000 (05:28 +0000)]
r2764: Use hand-written function for all occurrences of IDL strings, not just
those with a single pointer.

16 years agor2763: use no-auth bind on ncacn_np unless we specify at least one of "sign", "seal...
Andrew Tridgell [Fri, 1 Oct 2004 05:19:51 +0000 (05:19 +0000)]
r2763: use no-auth bind on ncacn_np unless we specify at least one of "sign", "seal" or "connect"

16 years agor2758: keep docos handy while developing it
Simo Sorce [Thu, 30 Sep 2004 16:08:09 +0000 (16:08 +0000)]
r2758: keep docos handy while developing it

16 years agor2757: some minor fixes
Stefan Metzmacher [Thu, 30 Sep 2004 13:29:27 +0000 (13:29 +0000)]
r2757: some minor fixes

metze

16 years agor2754: Change sldb_trim_dn() to be sldb_fix_dn() as we are not really trimming.
Simo Sorce [Wed, 29 Sep 2004 17:37:59 +0000 (17:37 +0000)]
r2754: Change sldb_trim_dn() to be sldb_fix_dn() as we are not really trimming.

Make it handle all cases:
- remove spaces before and after ','
- remove spaces after '='

TODO: check if there are escape chars in the RFC, they are not handled here yet.

Simo.

16 years agor2751: this is a new ntvfs design which tries to solve:
Stefan Metzmacher [Wed, 29 Sep 2004 13:17:09 +0000 (13:17 +0000)]
r2751: this is a new ntvfs design which tries to solve:

- the stacking of modules
- finding the modules private data
- hide the ntvfs details from the calling layer
- I set NTVFS_INTERFACE_VERSION 0 till we are closer to release
  (because we need to solve some async problems with the module stacking)

metze

16 years agor2750: decode AbandonRequest correct (untested:-)
Stefan Metzmacher [Wed, 29 Sep 2004 13:06:26 +0000 (13:06 +0000)]
r2750: decode AbandonRequest correct (untested:-)

metze

16 years agor2749: add asn1_read_implicit_Integer()
Stefan Metzmacher [Wed, 29 Sep 2004 12:40:30 +0000 (12:40 +0000)]
r2749: add asn1_read_implicit_Integer()

metze

16 years agor2748: implement sldb_Compare()
Stefan Metzmacher [Wed, 29 Sep 2004 12:20:59 +0000 (12:20 +0000)]
r2748: implement sldb_Compare()

Simo: this commit should not conflict much with your changes:-)

metze

16 years agor2747: use DATA_BLOB for attribute values
Stefan Metzmacher [Wed, 29 Sep 2004 12:18:06 +0000 (12:18 +0000)]
r2747: use DATA_BLOB for attribute values

en/decode CompareRequest/Response correct

metze

16 years agor2745: added some example talloc reports
Andrew Tridgell [Wed, 29 Sep 2004 06:35:34 +0000 (06:35 +0000)]
r2745: added some example talloc reports

16 years agor2744: ben elliston taught me about gcov today, which allows you to measure
Andrew Tridgell [Wed, 29 Sep 2004 06:31:14 +0000 (06:31 +0000)]
r2744: ben elliston taught me about gcov today, which allows you to measure
the % coverage in terms of lines of code of a test suite. I thought a
good first place to start with gcov was the talloc test suite. When I
started the test suite covered about 60% of all lines of code in
talloc.c, and now it covers about 99%. The only lines not covered are
talloc corruption errors, as that would cause smb_panic() to fire.

It will be interesting to try gcov on the main Samba test suite for
smbd. We won't achieve 100% coverage, but it would be nice to get to
90% or more.

I also modified the talloc.c sources to be able to be build standalone, using:

  gcc -c -D_STANDALONE_ -Iinlcude lib/talloc.c

that should make it much easier to re-use talloc in other projects

16 years agor2743: fixed some errors in the description of talloc_reference(). Volker
Andrew Tridgell [Tue, 28 Sep 2004 23:31:52 +0000 (23:31 +0000)]
r2743: fixed some errors in the description of talloc_reference(). Volker
told me he found the description confusing, and given that some of it
was not correct I am not surprised!

added some more docs on the reporting calls

16 years agor2742: - fixed a bug in talloc_unreference()
Andrew Tridgell [Tue, 28 Sep 2004 23:30:14 +0000 (23:30 +0000)]
r2742: - fixed a bug in talloc_unreference()

- made the LOCAL-TALLOC smbtorture test much stricter, checking that
  block counts for every pointer are correct after every operation

16 years agor2741: Definition for ISystemActivator...
Jelmer Vernooij [Tue, 28 Sep 2004 22:58:56 +0000 (22:58 +0000)]
r2741: Definition for ISystemActivator...

16 years agor2740: Finish the RemoteActivation interface. Torture tests will follow
Jelmer Vernooij [Tue, 28 Sep 2004 22:04:35 +0000 (22:04 +0000)]
r2740: Finish the RemoteActivation interface. Torture tests will follow
after pidl has been fixed (to be able to use input variables
inside size_is() for output variables)

16 years agor2739: Start of torture test for winreg wrappers.
Tim Potter [Tue, 28 Sep 2004 21:44:05 +0000 (21:44 +0000)]
r2739: Start of torture test for winreg wrappers.

16 years agor2738: free up the session information as soon as it is invalidated in the
Andrew Tridgell [Tue, 28 Sep 2004 21:42:49 +0000 (21:42 +0000)]
r2738: free up the session information as soon as it is invalidated in the
RAW-CONTEXT test case

16 years agor2737: fixed up a corner case where talloc_unreference() and talloc_free()
Andrew Tridgell [Tue, 28 Sep 2004 21:41:33 +0000 (21:41 +0000)]
r2737: fixed up a corner case where talloc_unreference() and talloc_free()
might not place the pointer in the context specified in the docs. The
code was assuming that pointer was at the head of the child list,
which it may not be, depending on what other operations have happened
in between.

16 years agor2735: More DCOM updates:
Jelmer Vernooij [Tue, 28 Sep 2004 19:20:00 +0000 (19:20 +0000)]
r2735: More DCOM updates:
 - Several updates to the interface definitions after reading some more of the
 specs
  - Add Remote Activation interface
  - Add body extension uuids
 - Add oxidresolve torture test to list
 - Make pidl complain about object interfaces that don't inherit from IUnknown

16 years agor2734: the samdb_destructor can be static
Andrew Tridgell [Tue, 28 Sep 2004 14:38:13 +0000 (14:38 +0000)]
r2734: the samdb_destructor can be static

16 years agor2733: added a note on performance
Andrew Tridgell [Tue, 28 Sep 2004 14:37:28 +0000 (14:37 +0000)]
r2733: added a note on performance

16 years agor2731: use debug level 10 everywhere
Stefan Metzmacher [Tue, 28 Sep 2004 13:50:15 +0000 (13:50 +0000)]
r2731: use debug level 10 everywhere

metze

16 years agor2728: Break arg parsing stuff out of samr.py into a standalone program.
Tim Potter [Tue, 28 Sep 2004 12:49:05 +0000 (12:49 +0000)]
r2728: Break arg parsing stuff out of samr.py into a standalone program.

16 years agor2727: mark the password fields as hidden
Stefan Metzmacher [Tue, 28 Sep 2004 12:42:03 +0000 (12:42 +0000)]
r2727: mark the password fields as hidden

metze