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

9885 Commits

Author SHA1 Message Date
Stefan Metzmacher
8c6cb8f09b r17538: this function should be static...
metze
(This used to be commit c4387dd3f6d1463d9557ee8923590fa5590b35ff)
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 78eaa905d53c5f678cf592284822f645eadbe3b2)
2007-10-10 14:15:35 -05:00
Andrew Bartlett
1686d107f4 r17534: Try another group for 'wheel' on True64.
(This used to be commit 177b713288be9c5d559a27d65e16521cbeefc958)
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 bec738c2a37bf814073bc38a312808f563597319)
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 af08e56442367b5d803f61b8554d85e2fe0ce7e9)
2007-10-10 14:15:34 -05:00
Stefan Metzmacher
8131b6414c r17531: fix whitespaces
metze
(This used to be commit e5f752a66bea40bc4441cff9c6023b2072dc1f6d)
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 1d1bf6b20512653c1de7920388f16fbef936ed47)
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 9c1cd9c2c6bcd9d056a7c9caafacdd573562ebbc)
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 dec2b6961ab28ecf84daa6ef329f98e6ee0927b9)
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 59f86d80841e39613260094b2c848f416a035322)
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 af02b4d7c631bb15bf5a5f73f9fdc23075d50f60)
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 af2bece4d343a9f787b2e3628848b266cec2b9f0)
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 650b99b19d3ede84848ebe747f8afbf2cce9d7e2)
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 2a604480f8dd17d52c1338e32356e9f63dec6385)
2007-10-10 14:15:32 -05:00
Andrew Bartlett
cc3f852e83 r17522: Fix another declaration after statement.
Andrew Bartlett
(This used to be commit a30d312b503c16bd1497752428c178f39dd6227f)
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 73d6651f3c06d0d3bbfd9fe1a9d0f76fe19ba4af)
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 55bac30e1f7fdf8f2e81d29f8d29a269ceefb0d2)
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 ad75cf869550af66119d0293503024d41d834e02)
2007-10-10 14:15:31 -05:00
Simo Sorce
8492a45f8a r17515: Fix warnings
(This used to be commit 5f7864515008a596bbf92163ef8bd48dc8269b09)
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 260868bae56194fcb98d55afc22fc66d96a303df)
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 c57b6420aa4a220257df714aaccb016acb4bae24)
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 941f680453a081d51f6499f9b5dc06c7e6640334)
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 6520e3c83acfbb7b6aa63d1cbebe8f8801db292f)
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 d57b521aadf24a277152ec1ff1dac3210bd14316)
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 8c6efd7b55e4ad45e1bd10519a1b91285a4e0347)
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 009d0905947dec9bab81d8e6de5cb424807ffd35)
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 0b552dadaa60cae8988cb17da95c71b3d1443f17)
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 5609ab2116e3568e4f1a82b3ae781f17a6ffb645)
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
a889fef4b1 r17493: fix typo
metze
(This used to be commit 785c46ed375b99f5765c2d8a2c7c1aaf400119f8)
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
559158a3c9 r17492: add a test with the example values from rfc1321 (MD5)
metze
(This used to be commit bb1e4954f9aa60858a2c5b2f798f10fd75849b42)
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
a573ae9978 r17491: I forgot to commit this...fix make test...sorry:-)
metze
(This used to be commit 408e507f0f333c01c74747ffca2d8458b970cdbc)
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
22cb98b042 r17490: add all test values from rfc 2202
metze
(This used to be commit d3e2e1af80c419ca0008e400b3d8899f2e0d0d83)
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
ea197d7758 r17489: run the crypto tests with test
metze
(This used to be commit b9920f8ac5caee5acdecd1cf1f6410fd95b4c26e)
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
0d235919fb r17488: - add SHA1 and HMACSHA1 functions, based on rfc 2104,2202,3174
- and add torture tests also based on the rfc's

metze
(This used to be commit d48930a02f9560640697fd57e4bba03dc0abe284)
2007-10-10 14:15:28 -05:00
Rafal Szczesniak
b26f4472a7 r17484: Make last version of the function generating random set of changes
more fair to each of the fields (ie. don't create new code at midnight
after a long day...).

