1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

9204 Commits

Author SHA1 Message Date
Andrew Bartlett
b7bcaec775 r16232: Avoid searching on domainDns, as it is not an AD attribute in the
official schema.

Add baseDNs, so we search the correct partition.

Andrew Bartlett
(This used to be commit f47b7720a3a69f60e60b3671b621f49b0c444eec)
2007-10-10 14:09:07 -05:00
Andrew Bartlett
422f1b5495 r16227: Don't segfault if the ldb_search() fails.
Andrew Bartlett
(This used to be commit af11f464a717cc7db0393070da780091a6053ee0)
2007-10-10 14:09:06 -05:00
Andrew Bartlett
345c9f043f r16226: Fixes for various segfault bugs found against a buggy Samba4. With
the current API we need to check both that the RPC didn't fault, and
that the query succeeded.

Also print the right things in debug messages.

Andrew Bartlett
(This used to be commit d18e515391f8f5038e9aaaba596099052011b53a)
2007-10-10 14:09:06 -05:00
Andrew Bartlett
9482de3979 r16218: If a connection is forced as 'anonymous', don't treat it as
'authentication requested'...

Andrew Bartlett
(This used to be commit d5fc88c93697dbcab13b2356ef4e5d1d2a7d59eb)
2007-10-10 14:09:06 -05:00
Rafal Szczesniak
9fb340758b r16211: Refactor domain_opened function a bit and add a few comments.
rafal
(This used to be commit d8113fa5e19570fcf67a7d3cd8a0d8ab12ef147e)
2007-10-10 14:09:06 -05:00
Jelmer Vernooij
a64980dd40 r16186: Use full include path to make sure it's being picked up by the
dependency generator.
(This used to be commit fbbc3b11683d594d31e6487873946b68c2c46923)
2007-10-10 14:09:06 -05:00
Jelmer Vernooij
fdc5a3aeb5 r16185: Remove autogenerated file from SVN.
(This used to be commit a975f11d452deb2c5e06b8ba02f528b08d2842e1)
2007-10-10 14:09:05 -05:00
Jelmer Vernooij
123e50735a r16184: Convert to UI API. The async test was previously broken (fails
with NT_STATUS_NO_MEMORY) and still does.
(This used to be commit 5c2e136ef97fb98ae5314d1b2c73bb7b2fe4d8ee)
2007-10-10 14:09:05 -05:00
Volker Lendecke
4d333d26b3 r16182: Better test the 15 out of 20 tests we right now survive than not test at
all...

Volker
(This used to be commit 1d4a129bb56ef7b944dbd386313ea8345a675e6f)
2007-10-10 14:09:05 -05:00
Jelmer Vernooij
02aee3000d r16174: Couple of fixes to the UI code - make 'torture_ok()' optional, be more verbose by default.
(This used to be commit 8ef13a50b9e80811342058cdf15cf84a8ed7532e)
2007-10-10 14:09:05 -05:00
Jelmer Vernooij
90be000cd5 r16173: Use memory context provided by smbtorture.
(This used to be commit 88046d59517a595cfb8e9385ad87e8460eececac)
2007-10-10 14:09:05 -05:00
Andrew Bartlett
a42365befc r16172: Translate the ldb error codes into appropriate messages for the
transaction cases.

Andrew Bartlett
(This used to be commit 28883f719304ee438c54a4d33e6bf1239f8c4094)
2007-10-10 14:09:04 -05:00
Jelmer Vernooij
b617c831a4 r16171: Convert to UI API
(This used to be commit 075dfb4c52132ea34dec643b12dcd01f05f3240f)
2007-10-10 14:09:04 -05:00
Jelmer Vernooij
1cb88c8c98 r16170: Convert to UI API
(This used to be commit 7dad6f9c0aade8585f874d0362290d06696a5087)
2007-10-10 14:09:04 -05:00
Jelmer Vernooij
d3c0cfb8a2 r16169: Convert to UI API
(This used to be commit 6306a3cc17aff23f54e3f4e7a36d6ab9f6739739)
2007-10-10 14:09:04 -05:00
Andrew Bartlett
481991e1b9 r16168: Make the example match the actual function.
This was very confusing until I really looked at it.

Andrew Bartlett
(This used to be commit 0053d06d9f85f2304191ab8f68eee7f48b2f2aa8)
2007-10-10 14:09:04 -05:00
Andrew Bartlett
5f44da36e7 r16166: Remove hexidecimal constants from the Samba4 provision files.
This change is required for compatibility with the OSX client, in
particular, but returning 0x80000002 rather than -2147483646 violates
what LDAP clients expect in general.

