1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
Commit Graph

2356 Commits

Author SHA1 Message Date
Jeremy Allison
e42ff21109 r24473: Prove this is also the same for NTcreateX. It's pretty much
guarenteed now that NT_STATUS_OBJECT_NAME_COLLISION should
map to ERRDOS, ERRfilexists on all open calls at least.
Jeremy.
(This used to be commit 125590e008)
2007-10-10 15:01:55 -05:00
Jeremy Allison
a97fa8124f r24469: Start adding in the torture tests that prove that NT_STATUS_OBJECT_NAME_COLLISION
should map to ERRDOS, ERRfilexists not ERRDOS, ERRrename as it currently does in
the errormap. This will break the build farm against Samba3 until I start adding
in the hand mapping from the above. Tridge - we may need to reconsider the mapping
here.
Jeremy.
(This used to be commit 74a871ce70)
2007-10-10 15:01:54 -05:00
Andrew Bartlett
1ea23c2a95 r24390: Another attempt to find out why we fail the LOCAL-EVENT test on some build farm hosts.
Andrew Bartlett
(This used to be commit 1abd8edb57)
2007-10-10 15:01:49 -05:00
Jelmer Vernooij
a43b026ef0 r24333: Add convenience function for checking the contents of a file in tests.
(This used to be commit 4e30410124)
2007-10-10 15:01:38 -05:00
Andrew Bartlett
cf9972a1bd r24300: Try to get the LOCAL-EVENT test to pass on hosts with epoll() in
glibc, but not in the host kernel.

Andrew Bartlett
(This used to be commit bd70b0d106)
2007-10-10 15:01:37 -05:00
Andrew Bartlett
5f6b501f21 r24146: It is not an error for a Win2k3-only server not to support the NT4
replication call.

Andrew Bartlett
(This used to be commit 59cba32c09)
2007-10-10 15:01:28 -05:00
Andrew Bartlett
e0779e2d3b r24127: Set the Domain SID into the libnet context, and have libnet_UserInfo
return full SIDs for the user SID and primary group sid.

This should help kai with his getpwnam work in winbind.

Andrew Bartlett
(This used to be commit 078671d501)
2007-10-10 15:01:27 -05:00
Andrew Bartlett
50a66a2e81 r24083: Don't fail the test (looking for the user in the enum) if we didn't
create the user in the first place.

Andrew Bartlett
(This used to be commit db0f81734d)
2007-10-10 15:01:24 -05:00
Andrew Bartlett
97859bc760 r24081: Domain Controllers are also shown in this enumeration.
Andrew Bartlett
(This used to be commit 3e332ff771)
2007-10-10 15:01:23 -05:00
Andrew Bartlett
008b840760 r24080: Set the primary group (matching windows) when creating new users in
SAMR.  This can't be done in the ldb templates code, as it doesn't
happen over direct LDAP.

As noted in bug #4829.

Andrew Bartlett
(This used to be commit 3bfa6dbf7d)
2007-10-10 15:01:23 -05:00
Andrew Bartlett
649d4bf8aa r24074: Test both permitted logon hours and permitted workstations in the
RPC-SAMLOGON test.

This showed that, as noted by bug #4823, we didn't test for invalid
workstations.  In fact, the code had been ported across, but because
untested code is broken code, it never worked...

Andrew Bartlett
(This used to be commit 5e07417ada)
2007-10-10 15:01:21 -05:00
Andrew Bartlett
fe60cd993d r24059: Fix bug 4822 reported by Matthias Wallnöfer <mwallnoefer@yahoo.de>.
Any SAMR client (usrmgr.exe in this case) that attempted to set a
property to a zero length string found instead the the old value was
kept.

In fixing this, rework the macros to be cleaner (add the
always-present .string) to every macro, and remove the use of the
samdb_modify() and samdb_replace() wrappers where possible.

Andrew Bartlett
(This used to be commit b05fe69304)
2007-10-10 15:01:20 -05:00
Andrew Bartlett
41ab04e37c r24053: Ensure we filter EnumDomainUsers with the supplied mask.
Should fix another part (list of domains in usrmgr incorrectly
including accounts) of bug #4815 by mwallnoefer@yahoo.de.

Andrew Bartlett
(This used to be commit 7f7e4fe298)
2007-10-10 15:01:19 -05:00
Andrew Bartlett
32d55960b5 r24052: Fix some of the NT4 usrmgr.exe portions of bug 4815.
- The icons in usermgr were incorrect, because the acct_flags were
   not filled in (due to missing attribute in ldb query)

 - The Full name was missing, and the description used as the full
   name (due to missing attributes in ldb query and incorrect IDL)

