1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

9906 Commits

Author SHA1 Message Date
Andrew Bartlett
04b2dfd935 r17582: Fix dependenies for oLschema2ldif.
Andrew Bartlett
(This used to be commit 113ef01320)
2007-10-10 14:15:39 -05:00
Andrew Bartlett
f28774e370 r17581: Add tool to convert AD schema back to OpenLDAP's schema formatting.
Andrew Bartlett
(This used to be commit 391f472df7)
2007-10-10 14:15:39 -05:00
Andrew Bartlett
7de75a991b 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
(This used to be commit ba1c652bae)
2007-10-10 14:15:39 -05:00
Andrew Tridgell
9f7da6fea0 r17579: make ldb build g++ friendly
(This used to be commit 403cbd3355)
2007-10-10 14:15:38 -05:00
Andrew Tridgell
c0e60d0535 r17578: in standalone talloc build ensure we get intptr_t if available (which
makes the discard_const stuff nicer)
(This used to be commit 662f01f8ba)
2007-10-10 14:15:38 -05:00
Andrew Bartlett
7d6bfb45ba 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.
(This used to be commit eb28aff4e0)
2007-10-10 14:15:38 -05:00
Stefan Metzmacher
ee70f5cd78 r17570: add dummy functions for the frsrpc and frsapi interfaces
based on the wireshark information

metze
(This used to be commit f0754332c9)
2007-10-10 14:15:38 -05:00
Stefan Metzmacher
b0a264f1ae r17567: add error code I got from DsGetNCChanges
when I don't use the DRSUAPI_SUPPORTED_EXTENSION_STRONG_ENCRYPTION
flag on DsBind

metze
(This used to be commit 8458ee72c5)
2007-10-10 14:15:38 -05:00
Stefan Metzmacher
2f119fc7a8 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
(This used to be commit 687d69af62)
2007-10-10 14:15:37 -05:00
Stefan Metzmacher
d6fed33711 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
(This used to be commit dc0e22a52e)
2007-10-10 14:15:37 -05:00
Stefan Metzmacher
4662f3a6d2 r17564: we don't need a AC_TRY_RUN to test the compiler warning options
metze
(This used to be commit ebade9dea5)
2007-10-10 14:15:37 -05:00
Andrew Bartlett
4fe22ebe8b r17553: Actually enable the samba3sam module. Should help 'make test'.
Andrew Bartlett
(This used to be commit 0e19d15969)
2007-10-10 14:15:37 -05:00
Andrew Bartlett
c642680e5b 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.
(This used to be commit 8a6908200b)
2007-10-10 14:15:37 -05:00
Andrew Bartlett
7d4da6897c r17547: Add test by mkhl for some of our variable substituion behaviour.
Andrew Bartlett
(This used to be commit c2c72565e4)
2007-10-10 14:15:36 -05:00
Andrew Bartlett
b7cef04351 r17546: Test the loading of per-partition modules.
Andrew Bartlett
(This used to be commit 1a5ade30dc)
2007-10-10 14:15:36 -05:00
Andrew Bartlett
3ecfa9958e r17545: I forgot to commit this file, a source file for the the samba3sam
tests, by mkhl.

Andrew Bartlett
(This used to be commit f6844d04e3)
2007-10-10 14:15:36 -05:00
Andrew Bartlett
0572822b0e r17544: Add execute bit to js script.
Andrew Bartlett
(This used to be commit c1349cfd8d)
2007-10-10 14:15:36 -05:00
Andrew Bartlett
1ace9b6ec0 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'.
(This used to be commit f69a842314)
2007-10-10 14:15:36 -05:00
Andrew Bartlett
c846d461fa 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
(This used to be commit 656e58672c)
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
879ce60b73 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
(This used to be commit ebfb719e3d)
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
1935ef0d54 r17539: add HMAC-MD5 test code based on the example values from rfc 2104, 2202
metze
(This used to be commit 200b1a5c81)
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
8c6cb8f09b r17538: this function should be static...
metze
(This used to be commit c4387dd3f6)
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
ac88647c13 r17537: if we replace inet_ntoa() we need a prototype of
rep_inet_ntoa...

