abartlet/samba.git/.git
16 years agor2950: 0x40000 is clearer than 262144
Andrew Tridgell [Wed, 13 Oct 2004 13:04:55 +0000 (13:04 +0000)]
r2950: 0x40000 is clearer than 262144
(This used to be commit c17d9254d42e5966fbdfeeda18023c8c0203dad1)

16 years agor2949: added some range checks in samr.idl
Andrew Tridgell [Wed, 13 Oct 2004 13:00:57 +0000 (13:00 +0000)]
r2949: added some range checks in samr.idl
(This used to be commit 8921e34f989977efc5f9d4f5eabf21bbb5f52115)

16 years agor2948: added support for the [range(low,high)] attribute in pidl. This allows
Andrew Tridgell [Wed, 13 Oct 2004 12:55:10 +0000 (12:55 +0000)]
r2948: added support for the [range(low,high)] attribute in pidl. This allows
range checking of any integer value, to help protect against denial of
service attacks (which could otherwise cause large memory allocations)
(This used to be commit dbe6430d78f1b9aa59969074077e4afa5adf7570)

16 years agor2941: added pvfs_flush() implementation to the posix backend
Andrew Tridgell [Tue, 12 Oct 2004 22:18:02 +0000 (22:18 +0000)]
r2941: added pvfs_flush() implementation to the posix backend
(This used to be commit dac00ef3b0d0f8467367d7b6ff77db7b63a042cc)

16 years agor2940: Complain when there is an attempt to register a backend for a subsystem that...
Jelmer Vernooij [Tue, 12 Oct 2004 15:57:20 +0000 (15:57 +0000)]
r2940: Complain when there is an attempt to register a backend for a subsystem that does
not (yet) exist
(This used to be commit 0130713fbe3d838964542a700839c4e276b18547)

16 years agor2939: Use /* */ style comments
Jelmer Vernooij [Tue, 12 Oct 2004 12:51:35 +0000 (12:51 +0000)]
r2939: Use /* */ style comments
(This used to be commit c5d4fae3b157c5559b8b15dde16451e91c0fc022)

16 years agor2938: Use IDL to dissect the RHS of floors in protocol towers
Jelmer Vernooij [Tue, 12 Oct 2004 12:41:50 +0000 (12:41 +0000)]
r2938: Use IDL to dissect the RHS of floors in protocol towers
(This used to be commit 273d0049b5339e3288b264e5a4393bfab1d4e239)

16 years agor2937: Make sure all memory is initialized
Jelmer Vernooij [Tue, 12 Oct 2004 12:02:18 +0000 (12:02 +0000)]
r2937: Make sure all memory is initialized
(This used to be commit edf28c42f3c9b41c82a4f642ddae23efbb12c944)

16 years agor2934: - changed the unixuid module to use the nt_user_token instead of the server...
Andrew Tridgell [Tue, 12 Oct 2004 11:30:48 +0000 (11:30 +0000)]
r2934: - changed the unixuid module to use the nt_user_token instead of the server supplied info structure.

- added SID_WORLD and SID_NETWORK to the foreign sids in the
  provisioning, as these are auto-added to the nt_user_token (why is
  that done? Andrew?)
(This used to be commit 1dff12fba88827660a2647457867bf4ff6bc8d3d)

16 years agor2933: Only pull a union once when it occurs in a subcontext
Jelmer Vernooij [Tue, 12 Oct 2004 10:32:54 +0000 (10:32 +0000)]
r2933: Only pull a union once when it occurs in a subcontext
(This used to be commit 309623447eef9ae554e2f25713c2123ab578cc6e)

16 years agor2932: character expansion in strlower_m or strupper_m is considered fatal
Andrew Tridgell [Tue, 12 Oct 2004 06:12:24 +0000 (06:12 +0000)]
r2932: character expansion in strlower_m or strupper_m is considered fatal
(as it could cause a overflow). Print a message giving the character
values involved in the expansion so it can be debugged if it happens.
(This used to be commit 2a6f59f376a132fcbce8c8e9d1b38d8aae3e8561)