This will be useful for testing multiple changes at once and verifying
correctness. A few testing runs already demostrated some missing pieces.

rafal
(This used to be commit 809c9cca965841e8bce84f4b4ecf804ce793d807)
2007-10-10 14:15:28 -05:00
Alexander Bokovoy
ede41694c7 r17478: Add BENCH-READWRITE test to simulate read/write workload from simultaneous async clients. This code is based on concept from Mathias Dietz <mdietz@de.ibm.com>
(This used to be commit 7e6253a5f930645baa842b887d80ea06739bca3f)
2007-10-10 14:15:27 -05:00
Andrew Bartlett
ecfdd5fc6c r17474: Allow the partitions module to load modules for specific backends.
Andrew Bartlett
(This used to be commit c016db2187120991e8ad779b9df35480d7c19400)
2007-10-10 14:15:27 -05:00
Andrew Bartlett
11685acd1d r17473: Split loading a list of modules and initialising them into a seperate
function.

Andrew Bartlett
(This used to be commit bed17cc579d82f04e44ce3c3d1e74d999c2ab867)
2007-10-10 14:15:27 -05:00
Rafal Szczesniak
5104e4e83f r17472: Remove unused variable.
rafal
(This used to be commit 04c94e4a52b9253c6d2ae6e8376338f0b20dd070)
2007-10-10 14:15:27 -05:00
Rafal Szczesniak
54cde4d21d r17471: Add a function generating pseudorandom set of changes to test
user modify routines.

rafal
(This used to be commit dbd34fe08270ac6fbb99733273cf1a3b965209c3)
2007-10-10 14:15:27 -05:00
Rafal Szczesniak
8b659a2439 r17450: A bit more protection against memory allocation errors.
rafal
(This used to be commit a3ef0d051ac6e4a389a294ca6001338e3da23938)
2007-10-10 14:15:26 -05:00
Rafal Szczesniak
1ef10c575d r17449: Add another field to the test before expanding the whole test
to more complex form.

rafal
(This used to be commit e68e296cbea5d2a40b56f6dd7d60410e0306b838)
2007-10-10 14:15:26 -05:00
Rafal Szczesniak
84f8d208ef r17448: Define macros to set fields in api function modifying user account.
rafal
(This used to be commit 8d9330c490470127f192949efa9201225136edb1)
2007-10-10 14:15:26 -05:00
Rafal Szczesniak
9ea3b567e4 r17447: Add more fields to user modify routines.
rafal
(This used to be commit 8fa1cd62ec6ce3b37700cf5ffa5c47b8c8cff977)
2007-10-10 14:15:26 -05:00
Stefan Metzmacher
a0ff937c5f r17442: print out credentials on the "secret" objectClass and "trustedDomain"
objectclass

metze
(This used to be commit af1efa0c790a86f68bd7f761b22478895bfdaaea)
2007-10-10 14:15:26 -05:00
Stefan Metzmacher
87e240b21e r17441: add some more attribute with credentials in them
metze
(This used to be commit 3e2d923e17544020255b7181219ca26878f6c164)
2007-10-10 14:15:25 -05:00
Stefan Metzmacher
0c149befe2 r17438: extend the comment
metze
(This used to be commit 246c35e008fb0cc167cdd1b13db6a50046e3f991)
2007-10-10 14:15:25 -05:00
Simo Sorce
87b2218db7 r17434: update our index
(This used to be commit 9f79714389373735807c1ed8ec9f2fddaa77a9dc)
2007-10-10 14:15:25 -05:00
Simo Sorce
a72a455e29 r17433: remove obsoleted RFCs
(This used to be commit 7dffabc744271b0ab98d00c0cc23600d1b536d29)
2007-10-10 14:15:25 -05:00
Stefan Metzmacher
c3e837eaaf r17432: display more GUID values nicely,
they all have rangeLower=16 rangeUpper=16
and attribute syntax 2.5.5.10

metze
(This used to be commit 932f8bec21a64be3ca84c32a2ceaea98e2ceecf9)
2007-10-10 14:15:25 -05:00