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

2072 Commits

Author SHA1 Message Date
Volker Lendecke
9e1a690d28 r20552: Little Samba3 test to force smb_close to return an error. Set delete on close,
and then remove perms from the parent dir....

Volker
(This used to be commit f24c5052576d4951738f83c3b238d2c251d4553b)
2007-10-10 14:36:53 -05:00
Volker Lendecke
0221d44ef4 r20549: obvious bug fix..
(This used to be commit f0aa63e39050c7ac10b9d51c5cecc753b257be9a)
2007-10-10 14:36:52 -05:00
Andrew Tridgell
b213b70c08 r20539: - split the common timer related events code into events_timed.c
- make it easier to plug in a new events backend

- add simpler 'select' and 'epoll' backends

This is part of the effort to add good AIO support. The events_aio.c
backend is done, but sometimes dies with a SEGV, which is why it isn't
enabled yet.
(This used to be commit 934f18283dbc7958944931a93a854526bcd54884)
2007-10-10 14:36:50 -05:00
Stefan Metzmacher
02db88bb88 r20531: - create the rdn attribute which is an alias for the 'name' attribute
because the rdn attribute isn't explicit replicated
- create the whenChanged attribute out of the meta data
- create the objectGUID attribute out of the guid of the DsReplicaObjectIdentifier*
- create the replPropertyMetaData attribute from the meta data
- dump a more verbose form of the meta data that contains the attribute names
- dump linked attributes

a lot if this functionality will move into the repl_meta_data ldb module
in one of the next steps...

metze
(This used to be commit a6223a20434df1269cc87ba3b1db74473b6ff9bb)
2007-10-10 14:36:49 -05:00
Volker Lendecke
7a734d3b30 r20525: Closing a dir with del-on-close set requires the same as files: Don't actually
unlink/rmdir if another process still has it open.

Jeremy, this is a potential merger to 3.0.24.

Volker
(This used to be commit d0550a01af219344ec2e4c16d5253814afc89974)
2007-10-10 14:36:48 -05:00
Stefan Metzmacher
57f5bf78fa r20514: implement idl for DsGetNT4ChangeLog() which transferres the meta data
for NT4 DC's in mixed mode domains.

This call is triggered by tranferring the PDC FSMO Role to another DC

the real meta data is encoded in the user buffer which is just a DATA_BLOB in idl

metze
(This used to be commit d883815c8d64429e4dac26a93a15e67d31dc263e)
2007-10-10 14:36:04 -05:00
Stefan Metzmacher
bc32b30011 r20510: fix spelling
metze
(This used to be commit 58066e2252001b7689705d296a16438733cfdfc4)
2007-10-10 14:36:03 -05:00
Volker Lendecke
cc8e2febb8 r20508: Confirm a special case in samba3 reply_getatr that getatr("") always returns
HIDDEN.

Volker
(This used to be commit 83a20912061c663ff422b038b41f01a9c7583afe)
2007-10-10 14:36:02 -05:00
Stefan Metzmacher
536ca21c55 r20504: we handle the attribute values always as DATA_BLOB's and
don't need the union with the attribute id as switch anymore

metze
(This used to be commit d47c81923d0731edd314215c6f0b2eb3d1ee252d)
2007-10-10 14:36:01 -05:00
Volker Lendecke
d1e3dccab6 r20497: Two changes to RAW-OPEN that Samba does not fulfil:
Samba3 returns the SPARSE flag for files with size > allocation, and on many
configs Samba3 does not support EAs. Cope with both.

Tridge, please check this is acceptable for this test.

Volker
(This used to be commit 4df4d37c3d4d9e6c430afd36e88684f02c73700e)
2007-10-10 14:36:01 -05:00
Andrew Bartlett
43b715a96d r20494: Dave CB <davecb@spamcop.net> found some stray characters in the docs,
while stress-testing an xml parser.  Bug 4319

Andrew Bartlett
(This used to be commit a9a61eb54309cebfcdc28ff03130244477aa3d2e)
2007-10-10 14:36:00 -05:00
Stefan Metzmacher
c0d70be7d0 r20483: Sorry Volker:-)
I missed to commit this file:-(

metze
(This used to be commit e11885f8a78698ad479826784491548e8b695a04)
2007-10-10 14:35:58 -05:00
Volker Lendecke
c4d4385a71 r20481: Fix the build -- Stefan, please look at this ;-))
(This used to be commit bbb3aaa41b4b025eb6536d6da3caf64db8731bdf)
2007-10-10 14:35:58 -05:00
Volker Lendecke
e1c244a1cf r20480: In Samba3 we don't yet have support for all 4 file times on all platforms (do
we have any?? ;-), so don't mark failure to correctly cope with the close
write time as critical.