Andrew Bartlett
(This used to be commit 81f3cd1c4592d2108d521acd701ed4a70a23c465)
2007-10-10 14:09:03 -05:00
Jelmer Vernooij
b78ebdbfc0 r16165: Add some more helper utilities
(This used to be commit 584cd50d2bbace27220427ab23d032b2aab7f047)
2007-10-10 14:09:03 -05:00
Jelmer Vernooij
978dee520e r16164: Convert to UI API
(This used to be commit 5cd95ec885cb0ffd5b40f53a5a0193388ec5fc6a)
2007-10-10 14:09:03 -05:00
Jelmer Vernooij
6845e402e1 r16163: Convert to UI API
(This used to be commit 067c58f0d9743b52a05dd4c7cf78a64ea16133d9)
2007-10-10 14:09:03 -05:00
Jelmer Vernooij
c714fdaa22 r16162: Convert to UI API
(This used to be commit 78db534f65245c6f093ca8b2bf24dfba9a125ea0)
2007-10-10 14:09:02 -05:00
Jelmer Vernooij
5afa7ef926 r16161: Convert to UI API
(This used to be commit 8ed3fc0f86532bb224ea68584bdaf618903bd914)
2007-10-10 14:09:02 -05:00
Jelmer Vernooij
572930b1af r16160: Fix double semicolon in ui.h
Support output in perl's Test::Harness format (smbtorture output
can now be parsed by the 'prove' utility which generates statistics
about how much tests failed, succeeded, skipped, etc)
(This used to be commit 18fab7a22c85e360d5e4fbb0b2f97504b9a6cfc9)
2007-10-10 14:09:02 -05:00
Andrew Bartlett
9f4b56dd13 r16159: Even more work on samldb error reporting. Make sure to get the
original error strings back to the callers.

Andrew Bartlett
(This used to be commit defa63298838fefae7ed003458020045edaef21d)
2007-10-10 14:09:02 -05:00
Jelmer Vernooij
6bc5133021 r16158: Convert to use UI API
(This used to be commit 18f9584a791a7984560cdf577f3dde1ef1765fb0)
2007-10-10 14:09:02 -05:00
Jelmer Vernooij
482a9f046f r16152: Support multiple output formats for those tests using the ui and add support for subunit output.
(This used to be commit 4e720b01916e226071fce124363da7d68f04a511)
2007-10-10 14:09:01 -05:00
Volker Lendecke
dcbd023aa0 r16151: |= fix found by metze
(This used to be commit ce54a15384a42c971226ef513849a0ccbf9a1ed3)
2007-10-10 14:09:01 -05:00
Volker Lendecke
c1cbe6e0b0 r16149: This is a very Samba3 specific test: It tests whether 'hide unreadable' and
'hide unwriteable files' actually do what they are supposed to do.

Volker
(This used to be commit 7bf02a5e0f2c53bd516033d31466cd0cf22d3496)
2007-10-10 14:09:01 -05:00
Jelmer Vernooij
46a6477268 r16143: Fix disappearance of user-specified CPPFLAGS,LDFLAGS and LIBS variables.
(This used to be commit b7c3f80efd08c2206048d00815b7396488c91d3b)
2007-10-10 14:09:01 -05:00
Volker Lendecke
a0d491f219 r16140: How on earth does this work on most build farm machines.... ?
(This used to be commit f8bae84e89bb2fe8deea7795ad59fbefa9c98e79)
2007-10-10 14:09:01 -05:00
Andrew Bartlett
c8d0489c10 r16129: Further clean up the samldb module.
This adds more/better setting of the ldb error string, and avoids
using gendb_search(), as this doens't return the error code.

Andrew Bartlett
(This used to be commit 2d2e71a2d5827c9dc8785b87547559071b47ab34)
2007-10-10 14:09:00 -05:00
Andrew Bartlett
f283307f52 r16125: Add another helpful utility function: samdb_msg_add_int()
Andrew Bartlett
(This used to be commit 2fe9de8105843776b8ef41ef6f9a6cea5cb188ff)
2007-10-10 14:09:00 -05:00
Volker Lendecke
9469af4596 r16123: Samba3 in the buildfarm will happily create (faked(!!)) users anonymously. Disable that test for now.
(This used to be commit 9015713d62558ba76d693c5e8a4c23e3fd3ccab5)
2007-10-10 14:09:00 -05:00
Andrew Bartlett
4a350fd18f r16109: Make this module simpiler, don't intercept operations we are not going
to implement.

Andrew Bartlett
(This used to be commit 3252e425b0e28656ac5fb19fa4edf7322ea72eab)
2007-10-10 14:09:00 -05:00
Andrew Bartlett
e5a00c8ca6 r16108: Fixes from working with the partition module.
We were not using the correct baseDN for the templates search.  Using NULL is no longer valid (like against AD).

While chasing that down, return proper error codes, and use the
ldb_set_errstr() to get a good error string back up to the UI layer.