To prove the correctness of these fixes, I added a substantial new
test to RPC-SAMR-USERS, to ensure cross-consistancy between
QueryDisplayInfo and QueryUserInfo on each user.

This showed that for some reason, we must add ACB_NORMAL to the
acct_flags on level 2 queries (for machine trust accounts)...

Getting this right is important, because Samba3's RPC winbind methods
uses these queries.

Andrew Bartlett
(This used to be commit 9475d94a61)
2007-10-10 15:01:19 -05:00
Rafal Szczesniak
a47313851f r24051: more monitor function calls and monitor msg names
convention change.

rafal
(This used to be commit 6ab10b2ed2)
2007-10-10 15:01:18 -05:00
Volker Lendecke
890c42045d r24041: After metze's ack, check in torture_comment from Zack Krisch
<zack.kirsch@isilon.com>
(This used to be commit b1148b7ab8)
2007-10-10 15:01:18 -05:00
Michael Adam
57484f56c0 r23821: Extend the winreg test by a test for DeleteKey on a
key that has subkeys. This should return WERR_ACCESS_DENIED.

Michael
(This used to be commit 9b8789a4b5)
2007-10-10 14:59:23 -05:00
Andrew Bartlett
a0fa5051bd r23816: A little more static, but leave the dead code testjoin.c as documentation.
Andrew Bartlett
(This used to be commit 6679003c05)
2007-10-10 14:59:23 -05:00
Andrew Bartlett
d57cb82663 r23811: Try to ensure struct nbt_name is always pre-declared. Might fix the
build on aico.

Andrew Bartlett
(This used to be commit 5609bd9d21)
2007-10-10 14:59:21 -05:00
Andrew Bartlett
a87dea2a08 r23810: Make things static, and remove unsued code.
This includes some of the original ildap ldap client API.  ldb
provides a much easier abstraction on this to use, and doesn't use
these functions.