Volker
(This used to be commit 42070b09cba8adda1e7606e08764b1f202b33321)
2007-10-10 14:35:58 -05:00
Volker Lendecke
04b9446b2a r20474: Skip the delete-on-close test on a non-empty directory in raw-unlink for
Samba3. This is a known deficiency also taken care of in the base-delete
test.

Volker
(This used to be commit 6b91bb93fad84e054c19f8c9bc4145234f171a3c)
2007-10-10 14:35:56 -05:00
Andrew Bartlett
811397151b r20456: Rename variables to avoid shadowing global function names.
Andrew Bartlett
(This used to be commit c353f2bb91d6cf7553325b94baae8986e85e8ee5)
2007-10-10 14:35:50 -05:00
Stefan Metzmacher
41d6fe36e7 r20438: - bail out on conversation errors
- create a valid ldb_message
- dump the ldb_message if --option="become dc:dump objects=yes" is passed to smbtorture

metze
(This used to be commit 34e126f6590e3fc7ac1f46e09e777993ca10401d)
2007-10-10 14:30:37 -05:00
Volker Lendecke
785e684983 r20423: Fix debug output
(This used to be commit 6afc394d9349782788cc06a38750f0723a5a55e7)
2007-10-10 14:30:35 -05:00
Volker Lendecke
d2e91a1198 r20422: A torture test extension for Jeremy
(This used to be commit 1bcc421dab53adaf3b6c6d7f51c23c80cb637a95)
2007-10-10 14:30:34 -05:00
Stefan Metzmacher
9c77d0a0a8 r20421: - delay the schema analysis untill the full schema is tranferred
- call translation hooks for all attributes (but ignore the error for now)

metze
(This used to be commit c84668bf0da5a791a36f82533b6c0de99b0fe6bf)
2007-10-10 14:30:34 -05:00
Andrew Bartlett
11196d0907 r20396: Missed one user of the renamed elements.
Andrew Bartlett
(This used to be commit a7c83eb7b8e000c51790a9eae67c59c04a4a877c)
2007-10-10 14:30:22 -05:00
Andrew Bartlett
105d18eb30 r20395: Decode more unknowns in the IDL. These are language and codepage IDs!
Try to pass more of the CrackNames test.  Make the test quieter.

Andrew Bartlett
(This used to be commit a6bbfebf52f53f99b0edf52d3c23b72785b97469)
2007-10-10 14:30:22 -05:00
Stefan Metzmacher
112d58a0c5 r20381: verify the incoming oid mappings and schema info for the config and domain partition too
metze
(This used to be commit 1fab753b1da608d49bd976e01286f800c2d42965)
2007-10-10 14:30:20 -05:00
Stefan Metzmacher
6a75d272fc r20380: verify the incoming schema info and oid mappings
metze
(This used to be commit 27193e4b3d7d43e6fee6f35094ab60ff2531a474)
2007-10-10 14:30:20 -05:00
Andrew Bartlett
d0bc792dba r20369: Remember to break if we find a match.
Andrew Bartlett
(This used to be commit 4bd8dbcf41f04be28e2f5d6e15a22f08ba80b948)
2007-10-10 14:30:18 -05:00
Stefan Metzmacher
c70a3f6706 r20359: level -1 of DsGetDomainControllerInfo gives back a list
of all active connections to the Directory Service Agent (DSA)
(This can be LDAP or DRSUAPI connections)

abartlet: you had just luck by using flag(BIG_ENDIAN) as BIG_ENDIAN is
          defined in <endian.h>, it should be flag(NDR_BIG_ENDIAN)...

metze
(This used to be commit c7e639763de1f8ddccfb954227feeaddb7386edc)
2007-10-10 14:30:16 -05:00
Volker Lendecke
1757c0f0a4 r20357: run_trans2test and torture_trans2_scan are two separate tests
(This used to be commit 2e06c38a98e3891ed1f9e823614c3f0c3d279afe)
2007-10-10 14:30:15 -05:00
Andrew Bartlett
ea4c64388b r20353: Restructure the DRSUAPI DsGetDomainControllerInfo test, because as
usual things are more complex than they appear.

