1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

9935 Commits

Author SHA1 Message Date
Andrew Tridgell
ad539ec114 r17658: several replacement snprintf() fixes.
1) when running the testsuite, actually test against the system
   sprintf(), not against ourselves (doh!)

2) fix the buffer termination to terminate buf2 as well

3) fix handling of %llu, and add a simple test

This fixes a bug with password expiry on solaris
2007-10-10 14:16:20 -05:00
Andrew Tridgell
1775381afa r17656: some systems (like older solaris) don't return ENOTEMPTY on rmdir()
with non-empty directory
2007-10-10 14:16:20 -05:00
Simo Sorce
aca800bdcc r17653: fix typo 2007-10-10 14:16:20 -05:00
Simo Sorce
425fda84e2 r17652: add oMSyntax to these attributes 2007-10-10 14:16:20 -05:00
Simo Sorce
09a3272611 r17651: Commit the set of classess used to generate our schema
and update the schema with the latest additions
2007-10-10 14:16:20 -05:00
Simo Sorce
8dd1c1c05b r17648: update minschema.js
this version returns also oMSyntax and oMObjectClass and also
use the right value for the objects CNs

add a nasty hack to ejs' mprLdbMessage() to handle binary blobs situations
2007-10-10 14:16:19 -05:00
Andrew Tridgell
e32fdc7e68 r17647: the init fns should not take a mem_ctx 2007-10-10 14:16:19 -05:00
Andrew Bartlett
67c9cd508e r17646: Use authentication if specified.
Andrew Bartlett
2007-10-10 14:16:19 -05:00
Andrew Tridgell
8236a0ac5e r17645: gcc 4.1.x has started producing "value computed is not used" warnings
in very annoying ways for talloc_steal. This rather strange looking
cpp approach avoids these warnings. It's really a problem in gcc, but
better to do this than put up with the huge flood of warnings.
2007-10-10 14:16:19 -05:00
Andrew Tridgell
45c0580e5d r17644: change the ldap server to always use the single process model. We are
not aiming to produce a high performance parallel ldap server, so
better to reserve the extra CPUs on a SMP box for file serving.
2007-10-10 14:16:18 -05:00
Simo Sorce
df1fe1a5c5 r17642: some more mappings 2007-10-10 14:16:18 -05:00
Simo Sorce
b07a783b98 r17641: some more info, add oMObjectClass values (binary :-/) 2007-10-10 14:16:18 -05:00
Andrew Bartlett
3b5c973988 r17639: Martin Kuhl noticed that we loaded an incorrect value for
distinguisedName on templated objects.

In looking how to handle distinguishedName correctly on LDAP, I was
very glad to find it supported entryDN, and this adds another mapping.

Andrew Bartlett
2007-10-10 14:16:18 -05:00
Andrew Bartlett
dc37c48724 r17634: Kill off another case where we used dnsDomain, and point it again at
dnsRoot.

Fix to read the nETBIOSName from the correct result.

Andrew Bartlett
2007-10-10 14:16:18 -05:00
Andrew Bartlett
6fd6239a0f r17633: Return NULL at the end of the file, or else we can't tell the
difference between end of file and a blank line.

Andrew Bartlett
2007-10-10 14:16:17 -05:00
Simo Sorce
996452844a r17632: This is the most accurate mappings between LDAP OID Syntaxes and AD Syntaxes.
Generated by scripts that cross information from the Windows Schema and the
aggregate schema and cross verified by searching on the net
2007-10-10 14:16:17 -05:00
Simo Sorce
1020edb0c7 r17631: Some syntaxes from MS in a now vanished internet draft 2007-10-10 14:16:17 -05:00
Volker Lendecke
9455b0340f r17624: Samba3 does not yet do getprinterinfo level 6 2007-10-10 14:16:17 -05:00
Simo Sorce
07d377f3c2 r17614: Our first "client side' ldb module.
This module has been created with the purpose of being used
for searches against ldap servers without the need to handle
the control manually

You can test it by passing -o modules:paged_searches to ldbsearch

The page search size is set to 500 objects.

