1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

2152 Commits

Author SHA1 Message Date
Andrew Tridgell
fea0571034 r2909: fix some RAW-SEARCH torture mem leaks
(This used to be commit 75ca5ba5091c9046159531b917ff17a519013556)
2007-10-10 12:59:47 -05:00
Simo Sorce
2d2f43c939 r2908: fix typo
(This used to be commit f544f830630c8d0bd37a66dc06683621c4dbcdde)
2007-10-10 12:59:47 -05:00
Andrew Tridgell
925251ea59 r2907: auto destroy iconv memory handles on exit, to make valgrind leak
reports easier to read (less noisy)
(This used to be commit e3009492b85ac90836aa9341687df5869f4ea291)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
38807f046b r2906: fixed a memory leak in the smbclient -L code
(This used to be commit 0181fe06b4736661871515a7e2ab0d67bc8568fe)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
af3866903e 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)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
4aebdb779a 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)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
173ec86fc0 r2902: make toupper_w() and tolower_w() slightly faster by putting the most common
conditions first
(This used to be commit 878f6b565f4e80eefbb08f44551b3b4f647d7aa7)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
51009f7052 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)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
598e82e7ad 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)
2007-10-10 12:59:46 -05:00
Jelmer Vernooij
e2a4771909 r2898: - Support enumerating remote registry values
- Some LDB updates
(This used to be commit 4b5bf739f5a8f39ff3633d738f6de42681a6b30f)
2007-10-10 12:59:45 -05:00
Jelmer Vernooij
ffa0cf3af0 r2897: Fix double registration (of the registry subsystem) bug
(This used to be commit f4860afc486da9fcd43798c81181d01eb0120a59)
2007-10-10 12:59:45 -05:00
Jelmer Vernooij
235a847e68 r2896: Add torture test for EnumValue()
(This used to be commit e9a7f729b3b5e1d970f124b0a25255f40e18c9b4)
2007-10-10 12:59:45 -05:00
Volker Lendecke
3b6a240284 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)
2007-10-10 12:59:45 -05:00
Andrew Tridgell
18dc1cd00f r2893: added very primitive name mangling support to pvfs
(This used to be commit 749fa73544201f521d9cd3fa972b89cae99bc2c0)
2007-10-10 12:59:45 -05:00
Stefan Metzmacher
585571a824 r2892: fix compiler warning
metze
(This used to be commit 1a3b546fce8a625dcd05e1177fea547d5cdb81d2)
2007-10-10 12:59:44 -05:00
Stefan Metzmacher
22f0d7012c r2891: call rootDSE only with LDAP_SEARCH_SCOPE_BASE
this is needed because of the global catalog

metze
(This used to be commit 071c19c25df92e87355ce6efb5eb7ce7694cf09b)
2007-10-10 12:59:43 -05:00
Stefan Metzmacher
437a037b7b r2890: fix segfault when call is destroyed and we dereference it
metze
(This used to be commit 82e792a0ce94f63eeb8573d340b2198660aef132)
2007-10-10 12:59:43 -05:00
Stefan Metzmacher
3dd56175ab r2889: add DRSUAPI server
- with DsBind and DsUnbind implmented :-)
  the RPC-DRSUAPI test works

metze
(This used to be commit 536af87ef12024615728ce0060b557f6f504e33f)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
594082233f 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)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
19a242eb3a r2887: fix comment
metze
(This used to be commit 5143a9bd8aa84b80763c304638a27395b53b54cc)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
e465b65274 r2886: missing stuff from last commit
metze
(This used to be commit f3f2d1c6765a5799c3b0a302b68d41d045e1ba22)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
48d87ea356 r2885: windows doesn't try to do sign or seal by default
metze
(This used to be commit 0f5267c29cca943acf5df392ce1f5c601c4ef7f0)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
f49f6e0c83 r2884: parse LDAP Control messages
metze
(This used to be commit e23dcb18870450be4252a0dba3e427f73291da25)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
9d26f044a3 r2883: set BOOL to the internal values not the wire ones
metze
(This used to be commit ad7b0385cfdb989d69a5c42c21fdaf8cd816999e)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
6ac94532bc r2882: fix mistake that caused a failure on a bind to a dynamic tcp port
metze
(This used to be commit 9fb1b0e2d21e1724723360d062a4a64f185fc6e3)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
c4005997b9 r2881: also bind the ldap service on the global catalog service port
(port 3268)