Also remove the incorrect server-side implementation, which blindly
assumed some sense of consistancy across the API switch levels.

Andrew Bartlett
(This used to be commit 79941adbff843f5027dacd31b972deca4a1557ec)
2007-10-10 14:30:15 -05:00
Volker Lendecke
880a9be3f7 r20341: Make sure we do not regress on r20338 in Samba3
(This used to be commit 64ee399c964c2935c1386123e2e636c266c8c6a8)
2007-10-10 14:29:42 -05:00
Stefan Metzmacher
89771a974c r20327: start to analyse the schema content
metze
(This used to be commit fa59f168b2c4e56c88c415110c220515a148a592)
2007-10-10 14:29:41 -05:00
Stefan Metzmacher
2506a1efce r20318: do what the printf statement says:-)
metze
(This used to be commit dd9ef6e5ab471665d019fbda87c90f5c95bd57ea)
2007-10-10 14:29:39 -05:00
Andrew Bartlett
400a56d6dd r20315: Implement the server side of DsGetDomainControllerInfo. This is a
supprisingly complex call...

It turns out that the in/out parameter 'level' is not in/out, but set
seperatly by the server-side code from r->req.req1.level.

This commit also breaks out some common code from samldb into samdb.

Andrew Bartlett
(This used to be commit 2eb9e6445c64840399171f4f56b1e43786dbcfa7)
2007-10-10 14:29:38 -05:00
Volker Lendecke
b5a932e13a r20311: Check one more samba3 error path for t2mkdir
(This used to be commit 0f018cca6f70cb44ab436b3a66edb01e57351eaf)
2007-10-10 14:29:37 -05:00
Volker Lendecke
f38b6db8b1 r20309: Don't treat non-supported EAs as fatal against Samba3.
Volker
(This used to be commit 52d9c7ed0acbc286151117bb876559e13981fd44)
2007-10-10 14:29:37 -05:00
Stefan Metzmacher
bd587c5cd1 r20305: as the oid mapping table is dynnamic it makes no sense
to test the mappings when we got the schema via LDAP
as we don't get the mappings

metze
(This used to be commit cfcd6285e1a5367ea4cfa9190658085ed65910b5)
2007-10-10 14:29:36 -05:00
Andrew Tridgell
c4274fee71 r20302: added support for 64 bit file offsets in NBENCH
(This used to be commit 9a9f18914139370311a13044bde7948a2a901738)
2007-10-10 14:29:35 -05:00
Andrew Tridgell
114265b4d5 r20301: add an option torture:readonly which allows the NBENCH test to be run
read only. This is only any use with customer loadfiles, and
pre-created data. I'm using this to test performance as a video
server, with pre-created video files.
(This used to be commit 48a322a9c19f10fa95c1f8092c643d8e10df1303)
2007-10-10 14:29:35 -05:00
Andrew Bartlett
03b05b9400 r20297: Finally got to the bottom of why we were failing the RPC-CRACKNAMES
test against my win2k3 domain.  I have a child domain, and as such the
BUILTIN domain SID appears multiple times in the tree, and is
therefore not unique.

Andrew Bartlett
(This used to be commit 41e42843be783dd88785ba8d3a9bccacc68053a8)
2007-10-10 14:29:34 -05:00
Andrew Bartlett
c51289fc9b r20295: Add a couple more tests to the CrackNames test.
(This used to be commit 115ed29fd8fcfd0ad3ebbabbe01fbc6259ce84bc)
2007-10-10 14:29:34 -05:00
Stefan Metzmacher
7cb96a785f r20293: implement store chunk hook for libnet_BecomeDC()
metze
(This used to be commit aba497f2fdb79e4a61c028501d4d33a3f678ba73)
2007-10-10 14:29:33 -05:00
Stefan Metzmacher
fdf95ba005 r20291: implement prepare_db hook of libnet_BecomeDC()
metze
(This used to be commit 07f1075d469833e10c2f0b0d4578221c6a189b04)
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
64ba98bbd4 r20285: pass more info to check_options hook and move behavior versions etc.
to the domain and forest structures