metze
(This used to be commit 78eaa905d5)
2007-10-10 14:15:35 -05:00
Andrew Bartlett
1686d107f4 r17534: Try another group for 'wheel' on True64.
(This used to be commit 177b713288)
2007-10-10 14:15:34 -05:00
Stefan Metzmacher
c46648b397 r17533: add missing include, so that "socket options = TCP_NODELY" as
default can work...

metze
(This used to be commit bec738c2a3)
2007-10-10 14:15:34 -05:00
Stefan Metzmacher
999015bfbe r17532: merge from SAMBA_3_0 Revision: 17460
First step at fixing the build breakage with the groupmapping test. On Linux,
 F_RDLCK is defined to 0, for example NetBSD has it at 1.

 Still does not work fully though. Still investigating.

metze
(This used to be commit af08e56442)
2007-10-10 14:15:34 -05:00
Stefan Metzmacher
8131b6414c r17531: fix whitespaces
metze
(This used to be commit e5f752a66b)
2007-10-10 14:15:34 -05:00
Andrew Bartlett
4d9b1bda9a r17530: Watching the build farm mails carefully pays off...
This was another declaration before statement bug, in my just-committed code..

Andrew Bartlett
(This used to be commit 1d1bf6b205)
2007-10-10 14:15:34 -05:00
Andrew Bartlett
a993f53d52 r17529: Simo doesn't like the use of the internal ldb_errstring in functions
not used purely as ldb module helper functions.  This now passes these
strings back as explicit parameters.

Andrew Bartlett
(This used to be commit 9c1cd9c2c6)
2007-10-10 14:15:33 -05:00
Andrew Bartlett
0cc8a1780d r17528: This is an additional item of schema we require.
Where is the script we used to create this schema file in the first
place?

Andrew Bartlett
(This used to be commit dec2b6961a)
2007-10-10 14:15:33 -05:00
Andrew Bartlett
a7770d9738 r17527: Don't duplicate the entire test setup just to allow testing of the new
ldb-backed shares configuration.

Andrew Bartlett
(This used to be commit 59f86d8084)
2007-10-10 14:15:33 -05:00
Andrew Bartlett
8f42f1292c r17526: Move timestamp generation into the objectGUID module. It probably
needs to be renamed (operation_add?).

This allows me to match the behaviour and substitute with the
entryUUID module for remote LDAP connections.

Andrew Bartlett
(This used to be commit af02b4d7c6)
2007-10-10 14:15:33 -05:00
Andrew Bartlett
027583e6de r17525: This is a merge from the Google Summer of Code 2006 project by Martin Kühl
<mkhl@samba.org>.

Martin took over the work done last year by Jelmer, in last year's
SoC.  This was a substanital task, as the the ldb modules API changed
significantly during the past year, with the addition of async calls.

This changeset reimplements and enables the ldb_map ldb module and
adapts the example module and test case, both named samba3sam, to the
implementation.

The ldb_map module supports splitting an ldb database into two parts
(called the "local" and "remote" part) and storing the data in one of
them (the remote database) in a different format while the other acts
as a fallback.
This allows ldb to e.g. store to and load data from a remote LDAP
server and present it according to the Samba4 schema while still
allowing the LDAP to present and modify its data separately.

A complex example of this is the samba3sam module (by Jelmer
Vernooij), which maps data between the samba3 and samba4 schemas.

A simpler example is given by the entryUUID module (by Andrew
Bartlett), which handles some of the differences between AD and
OpenLDAP in operational attributes.  It principally maps objectGUID,
to and from entryUUID elements.  This is also an example of a module
that doesn't use the local backend as fallback storage.

This merge also splits the ldb_map.c file into smaller, more
manageable parts.
(This used to be commit af2bece4d3)
2007-10-10 14:15:33 -05:00
Andrew Bartlett
cf863ef3e3 r17524: Lets see if we can try and get the socket_wapper includes to be
pre-processed last, and get AIX and some other hosts to pass make test
again (I think the macros were being over-overridden).