Simo.
2007-10-10 14:16:17 -05:00
Simo Sorce
86fc149ca8 r17613: style fix 2007-10-10 14:16:16 -05:00
Andrew Bartlett
69525129f9 r17609: Kill one more use of the fake dnsDomain attribute.
Add a talloc_steal to avoid a memory leak of the ldb_search result.

Andrew Bartlett
2007-10-10 14:16:16 -05:00
Andrew Bartlett
05c276568a r17601: Fix declaration after statement.
Andrew Bartlett
2007-10-10 14:16:16 -05:00
Andrew Bartlett
cb2b9d800d r17600: Finish the schema conversion tool, and add a mapping file, used to map
OIDs and skip built-in attributes.

Andrew Bartlett
2007-10-10 14:16:16 -05:00
Andrew Bartlett
22dec7b62a r17599: Improvements to the AD-like to OpenLDAP format schema conversion utility.
We now read the objectClasses, and sort them into order, so that
OpenLDAP will load them.  We do this by walking down the 'subClassOf'
chain.  This should also be used in the objectClass module to sort the
objectClass list, and to populate the @SUBCLASS records.

Andrew Bartlett
2007-10-10 14:16:16 -05:00
Andrew Bartlett
120f7891fa r17598: Patch from Martin Kühl <mkhl@samba.org> to update the samba3sam test
suite, which contains tests for the samba3sam and ldb_map modules,
with a lot of tests for search requests.

The tests add a small set of known records to the database, half of
them with only remote data, half of them split across the local and
remote backends, and test searching these records by DN, by attribute
and with a range of parse trees.

This suite should be extensive enough to ensure that behaviour of
search requests doesn't break.
2007-10-10 14:16:15 -05:00
Simo Sorce
25cde0f730 r17597: fix prefix path handling 2007-10-10 14:16:15 -05:00
Simo Sorce
e9d101bc3c r17596: apply patch from Martin 2007-10-10 14:16:15 -05:00
Stefan Metzmacher
2da459287f r17588: this file doesn't exist anymore
metze
2007-10-10 14:16:15 -05:00
Stefan Metzmacher
f20e251bfd r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
configure check for the interfaces.

should fix the build on some old sun boxes

metze
2007-10-10 14:15:39 -05:00
Andrew Bartlett
113ef01320 r17582: Fix dependenies for oLschema2ldif.
Andrew Bartlett
2007-10-10 14:15:39 -05:00
Andrew Bartlett
391f472df7 r17581: Add tool to convert AD schema back to OpenLDAP's schema formatting.
Andrew Bartlett
2007-10-10 14:15:39 -05:00
Andrew Bartlett
ba1c652bae r17580: Add a new tools to convert back from AD-like schema to OpenLDAP.
Add attribute syntax mapping to the existing OpenLDAP -> AD tool.

Andrew Bartlett
2007-10-10 14:15:39 -05:00
Andrew Tridgell
403cbd3355 r17579: make ldb build g++ friendly 2007-10-10 14:15:38 -05:00
Andrew Tridgell
662f01f8ba r17578: in standalone talloc build ensure we get intptr_t if available (which
makes the discard_const stuff nicer)
2007-10-10 14:15:38 -05:00
Andrew Bartlett
eb28aff4e0 r17577: Patch from Kai Blin <kai.blin@gmail.com>:
This is the Samba4 version of the ntlm_auth patch that was committed
to Samba3 in revision 17216.

The purpose of this patch is to return session key information, as
well as NTLMSSP negotiated flags to ntlm_auth's caller.  This allows
the bulk data signing and sealing to be handled in a library, supplied
by the caller.

This also allows the caller to ask for features, so that the right
flags get negotiated.
2007-10-10 14:15:38 -05:00
Stefan Metzmacher
f0754332c9 r17570: add dummy functions for the frsrpc and frsapi interfaces
based on the wireshark information

metze
2007-10-10 14:15:38 -05:00
Stefan Metzmacher
8458ee72c5 r17567: add error code I got from DsGetNCChanges
when I don't use the DRSUAPI_SUPPORTED_EXTENSION_STRONG_ENCRYPTION
flag on DsBind