Andrew Bartlett
(This used to be commit b31003403d84def6f11b21df566ff57c01da21b8)
2007-10-10 14:08:59 -05:00
Gerald Carter
e3a6c6be79 r16100: Patch from Michael Wood <mwood@icts.uct.ac.za>: s/then/than/ for correct grammar
(This used to be commit 26a2fa97e4c819e630bc9b50e11c8d5328c7b8c8)
2007-10-10 14:08:59 -05:00
Volker Lendecke
7613015f47 r16091: Without this patch Samba3 will not accept this, and simply setting the "92" to
"100" will give funny permissions...

Volker
(This used to be commit b76a3d4f590963d48eae8a9899d17ae3833c3dfa)
2007-10-10 14:08:59 -05:00
Tim Potter
7d7e43d94f r16090: Fix standalone build after the rename of enum ldb_request_type in
r15944.

Hey idra I think a better rename would be to keep the LDB_REQ suffix
here to remain consistent with the other enums (e.g ldb_reply_type,
ldb_async_wait_type and ldb_async_state).
(This used to be commit d44ee8c43bd8f6f978330a8ded8bf30ffad494d6)
2007-10-10 14:08:58 -05:00
Tim Potter
43e9053d95 r16089: Make doxygen target work if $DOXYGEN variable is empty.
(This used to be commit 8f44d0a2d66751ebc648550eec1ea051724b750c)
2007-10-10 14:08:58 -05:00
Andrew Bartlett
d912d6fcef r16087: Fix silly cut-and-paste typo that cost me much of my afternoon...
This only affects my new partitions module, which I will post soon,
but should be fixed anyway.

Andrew Bartlett
(This used to be commit 8912c4e057eb3962321245cf49b92999afcc64fc)
2007-10-10 14:08:58 -05:00
Andrew Bartlett
f4f194aad1 r16086: Ensure we can never dereference NULL pointers, and that describe what
these two DN comparison functions do.

Andrew Bartlett
(This used to be commit 733b64a733779daade7d1cabbacac2275564b697)
2007-10-10 14:08:58 -05:00
Andrew Bartlett
6664ac8886 r16085: Set the error string if we fail to find a valid op to execute. Helps
in chasing down bugs :-)

Andrew Bartlett
(This used to be commit 9ede8edbaf1731f32814917439326f49b5f9f3ef)
2007-10-10 14:08:58 -05:00
Andrew Bartlett
c79f37fa1a r16084: Add private prototype for new ldb_connect_backend() function.
Andrew Bartlett
(This used to be commit 684126223046d88d1ff446767ab6783f6391b50c)
2007-10-10 14:08:57 -05:00
Andrew Bartlett
247af0d569 r16083: Make it possible to initialise a backend module, without it setting up
the whole ldb structure.

Because the sequence number was a fn pointer on the main ldb context,
turn it into a full request (currently sync).

Andrew Bartlett
(This used to be commit fbe7d0ca9031e292b2d2fae263233c973982980a)
2007-10-10 14:08:57 -05:00
Andrew Bartlett
2ab5bafd72 r16082: Index objectCategory like objectClass, as it is searched on a lot.
Andrew Bartlett
(This used to be commit 954785db03455daf2ff9b2828e31cb7efffe4f11)
2007-10-10 14:08:57 -05:00
Andrew Bartlett
c38f24b021 r16073: On an incoming wildcard search, it is critical that the size be
correct, or we try and do a memcmp on the trailing '\0'.

This happens because we now use memcmp for the prefix matching.

I just wish I had a test other than a particular invocation of the OSX
client.  (I've tried and failed so far)

Andrew Bartlett
(This used to be commit 36aa8390807581442c68ac3ee9dd6eb05d89b86d)
2007-10-10 14:08:57 -05:00
Simo Sorce
2452d41b22 r16071: tdb has nested transactions
change the code to exploit that in ldb

I still have to reintroduce transactions when you call ldb_request directly,
I have some plans I hop to be able to develop in the next weekend
(This used to be commit 35111206021d667dfd217b5fd8d82f5c2714cc9e)
2007-10-10 14:08:56 -05:00
Simo Sorce
2ed444de43 r16070: Fix kludge_acls
(This used to be commit 795f8ebe8eecf28f5729754dc248d2a8411effb9)
2007-10-10 14:08:56 -05:00
Andrew Bartlett
e2e5c037f0 r16069: Remove unused destructor and an unused variable.
Andrew Bartlett
(This used to be commit 25e85975459acc556c0d46f1683dd4bbdd94874b)
2007-10-10 14:08:56 -05:00
Andrew Bartlett
4f619f4874 r16067: Remove const, it isn't required and just causes a warning.
Andrew Bartlett
(This used to be commit 272a0957283daafb6cbf52219263b94856155d65)
2007-10-10 14:08:56 -05:00