metze
(This used to be commit 15157bf5b94dacc868c49dbf750421eb221868ba)
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
4973fbe773 r20283: pass in callbacks to libnet_BecomeDC() from the caller
and implement the check_options call

metze
(This used to be commit fc9669e2a081a614599f7cdce1e031e8a8134c67)
2007-10-10 14:29:31 -05:00
Volker Lendecke
0cb8a7f058 r20272: Fix for BASE-BENCH-READWRITE from Mathias Dietz <MDIETZ@de.ibm.com>
(This used to be commit b053a7df8453527a9c2dfc03f3c35487fe75676f)
2007-10-10 14:29:28 -05:00
Stefan Metzmacher
88ef467282 r20251: I found out that the oid-prefix to uint32-id-prefix mapping is transferred
in replication replies, but I don't know the exact encoding.

for example the oids are transferred as:

2.5.4			=> uint8_t v[] = { 0x55, 0x04 };
2.5.5			=> uint8_t v[] = { 0x55, 0x05 };
2.5.6			=> uint8_t v[] = { 0x55, 0x06 };
2.5.18			=> uint8_t v[] = { 0x55, 0x12 };
2.5.20			=> uint8_t v[] = { 0x55, 0x14 };
2.5.21			=> uint8_t v[] = { 0x55, 0x15 };
1.2.840.113556.1.2	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x02 };
1.2.840.113556.1.3	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x03 };
1.2.840.113556.1.4	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x04 };
1.2.840.113556.1.5	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x05 };
1.2.840.113556.1.5.7000	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x05, 0xb6, 0x58 };
1.2.840.113549.1.9	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09 };
2.16.840.1.113730.3	=> uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03 };
2.16.840.1.113730.3.1	=> uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03, 0x01 };
2.16.840.1.113730.3.2	=> uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03, 0x02 };
0.9.2342.19200300.100.1	=> uint8_t v[] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xf2, 0x2c, 0x64, 0x01 };
0.9.2342.19200300.100.4	=> uint8_t v[] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xf2, 0x2c, 0x64, 0x04 };
1.3.6.1.4.1.250.1	=> uint8_t v[] = { 0x2b, 0x06, 0x01, 0x04, 0x01, 0x81, 0x7a, 0x01 };
1.3.6.1.4.1.1466.101.119=> uint8_t v[] = { 0x2b, 0x06, 0x01, 0x04, 0x01, 0x8b, 0x3a, 0x65, 0x77 };

if someone knows how the encoding works, please tell me:-)
I assume some ASN.1 encoding...

metze
(This used to be commit aa720a15319392fee5c532959192d0df5bf4c718)
2007-10-10 14:29:27 -05:00
Stefan Metzmacher
549b56b89d r20231: - add more oid => uint32 id mappings
- handle the case where mappings for 1.2.3.4. and 1.2.3.4.5. prefixes
  exist
- extend test suite for the mappings

metze
(This used to be commit 3af0a9b2c490ed1e4cd0af7faf814823bc60c264)
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
c5571c7c39 r20221: - move the dsdb_schema, dsdb_attribute, dsdb_class structs into
a generic location
- this struct should be also used by the dsdb/samdb/ldb_modules/schema.c
  module later
- add functions to map from LDAP OID values to uint32_t values
- add torture test for the OID => uint32 mapping code

metze
(This used to be commit 58ba6ec195ce3a5e2352866809f6cb57f8d8260a)
2007-10-10 14:29:23 -05:00
Andrew Bartlett
d471e52d23 r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
way to setup a Samba4 DC is to set 'server role = domain controller'.

We use the fSMORoleOwner attribute in the base DN to determine the PDC.

This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.

Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.

We also now use the ldb database to determine if we should run the
global catalog service.

In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.

Andrew Bartlett
(This used to be commit 67d8365e831adf3eaecd8b34dcc481fc82565893)
2007-10-10 14:29:15 -05:00
Stefan Metzmacher
5cc44027dc r20145: fix whitespaces
metze
(This used to be commit d2d9842914bb049189f9349ff96b32c088cd02a8)
2007-10-10 14:29:15 -05:00
Stefan Metzmacher
25e468e83f r20144: add NET-API-BECOME-DC test that tests libnet_BecomeDC()/libnet_UnbecomeDC()
metze
(This used to be commit 0359d9a00b3e30e2bd67b89d6b11236e5af0106b)
2007-10-10 14:29:14 -05:00