16 years agor2931: use next_codepoint() to ensure we properly handle multi-byte characters in...
Andrew Tridgell [Tue, 12 Oct 2004 06:07:55 +0000 (06:07 +0000)]
r2931: use next_codepoint() to ensure we properly handle multi-byte characters in pvfs_unix_path()
(This used to be commit 0acf95d84c51d564f7215d34364c37ca74a2a150)

16 years agor2930: added a security context cache to the unixuid module. The module
Andrew Tridgell [Tue, 12 Oct 2004 05:59:56 +0000 (05:59 +0000)]
r2930: added a security context cache to the unixuid module. The module
doesn't actually leave us in the requested sec context between
requests yet, but it does prevent us from doing the samdb lookup on
every packet.

This change speeds up the BASE-MANGLE test against Samba4 with 5000
operations from 61 seconds to 16 seconds. For reference, Samba3 takes
27 seconds for the same test (the string and filename handling in
Samba4 is much more efficient than Samba3)
(This used to be commit da0481ac75a01270897da5aa24dbb2b431928b30)

16 years agor2929: longhorn does not produce sorted directory listings! This is
Andrew Tridgell [Tue, 12 Oct 2004 05:36:37 +0000 (05:36 +0000)]
r2929: longhorn does not produce sorted directory listings! This is
excellent, as it means we don't lose any compatibility by also not
giving sorted listings. I was very much afraid that applications had
begun to rely on this (as its guaranteed by w2k NTFS).

no longer mark a non-sorting server as an error
(This used to be commit 1d21c9a9d1879f5b3de15d251b6bb379c326002d)

16 years agor2928: - fixed the handling of reserved names (rejecting them with ACCESS_DENIED)
Andrew Tridgell [Tue, 12 Oct 2004 05:33:05 +0000 (05:33 +0000)]
r2928: - fixed the handling of reserved names (rejecting them with ACCESS_DENIED)

- don't check for '.' specially in checking for legal names. Longhorn
  doesn't do this any more, and its a real pain. Longhorn allows for
  filenames ending in '.', and with as many '.' elements as you like.
(This used to be commit 0a475175c53016bfa5b8246819676ddcd8b66feb)

16 years agor2927: imported the hash2 name mangling code from Samba3 into Samba4, but
Andrew Tridgell [Tue, 12 Oct 2004 05:10:43 +0000 (05:10 +0000)]
r2927: imported the hash2 name mangling code from Samba3 into Samba4, but
heavily modified to suit the Samba4 architecture.

Samba4 with posix backend now passes the BASE-MANGLE test
(This used to be commit ed52d69e8a065b6a8df2fb73c89be67acfdbca65)

16 years agor2926: name->dos.attrib is not valid unless name->exists is true
Andrew Tridgell [Tue, 12 Oct 2004 05:07:33 +0000 (05:07 +0000)]
r2926: name->dos.attrib is not valid unless name->exists is true
(This used to be commit f85a0b725d3bf67531e6874d4e8558fb050bb66f)

16 years agor2925: added the definition for a new rpc fault code I am seeing on epmapper from...
Andrew Tridgell [Tue, 12 Oct 2004 05:06:40 +0000 (05:06 +0000)]
r2925: added the definition for a new rpc fault code I am seeing on epmapper from lhorn
(This used to be commit 9ef399a769805ecfc78fc32e066b20e8efe34290)

16 years agor2922: Add note about 'server-side' binding strings
Jelmer Vernooij [Mon, 11 Oct 2004 20:56:17 +0000 (20:56 +0000)]
r2922: Add note about 'server-side' binding strings
(This used to be commit 666611d0343d61847341d8159d69e488f041a7ad)

16 years agor2921: Add a few more protocols and fix the numbers associated with some of
Jelmer Vernooij [Mon, 11 Oct 2004 20:12:51 +0000 (20:12 +0000)]
r2921: Add a few more protocols and fix the numbers associated with some of
the current ones. It took me three hours to realise that the DCOM standard
contains false protocol numbers (apparently someone converted the protocol
numbers to hex twice, i.e. 13 -> 0c and 14 to 0d). There are no longer
duplicates in the list with protocol numbers now.
(This used to be commit f355cd426462a72575ef3c3b769f676334976986)