Andrew Bartlett
(This used to be commit 650b99b19d)
2007-10-10 14:15:32 -05:00
Andrew Bartlett
ebee68a5ae r17523: FIXME is a macro (I think) on some platforms (AIX), and this caused pain.
Andrew Bartlett
(This used to be commit 2a604480f8)
2007-10-10 14:15:32 -05:00
Andrew Bartlett
cc3f852e83 r17522: Fix another declaration after statement.
Andrew Bartlett
(This used to be commit a30d312b50)
2007-10-10 14:15:32 -05:00
Andrew Bartlett
8c291e67c5 r17520: If the blkid library fails, I don't see any reason to return more of
an error than if we don't have it.  We might not be on a volume that
can store/return such a GUID.

(Try to fix one of the build farm failures).

Andrew Bartlett
(This used to be commit 73d6651f3c)
2007-10-10 14:15:32 -05:00
Andrew Bartlett
44523cfb8e r17517: Fix declaration after statement, which breaks the build on older GCC.
Andrew Bartlett
(This used to be commit 55bac30e1f)
2007-10-10 14:15:32 -05:00
Simo Sorce
a23b63a8e5 r17516: Change helper function names to make more clear what they are meant to do
(This used to be commit ad75cf8695)
2007-10-10 14:15:31 -05:00
Simo Sorce
8492a45f8a r17515: Fix warnings
(This used to be commit 5f78645150)
2007-10-10 14:15:31 -05:00
Simo Sorce
faed817506 r17514: Simplify the way to set ldb errors and add another
helper function to set them.
(This used to be commit 260868bae5)
2007-10-10 14:15:31 -05:00
Simo Sorce
a9ad616a68 r17513: ldb_set_errstring is an ldb private string, samdb uses DEBUG() statements
(This used to be commit c57b6420aa)
2007-10-10 14:15:31 -05:00
Simo Sorce
c017cb1461 r17507: pread and pwrite depends on HAVE_PREAD/HAVE_PWRITE not HAVE_PREAD_DECL/HAVE_PWRITE_DECL
and common/io.h already defines pread and pwrite as static if they are not.

remove unneded defines
(This used to be commit 941f680453)
2007-10-10 14:15:30 -05:00
Simo Sorce
8b9e08fe76 r17505: we are setting the timeout with the provide function right after.
(This used to be commit 6520e3c83a)
2007-10-10 14:15:30 -05:00
Simo Sorce
71041a5007 r17504: Do not use the invented unixID but use the rfc2307 uidNumber and gidNumber attributes instead
Do not change unixName right now, we don't have an attribute to use in the posixGroup class,
and I think we should remove its usage altogether and look up users and groups by their uid/gid only.

Simo.
(This used to be commit d57b521aad)
2007-10-10 14:15:30 -05:00
Simo Sorce
39018ab902 r17503: Add a useful function to search for a DN
(This used to be commit 8c6efd7b55)
2007-10-10 14:15:30 -05:00
Andrew Bartlett
6e4940cf79 r17499: Open the main database only the minimum times during a provision.
This causes things to operate as just one transaction (locally), and
to make a minimum of TCP connections when connecting to a remote LDAP
server.

Taking advantage of this, create another file to handle loading the
Samba4 specific schema extensions.  Also comment out 'middleName' and
reassign the OID to one in the Samba4 range, as it is 'stolen' from a
netscape range that is used in OpenLDAP and interenet standards for
'ref'.

Andrew Bartlett
(This used to be commit 009d090594)
2007-10-10 14:15:30 -05:00
Stefan Metzmacher
d120eb8128 r17495: run LOCAL-CRYPTO-MD4 and LOCAL-CRYPTO-MD5 with make test
metze
(This used to be commit 0b552dadaa)
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
b165e48b3e r17494: add tests for the example values from rfc 1320 (MD4)
metze
(This used to be commit 5609ab2116)
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
a889fef4b1 r17493: fix typo
metze
(This used to be commit 785c46ed37)
2007-10-10 14:15:29 -05:00