metze
2007-10-10 14:15:38 -05:00
Stefan Metzmacher
687d69af62 r17566: test if the compiler support inline, this results
in

#define inline

if the compiler doesn't support it

This hopefully fix the build on some hosts,
however we should not start to use inline in our
code this is more to not need to touch imported files
from heimdal or popt.

metze
2007-10-10 14:15:37 -05:00
Stefan Metzmacher
dc0e22a52e r17565: expand the test for negative enum values, systems like Tru64
truncate the value to INT_MAX...
So a AC_TRY_RUN test is needed here

metze
2007-10-10 14:15:37 -05:00
Stefan Metzmacher
ebade9dea5 r17564: we don't need a AC_TRY_RUN to test the compiler warning options
metze
2007-10-10 14:15:37 -05:00
Andrew Bartlett
0e19d15969 r17553: Actually enable the samba3sam module. Should help 'make test'.
Andrew Bartlett
2007-10-10 14:15:37 -05:00
Andrew Bartlett
8a6908200b r17548: It is a good idea to commit the fix (from mkhl) before the test that
shows the need for...

Martin Kuhl writes:

The ejs function `substitute_var' returns `undefined' when the first
argument ends in a pattern that should be substituted.

For that reason, the second assertion fails in the following test-case:

,----
| libinclude("base.js");
|
| var obj = new Object();
| obj.FOO = "foo";
| obj.BAR = "bar";
| var str1 = "${FOO}:${BAR}";
| var str2 = "${FOO}:${BAR} "; // note the space after the brace
| var sub1 = substitute_var(str1, obj);
| var sub2 = substitute_var(str2, obj);
|
| assert(str1 + " " == str2);
| assert(sub1 + " " == sub2);
`----

The problem is that the function `split' returns a single-element
array in both cases:
a) the string to split doesn't contain the split pattern
b) the string ends with the split pattern

To work around this, the following patch tests this condition and
returns `undefined' only if the string to split (`list[i]') really
didn't contain a closing brace.
2007-10-10 14:15:37 -05:00
Andrew Bartlett
c2c72565e4 r17547: Add test by mkhl for some of our variable substituion behaviour.
Andrew Bartlett
2007-10-10 14:15:36 -05:00
Andrew Bartlett
1a5ade30dc r17546: Test the loading of per-partition modules.
Andrew Bartlett
2007-10-10 14:15:36 -05:00
Andrew Bartlett
f6844d04e3 r17545: I forgot to commit this file, a source file for the the samba3sam
tests, by mkhl.

Andrew Bartlett
2007-10-10 14:15:36 -05:00
Andrew Bartlett
c1349cfd8d r17544: Add execute bit to js script.
Andrew Bartlett
2007-10-10 14:15:36 -05:00
Andrew Bartlett
f69a842314 r17543: Patch from Martin Kühl <martin.kuehl@gmail.com> to extend the
samba3sam test cases for ldb_map, and to include this into our default
'make test'.
2007-10-10 14:15:36 -05:00
Andrew Bartlett
656e58672c r17542: In using ldb_map, I ran across some very odd behaviours when we search
for objectClass=xyz.  The code has been warning at me 'no
covert_operator set', and indeed this is the case.  (It then proceeds to
strip this as a search expression)

In this commit, I have implemented a convert_operator for objectClass,
by pretending it is a simple MAP_CONVERT operator for the search
requests.

I also have changed the logic for when we should bail out.  I can only
see reason to bail out on the search if we have both local and remote
trees.  How can a remote-only search be un-splittable?

Andrew Bartlett
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
ebfb719e3d r17540: store command line args of selftest.sh in local vars
as $0,$1,$2,$3 may change in side the script
or included scripts.

This fixes the usage of SOCKET_WRAPPER on non linux
systems (tested on IRIX 6.4)

metze
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
200b1a5c81 r17539: add HMAC-MD5 test code based on the example values from rfc 2104, 2202
metze
2007-10-10 14:15:35 -05:00