16 years agor2920: Support passing a handle to a SAMR pipe to a RPC Binding or Select
Jelmer Vernooij [Mon, 11 Oct 2004 20:06:42 +0000 (20:06 +0000)]
r2920: Support passing a handle to a SAMR pipe to a RPC Binding or Select
Host dialog so that one can select a domain from the list of known
domains.
(This used to be commit 5e0bab891199c888bdf87faa29acc38d9ca5151b)

16 years agor2916: longhorn client doesn't bother setting the directory bit in ntcreatex
Andrew Tridgell [Mon, 11 Oct 2004 14:35:54 +0000 (14:35 +0000)]
r2916: longhorn client doesn't bother setting the directory bit in ntcreatex
when opening directories. This change allows samba4 server to work
with longhorn client.
(This used to be commit 4a8b0302eff37ccfcb66b91259ee5da20879c652)

16 years agor2915: Open domain first before enumerating users and groups
Jelmer Vernooij [Mon, 11 Oct 2004 14:15:25 +0000 (14:15 +0000)]
r2915: Open domain first before enumerating users and groups
(This used to be commit 9560a6c8cc650c3a519b14c79f497e6bd9ef387e)

16 years agor2914: ... and support enumerating values (data is not handled yet, only the names)
Jelmer Vernooij [Mon, 11 Oct 2004 14:07:20 +0000 (14:07 +0000)]
r2914: ... and support enumerating values (data is not handled yet, only the names)
(This used to be commit b3bc055ac73ff239c2b267717ee91669ecdd4c9b)

16 years agor2913: - Don't print hive name if it is NULL (regtree)
Jelmer Vernooij [Mon, 11 Oct 2004 13:57:30 +0000 (13:57 +0000)]
r2913: - Don't print hive name if it is NULL (regtree)
- Initialise hive name (reg_interface)
- Fix LDB backend (enumerating keys works now!)
(This used to be commit 5086d6b2494f236ef67096b2dd4da4f7402a65c5)

16 years agor2912: Test for the sort-of weird file stamp semantics. The last_write seems to be
Volker Lendecke [Mon, 11 Oct 2004 13:13:51 +0000 (13:13 +0000)]
r2912: Test for the sort-of weird file stamp semantics. The last_write seems to be
updated only by an arbitrary close() after the file was actually written to.

Volker
(This used to be commit ab52ebfdccc65ca510d74ce8e0205b45b58550ef)

16 years agor2911: Fix bug in opening relative keys
Jelmer Vernooij [Mon, 11 Oct 2004 11:52:44 +0000 (11:52 +0000)]
r2911: Fix bug in opening relative keys
(This used to be commit e7c256a92cc6cbe1cd6cc11a8fb37feba272d01c)

16 years agor2910: I noticed that the samr torture test was doing its own DOS->UNIX
Andrew Tridgell [Mon, 11 Oct 2004 09:27:19 +0000 (09:27 +0000)]
r2910: I noticed that the samr torture test was doing its own DOS->UNIX
string conversion. For RPC, all string conversions are supposed to be
done by the NDR layer, using string flags set in the IDL. The reason
this wasn't working is that I had been too lazy to do the STR_ASCII
string types properly at the NDR layer when initially writing
ndr_basic.c.

This commit fixes the ndr_basic code properly to do all ASCII
varients, by re-using the non-ascii code and a "byte_mul" local
variable. I have also removed the manual string conversion in the SAMR
torture test code.
(This used to be commit aad0e7e9d890bb56447f1f933b8f2bb78a3ee269)

16 years agor2909: fix some RAW-SEARCH torture mem leaks
Andrew Tridgell [Mon, 11 Oct 2004 09:23:19 +0000 (09:23 +0000)]
r2909: fix some RAW-SEARCH torture mem leaks
(This used to be commit 75ca5ba5091c9046159531b917ff17a519013556)

16 years agor2908: fix typo
Simo Sorce [Mon, 11 Oct 2004 09:21:12 +0000 (09:21 +0000)]
r2908: fix typo
(This used to be commit f544f830630c8d0bd37a66dc06683621c4dbcdde)