metze
(This used to be commit 7d17122c71e5a84c4804b5630790ba2d1dac73ee)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
bd7cd1953a 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)
2007-10-10 12:59:41 -05:00
Stefan Metzmacher
a48cf8d27f 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)
2007-10-10 12:59:41 -05:00
Stefan Metzmacher
73e9f435f5 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)
2007-10-10 12:59:41 -05:00
Stefan Metzmacher
85e18e252d r2877: the Bind and Unbind function are already moved...
metze
(This used to be commit 5c3f3b4072ed67c6b6b11af6a0f7f2869c717cdb)
2007-10-10 12:59:41 -05:00
Stefan Metzmacher
4c2bbb1edb 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)
2007-10-10 12:59:41 -05:00
Simo Sorce
d669d6a892 r2875: some fixes + (C) note
(This used to be commit d878c3c36505f548158297a3cb3b1e3b18b24c55)
2007-10-10 12:59:41 -05:00
Simo Sorce
7251e37bb6 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)
2007-10-10 12:59:41 -05:00
Stefan Metzmacher
c9e761a39e r2873: create a DNS zone file for a BIND name server
metze
(This used to be commit 1e8c43133116881fb7ecf6358c1a91e0e3ea2222)
2007-10-10 12:59:41 -05:00
Andrew Tridgell
f9bac1dec2 r2872: got rid of a couple of unused (and horrible) functions
(This used to be commit 4bb410756df13c8c23d21b43c1186f3f9cb9f758)
2007-10-10 12:59:40 -05:00
Andrew Tridgell
7b7619e0ba 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)
2007-10-10 12:59:40 -05:00
Stefan Metzmacher
6350e5cb60 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)
2007-10-10 12:59:40 -05:00
Stefan Metzmacher
4503ddc155 r2864: - Bind and Unbind are no directory partition operations
- move Bind Unbind code to a seperate file

metze
(This used to be commit 3aa1a298970eab563ff6304210bee4696ecec105)
2007-10-10 12:59:40 -05:00
Stefan Metzmacher
7a4478845f r2863: move the logical ldapsrv functions to a seperate file
metze
(This used to be commit 5173c4d4fe78b2ca539e0b650745b63475d48e1d)
2007-10-10 12:59:40 -05:00
Stefan Metzmacher
2a1ee36e7f r2862: prepare LDAP SASL support for the server
metze
(This used to be commit 9a7505bd74a453b10aa2d40071bb80eb656bc61f)
2007-10-10 12:59:40 -05:00
Stefan Metzmacher
78782df554 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)
2007-10-10 12:59:40 -05:00
Stefan Metzmacher
4228ef2815 r2860: add gensec_have_feature() to check what feature are used in the connection
metze
(This used to be commit 30aa8af04498d674dbcf428a9e62df9055f53ea2)
2007-10-10 12:59:39 -05:00
Andrew Bartlett
59ef8de129 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)
2007-10-10 12:59:39 -05:00
Stefan Metzmacher
f210b98804 r2858: fix a few SMB_EXT_LIB_FROM_PKGCONFIG() bugs
metze
(This used to be commit 285d1ea4b09d4fc325544ad1b98244cc1046759c)
2007-10-10 12:59:39 -05:00
Andrew Tridgell
7d32679e96 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)
2007-10-10 12:59:39 -05:00
Andrew Tridgell
48f960ab47 r2856: fixed a minor memory leak in the auth code
(This used to be commit 1b3c7d9cfa250d917a7fb96b315da9ed7d7a91d6)
2007-10-10 12:59:39 -05:00
Stefan Metzmacher
9abbd9e860 r2855: fix error codes for Compare
metze
(This used to be commit d23335bc14de7f0402e3d536006d04e813403893)
2007-10-10 12:59:39 -05:00
Andrew Tridgell
03341ec5bb r2854: added a RPC-COUNTCALLS torture test - a useful varient on the full scanner in RPC-SCANNER
(This used to be commit 04eaae59cda8a8d67bcca896a32dec2ad402a4f2)
2007-10-10 12:59:39 -05:00
Stefan Metzmacher
6aa4a9bd16 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)
2007-10-10 12:59:38 -05:00
Stefan Metzmacher
dba5773d9d 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)
2007-10-10 12:59:38 -05:00