| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
errors to be reported corectly, rather than just dropping the socket.
Andrew Bartlett
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Should fix some build farm machine
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Actually you can't test both classic and ldb together, but you can replace the standard
script/tests/mktestsetup.sh file with this one and run make test to see share_ldb in action
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Commit the classic backwards compatible module which is the default one
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
surface
of spoolss. If snum is to be removed, then we should make at least the attempt
to walk parts of the code before and after the changes.
This walks GetPrinterInfo level 0-7.
Volker
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
contexts from the application layer into the socket layer.
This improves a number of correctness aspects, as we now allow LDAP
packets to cross multiple SASL packets. It should also make it much
easier to write async LDAP tests from windows clients, as they use SASL
by default. It is also vital to allowing OpenLDAP clients to use GSSAPI
against Samba4, as it negotiates a rather small SASL buffer size.
This patch mirrors the earlier work done to move TLS into the socket
layer.
Unusual in this pstch is the extra read callback argument I take. As
SASL is a layer on top of a socket, it is entirely possible for the
SASL layer to drain a socket dry, but for the caller not to have read
all the decrypted data. This would leave the system without an event
to restart the read (as the socket is dry).
As such, I re-invoke the read handler from a timed callback, which
should trigger on the next running of the event loop. I believe that
the TLS code does require a similar callback.
In trying to understand why this is required, imagine a SASL-encrypted
LDAP packet in the following formation:
+-----------------+---------------------+
| SASL Packet #1 | SASL Packet #2 |
----------------------------------------+
| LDAP Packet #1 | LDAP Packet #2 |
----------------------------------------+
In the old code, this was illegal, but it is perfectly standard
SASL-encrypted LDAP. Without the callback, we would read and process
the first LDAP packet, and the SASL code would have read the second SASL
packet (to decrypt enough data for the LDAP packet), and no data would
remain on the socket.
Without data on the socket, read events stop. That is why I add timed
events, until the SASL buffer is drained.
Another approach would be to add a hack to the event system, to have it
pretend there remained data to read off the network (but that is ugly).
In improving the code, to handle more real-world cases, I've been able
to remove almost all the special-cases in the testnonblock code. The
only special case is that we must use a deterministic partial packet
when calling send, rather than a random length. (1 + n/2). This is
needed because of the way the SASL and TLS code works, and the 'resend
on failure' requirements.
Andrew Bartlett
|
| | | |
| | | |
| | | |
| | | | |
Andrew Bartlett
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Ad supports three extended operations:
- start tls
- dynamic objects
- fast binds
none of these are a priority.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
regression we had in 3.0.23...
Volker
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Finally acknowledge that ldb is inherently async and does not have a dual personality anymore
Rename all ldb_async_XXX functions to ldb_XXX except for ldb_async_result, it is now ldb_reply
to reflect the real function of this structure.
Simo.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
the max amount of memory of one process
metze
|
| | | |
| | | |
| | | |
| | | | |
Andrew Bartlett
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
to work (it broke it in the previous commit).
Andrew Bartlett
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
and the maximum amount of user data that may be fitted into that.
This is used in the new SASL code, to correctly honour SASL buffer sizes.
Andrew Bartlett
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
chasing down bad signatures that may be due to data truncation.
Andrew Bartlett
|
| | | |
| | | |
| | | |
| | | | |
Andrew Bartlett
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
make the testnonblock skip some things. The socket *under* the tls
socket is still tested.
Andrew Bartlett
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
metze
|
| | | |
| | | |
| | | |
| | | | |
metze
|
| | | |
| | | |
| | | |
| | | |
| | | | |
overwrite break oplocks.
Jeremy.
|
| | | |
| | | |
| | | |
| | | | |
Jeremy
|
| | | |
| | | |
| | | |
| | | | |
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
samba
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
files.
- use the correct timeout variable (simo you should do a standalone build before commiting:-)
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
is build standalone and inside samba
- add configure checks for the some type sizes for debugging
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
declarations.
Andrew Bartlett
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
the Global Catalog port 'correctly' (in a very simple sense) in that
it should be no worse than what we had before.
We now combine partitions together to search over the whole tree, when
we are marked as 'global catalog'.
Andrew Bartlett
|
| | | |
| | | |
| | | |
| | | |
| | | | |
parameters to protect it.
Jeremy.
|
| | | |
| | | |
| | | |
| | | | |
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- fix double free:
a talloc_reference(a,b) when a is a child of b
doesn't prevent talloc_free(b) from destroiying a and b.
metze
|
| | | |
| | | |
| | | |
| | | | |
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
that makes it possible for clients to cancel
async requests, like NOTIFY...
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- the 0xffffffffffffffff seqnum is reserved for SMB2 Break (oplock breaks)
so don't use it in a request. we should someday try to test this...
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
security
descriptor. This is something that W2k3 does _not_ pass and probably is not
expected to, it seems the don't check access at tconX time.
Thanks to metze for the hint how in the srvsvc_NetShareInfo1501 struct the
length of the sd can be encoded in idl.
As metze says, there's probably more to the share secdesc, this needs more
testing. This one is here to walk the samba3 code.
Volker
|
| | | |
| | | |
| | | |
| | | | |
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
on ncacn_np, as abartlet suggested. Also, named pipe remains the default
transport for all kinds of servers to be contacted.
rafal
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
and we
check if we can actually see the user SID on a fresh sessionsetup.
This also gives us the simple create_user, which can lead to more fun tests
:-)
Volker
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
login.
Found that because I want to play around with setsharesecurity, for this I
need the "whoami" call figuring out the SID of the currently connected user.
Not activating this test yet until the build farm has picked up the new samba4
revision.
Volker
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
should I merge that aslo to samba3?
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
the children
this fixes an endless loop bug!
- reenable the test for this
should I merge this to samba3?
metze
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
that it should handle the add without a search.
Now that I'm working on better behaviour with an LDAP backend, I've
fixed the module to do just that. For an ADD, and a MODIFY with the
REPLACE flag, we do not need the search step.
Andrew Bartlett
|
| | | |
| | | |
| | | |
| | | | |
rafal
|