16 years agor2907: auto destroy iconv memory handles on exit, to make valgrind leak
Andrew Tridgell [Mon, 11 Oct 2004 05:23:46 +0000 (05:23 +0000)]
r2907: auto destroy iconv memory handles on exit, to make valgrind leak
reports easier to read (less noisy)
(This used to be commit e3009492b85ac90836aa9341687df5869f4ea291)

16 years agor2906: fixed a memory leak in the smbclient -L code
Andrew Tridgell [Mon, 11 Oct 2004 05:17:21 +0000 (05:17 +0000)]
r2906: fixed a memory leak in the smbclient -L code
(This used to be commit 0181fe06b4736661871515a7e2ab0d67bc8568fe)

16 years agor2904: - fixed the old style SMBsearch to return the pvfs shortname, not a truncated...
Andrew Tridgell [Mon, 11 Oct 2004 03:27:16 +0000 (03:27 +0000)]
r2904: - fixed the old style SMBsearch to return the pvfs shortname, not a truncated long name.

- short name can be up to 12 bytes, not 11
(This used to be commit 657103ec6264bf4c2986fedd3fc6577746395d49)

16 years agor2903: a considerably more efficient (both in terms of CPU and memory)
Andrew Tridgell [Mon, 11 Oct 2004 03:26:17 +0000 (03:26 +0000)]
r2903: a considerably more efficient (both in terms of CPU and memory)
convert_string_talloc() implementation.

the previous version used a minimum of 512 bytes, which is way above the average
of what is needed.
(This used to be commit abcd841a8530ba3273d56c9001ea277611507be3)

16 years agor2902: make toupper_w() and tolower_w() slightly faster by putting the most common
Andrew Tridgell [Mon, 11 Oct 2004 02:10:45 +0000 (02:10 +0000)]
r2902: make toupper_w() and tolower_w() slightly faster by putting the most common
conditions first
(This used to be commit 878f6b565f4e80eefbb08f44551b3b4f647d7aa7)

16 years agor2901: if we can't load upcase.dat or lowcase.dat then don't waste 256k
Andrew Tridgell [Mon, 11 Oct 2004 02:07:30 +0000 (02:07 +0000)]
r2901: if we can't load upcase.dat or lowcase.dat then don't waste 256k
making fake tables, instead just do the approximate upper/lower inline
with toupper() and tolower().
(This used to be commit 994392d085e87046212191b8f41eba628467c778)

16 years agor2900: rusty pointed out to me that discard_const() can be done via a macro
Andrew Tridgell [Mon, 11 Oct 2004 01:03:27 +0000 (01:03 +0000)]
r2900: rusty pointed out to me that discard_const() can be done via a macro
on systems that have the intptr_t type, and for systems that don't
have it, they also almost certainly won't have -Wcast-qual, so we can use a
void* cast.
(This used to be commit 2132d38f9c5ba59825558d5ba084a514ebc2626b)

16 years agor2898: - Support enumerating remote registry values
Jelmer Vernooij [Mon, 11 Oct 2004 00:29:55 +0000 (00:29 +0000)]
r2898: - Support enumerating remote registry values
- Some LDB updates
(This used to be commit 4b5bf739f5a8f39ff3633d738f6de42681a6b30f)

16 years agor2897: Fix double registration (of the registry subsystem) bug
Jelmer Vernooij [Sun, 10 Oct 2004 23:52:06 +0000 (23:52 +0000)]
r2897: Fix double registration (of the registry subsystem) bug
(This used to be commit f4860afc486da9fcd43798c81181d01eb0120a59)

16 years agor2896: Add torture test for EnumValue()
Jelmer Vernooij [Sun, 10 Oct 2004 23:03:12 +0000 (23:03 +0000)]
r2896: Add torture test for EnumValue()
(This used to be commit e9a7f729b3b5e1d970f124b0a25255f40e18c9b4)

16 years agor2895: Another nut to crack, not sure how hard: The statinfo on a file does obviously
Volker Lendecke [Sun, 10 Oct 2004 17:03:37 +0000 (17:03 +0000)]
r2895: Another nut to crack, not sure how hard: The statinfo on a file does obviously
not change during a write. The nasty thing: Excel 2003 obviosly does depend on
this.

Volker
(This used to be commit 8e26775134671114425ce1ecf7a22bad4e763d1f)