Andrew Bartlett
(This used to be commit dc27a7e41c)
2007-10-10 14:59:21 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Jeremy Allison
4f2fe8e947 r23734: Add a test to prove tridge's theory that the mask, once set
on an open directory handle, is never changed. (He's right btw :-).
Jeremy.
(This used to be commit bf9242ad45)
2007-10-10 14:59:09 -05:00
Stefan Metzmacher
5dd8496af6 r23687: not every compiler supports __typeof__()
metze
(This used to be commit d0f77f7bd7)
2007-10-10 14:59:01 -05:00
Jim McDonough
698093b028 r23643: Fix the build farm tests. We were incorrectly passing the
RPC-SAMBA3-GETUSERNAME tests before the previous password expiration
fixes, because if you create a user and only set the password
administratrively, the "last set time" should not get updated.  Needed
to add some more of the fields_present flags to do this.
(This used to be commit ce5637de22)
2007-10-10 14:53:30 -05:00
Michael Adam
f604ee4320 r23561: Fix an output message.
(This used to be commit bf1edba3f1)
2007-10-10 14:53:28 -05:00
Andrew Bartlett
d291b8bf93 r23551: Change data_blob_equal to data_blob_cmp, suitable for sorting with qsort().
Andrew Bartlett
(This used to be commit 96ef5259c6)
2007-10-10 14:53:26 -05:00
Alexander Bokovoy
9ed016b692 r23540: Continue fixing bench-readwrite. We need to initialize state->readcnt not only when file is written but at initial write as well.
(This used to be commit 0258f9d3c2)
2007-10-10 14:53:26 -05:00
Andrew Tridgell
dc4f1f6754 r23535: accept numeric ntstatus codes in nbench load files (ronnies wireshark
script generates numeric codes)
(This used to be commit 455895c4b1)
2007-10-10 14:53:25 -05:00
Andrew Tridgell
551575012b r23534: honour the targetrate even for loadfiles with timestamps
(This used to be commit 24b6aabd11)
2007-10-10 14:53:25 -05:00
Andrew Tridgell
2a3282f872 r23533: added --option torture:targetrate=rate to target a particular
throughput in MBytes/sec
(This used to be commit 35477e8e3d)
2007-10-10 14:53:25 -05:00
Andrew Tridgell
428373743a r23531: added optional latency reporting in BENCH-NBENCH. To use it, you need
to have a load file that puts a timestamp in the first column. That
tells NBENCH to target the same throughput as the capture, and to
report the maximum amount of latency miss in the test

This allows you to quickly see how many clients you can run with while
still meeting a given target
(This used to be commit 7f045ca4f5)
2007-10-10 14:53:24 -05:00
Alexander Bokovoy
de4f15a3ad r23529: When using READX, fill in readx fields. Thanks to Metze for spotting it.
(This used to be commit 9bb079d70d)
2007-10-10 14:53:24 -05:00
Alexander Bokovoy
7e02cb2101 r23506: Turn back to RAW_READ_READ because buildfarm fails. Investigating.
(This used to be commit a580d19cb3)
2007-10-10 14:53:23 -05:00
Alexander Bokovoy
5b2e3e8bd8 r23505: Use RAW_READ_READX, not RAW_READ_READ in BENCH-READWRITE test (we already write with RAW_WRITE_WRITEX). Noticed by Gomati Mohanan
(This used to be commit 5530b38bbf)
2007-10-10 14:53:23 -05:00
Volker Lendecke
a7601c9829 r23492: Also activate the split out test...
(This used to be commit a3cb4bcae7)
2007-10-10 14:53:22 -05:00
Volker Lendecke
25abee0505 r23491: Split out the RENAME trans2 call into a separate test
(This used to be commit 80244f1ee6)
2007-10-10 14:53:22 -05:00
Kai Blin
b163ab8008 r23481: As per metze's suggestion, move the nsstest files from torture/ to nsswitch/
(This used to be commit 4e7dc9eae4)
2007-10-10 14:53:19 -05:00
Kai Blin
c2dc9a4d7c r23403: Make nsstest build on Samba4.
For now, only build on Linux systems. If the build farm is happy with this,
I will gradually turn on this feature for other platforms, too.
(This used to be commit c2d4cc1c61)
2007-10-10 14:53:15 -05:00
Günther Deschner
38af1b1c05 r23386: Correctly fill in server name in DsrGetDcSiteCoverageW() test.
Guenther
(This used to be commit 2fc02ab992)
2007-10-10 14:53:15 -05:00
Günther Deschner
8d9e0d5323 r23385: Adding netr_DsRGetForestTrustInformation() test to query transitive forest
trusts as well as our primary domain.

Guenther
(This used to be commit 7b19df13a4)
2007-10-10 14:53:14 -05:00
Günther Deschner
09a82db7ba r23383: Query transitive forest trust info in LSA torture test once we see such trusts.
Guenther
(This used to be commit eaa17d5a8f)
2007-10-10 14:53:14 -05:00
Günther Deschner
eb9ae52981 r23381: Merge netr_GetDcName WERROR return and WERROR_DOMAIN_CONTROLLER_NOT_FOUND from
SAMBA_3_0.

Guenther
(This used to be commit 841ad140a3)
2007-10-10 14:53:13 -05:00
Andrew Bartlett
c74ad3546c r23365: Try to make Windows Vista join again. On my new test environment, it
wants to check for an existing domain join account, and fails.  This
test shows that we need to return NT_STATUS_NONE_MAPPED when nothing
matches.  (not yet tested if this helps vista).

Andrew Bartlett
(This used to be commit 7f3671bf11)
2007-10-10 14:53:12 -05:00
Günther Deschner
adf23c651b r23240: Fill in netr_DsrGetDcSiteCoverageW.
Guenther
(This used to be commit 9c2b964233)
2007-10-10 14:53:06 -05:00
Günther Deschner
4d1a21f24d r23239: Fill in drsuapi_QuerySitesByCost.
Guenther
(This used to be commit cf953d0481)
2007-10-10 14:53:06 -05:00
Jim McDonough
0ab01a99a8 r23231: Fix make test on build farm for 64-bit hosts. There's no reason this should
be any different for 64-bit hosts, but we probably are lucking out on other
fields here as well.  The "fields_present" field shouldn't just be copied
from usrmgr traces, because it indicates which fields should be set, and
in this case, we were setting the kickoff time (NOT the expired time) to some
random date.
(This used to be commit 69270178e5)
2007-10-10 14:53:04 -05:00
Andrew Tridgell
95a3ca53e5 r23182: fixed valgrind error
(This used to be commit fae416cbe8)
2007-10-10 14:53:01 -05:00
Andrew Tridgell
aeac4f4800 r23181: prevent attempts to reopen the connection twice at the same time
(This used to be commit a25c27dbae)
2007-10-10 14:53:01 -05:00
Andrew Tridgell
9b95f57530 r23180: auto-reconnect on both NT_STATUS_END_OF_FILE and NT_STATUS_LOCAL_DISCONNECT
(This used to be commit 32a6c268a7)
2007-10-10 14:53:01 -05:00
Andrew Tridgell
12d9b33ed6 r23152: fixed some async retry issues in openbench
(This used to be commit 08eeaff079)
2007-10-10 14:52:58 -05:00