16 years agor2893: added very primitive name mangling support to pvfs
Andrew Tridgell [Sun, 10 Oct 2004 05:29:59 +0000 (05:29 +0000)]
r2893: added very primitive name mangling support to pvfs
(This used to be commit 749fa73544201f521d9cd3fa972b89cae99bc2c0)

16 years agor2892: fix compiler warning
Stefan Metzmacher [Sun, 10 Oct 2004 03:08:49 +0000 (03:08 +0000)]
r2892: fix compiler warning

metze
(This used to be commit 1a3b546fce8a625dcd05e1177fea547d5cdb81d2)

16 years agor2891: call rootDSE only with LDAP_SEARCH_SCOPE_BASE
Stefan Metzmacher [Sun, 10 Oct 2004 02:24:42 +0000 (02:24 +0000)]
r2891: call rootDSE only with LDAP_SEARCH_SCOPE_BASE

this is needed because of the global catalog

metze
(This used to be commit 071c19c25df92e87355ce6efb5eb7ce7694cf09b)

16 years agor2890: fix segfault when call is destroyed and we dereference it
Stefan Metzmacher [Sun, 10 Oct 2004 01:59:22 +0000 (01:59 +0000)]
r2890: fix segfault when call is destroyed and we dereference it

metze
(This used to be commit 82e792a0ce94f63eeb8573d340b2198660aef132)

16 years agor2889: add DRSUAPI server
Stefan Metzmacher [Sun, 10 Oct 2004 01:35:33 +0000 (01:35 +0000)]
r2889: add DRSUAPI server

- with DsBind and DsUnbind implmented :-)
  the RPC-DRSUAPI test works

metze
(This used to be commit 536af87ef12024615728ce0060b557f6f504e33f)

16 years agor2888: - add 'Ds' prefix to Bind and Unbind call on drsuapi
Stefan Metzmacher [Sun, 10 Oct 2004 01:30:54 +0000 (01:30 +0000)]
r2888: - add 'Ds' prefix to Bind and Unbind call on drsuapi

- rename handle -> bind_handle

- change function types to NTSTATUS

metze
(This used to be commit de73676342be8dbf39df8d3fe68817932ee71ccb)

16 years agor2887: fix comment
Stefan Metzmacher [Sun, 10 Oct 2004 01:28:32 +0000 (01:28 +0000)]
r2887: fix comment

metze
(This used to be commit 5143a9bd8aa84b80763c304638a27395b53b54cc)

16 years agor2886: missing stuff from last commit
Stefan Metzmacher [Sun, 10 Oct 2004 00:35:38 +0000 (00:35 +0000)]
r2886: missing stuff from last commit

metze
(This used to be commit f3f2d1c6765a5799c3b0a302b68d41d045e1ba22)

16 years agor2885: windows doesn't try to do sign or seal by default
Stefan Metzmacher [Sun, 10 Oct 2004 00:17:05 +0000 (00:17 +0000)]
r2885: windows doesn't try to do sign or seal by default

metze
(This used to be commit 0f5267c29cca943acf5df392ce1f5c601c4ef7f0)

16 years agor2884: parse LDAP Control messages
Stefan Metzmacher [Sat, 9 Oct 2004 23:59:12 +0000 (23:59 +0000)]
r2884: parse LDAP Control messages

metze
(This used to be commit e23dcb18870450be4252a0dba3e427f73291da25)

16 years agor2883: set BOOL to the internal values not the wire ones
Stefan Metzmacher [Sat, 9 Oct 2004 23:58:11 +0000 (23:58 +0000)]
r2883: set BOOL to the internal values not the wire ones

metze
(This used to be commit ad7b0385cfdb989d69a5c42c21fdaf8cd816999e)

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
(This used to be commit 9fb1b0e2d21e1724723360d062a4a64f185fc6e3)

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
(This used to be commit 7d17122c71e5a84c4804b5630790ba2d1dac73ee)

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
(This used to be commit 650713f7fe5cf8cf81cab034af47d533c2e84227)

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
(This used to be commit 0f6d0b53eb3135e476e768e2283c9364e87b3204)

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
(This used to be commit 34fe29c04a76f2f53f27adcaf9be2dce8d177516)

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
(This used to be commit 5c3f3b4072ed67c6b6b11af6a0f7f2869c717cdb)

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
(This used to be commit 0b30ec593fc6a8f0c0a5b2219ca1250fdd87c1f3)

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
(This used to be commit d878c3c36505f548158297a3cb3b1e3b18b24c55)

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
(This used to be commit 923c936088a42adbe49303d95af08e8129a4e908)

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
(This used to be commit 1e8c43133116881fb7ecf6358c1a91e0e3ea2222)

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
(This used to be commit 4bb410756df13c8c23d21b43c1186f3f9cb9f758)

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
(This used to be commit b04202eaacc87d264d463f75673ee0e68cd54f94)

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
(This used to be commit 343b575baa528885f76be12b2cd707f092f85189)

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
(This used to be commit 3aa1a298970eab563ff6304210bee4696ecec105)

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
(This used to be commit 5173c4d4fe78b2ca539e0b650745b63475d48e1d)

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
(This used to be commit 9a7505bd74a453b10aa2d40071bb80eb656bc61f)

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
(This used to be commit cc77baf729a56499e19a50dcb1a404a4777b36d5)

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
(This used to be commit 30aa8af04498d674dbcf428a9e62df9055f53ea2)

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
(This used to be commit 18367c4235cf16f3c2fee003153ec9b19b02aa9b)

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
(This used to be commit 285d1ea4b09d4fc325544ad1b98244cc1046759c)

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;
}
(This used to be commit 814881f0e50019196b3aa9fbe4aeadbb98172040)

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
(This used to be commit 1b3c7d9cfa250d917a7fb96b315da9ed7d7a91d6)

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
(This used to be commit d23335bc14de7f0402e3d536006d04e813403893)

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
(This used to be commit 04eaae59cda8a8d67bcca896a32dec2ad402a4f2)

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
(This used to be commit 1dabd04e265bbc1e8335f816708c2639746d9afd)

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
(This used to be commit 778cf6d92bc3c50add43b573652c2aefef65026c)

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
(This used to be commit d02fab41f8261095ca8f9a819e0c25bef41b5807)

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
(This used to be commit 391b09dad1cb549b4ce508265a9925c405201e47)

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
(This used to be commit db1ed5675a5271085ea0b89dd634b037ee710178)

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
(This used to be commit e9fa997fd7747cf78ef0ac76bf70f5e34d3d1b12)

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
(This used to be commit d9f3c4e301e52d8e7d7049e657185a66bfad29f7)

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
(This used to be commit 0b46dc6f4b3614fc1d258653f0c8df63586539b6)

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
(This used to be commit a8f2fe0ff0dc2b4219a2cc56272e1e929b9b59b8)

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
(This used to be commit 3af61cb6cd43c8609f06d66d2678994726805063)

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
(This used to be commit 73adc1f357bc0ac01729eb03b26f27cf28226c23)

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.
(This used to be commit bc5165e40a716fb7c612b32c0b6f03cb2d331d11)

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
(This used to be commit ae4b99d15c24696e0784e406e00220d2d0c0a93f)

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
(This used to be commit 1bc5a94488f48ae5c8e67db169f24f5f24c4a234)

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.
(This used to be commit 036e953fac0cd5f0a5760ff0b9f9de45e8cf9479)

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.
(This used to be commit c09f0f355ba6a589121588492aa2db5deb7121e0)

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
(This used to be commit dc43666135a0d9f3be9ebe588ffb24d29027c42c)

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!
(This used to be commit 5fd3c12d4fe3e572618bcd71c5915f69539fe7e6)

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
(This used to be commit e335cd4933fccc1bb53641131eb6505faca857ce)

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
(This used to be commit f522728728fa523ce7d9e73c93b27e71f3757d50)

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
(This used to be commit f5560f961d5b806c2f70feba568d640e6baac2f9)

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.
(This used to be commit bb1be7819741f6c7dc1ee982cb2a255b6d776b79)

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
(This used to be commit e6ecd31be8e91f552d891c41b2f8737519a490a1)

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()
(This used to be commit 5045482b14dfcbb535eab3e5fa63ef1c3b46c40f)