1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

3565 Commits

Author SHA1 Message Date
Andrew Tridgell
54eff1435d r4942: converted the cifs backend to not use event_context_merge(). Instead,
is supplies the server event context during the connect.
(This used to be commit 133e67bb1f)
2007-10-10 13:09:08 -05:00
Stefan Metzmacher
0475cfe570 r4941: - all needed data is now in sam.ldb and hacked.ldb is not needed anymore by the hacked ldap backend
- readd the schema naming context container object as it's needed for a w2k3 dc join

metze
(This used to be commit c583f80623)
2007-10-10 13:09:08 -05:00
Tim Potter
0a15f3edff r4940: Add a variable to hold a list of typedefs for which we shouldn't generate
a dissector for.  A hand written dissector needs to be added to eparser.c
for the plugin to link.
(This used to be commit d4f7f6b0b4)
2007-10-10 13:09:07 -05:00
Andrew Tridgell
fa55d52ede r4939: make a few more private pointers type safe (this might help abartlet
track down a bug he just told me about)
(This used to be commit fb326cbb32)
2007-10-10 13:09:07 -05:00
Andrew Tridgell
9d6e923aab r4938: allow the caller to supply an existing event_context if they want to
in smb_composite_connect_send(). This makes doing parallel calls much
easier.
(This used to be commit 442308970c)
2007-10-10 13:09:07 -05:00
Andrew Tridgell
0e9c55e70f r4937: simplify the connect code in the same way
(This used to be commit 347dfa4724)
2007-10-10 13:09:07 -05:00
Andrew Tridgell
0db8b5a949 r4936: moved to a convention where the completion function is only called in
one place. This makes the code more robust, and simpler (it would have
prevented the error that volker found).
(This used to be commit 420b53091e)
2007-10-10 13:09:07 -05:00
Andrew Tridgell
8eb0963c95 r4935: fixed a bug where "c->status = xxx_handler(x);" could write to c after
it is freed. The problem is that the handler might complete the
request, and called the c->async.fn() async handler. That handler
might free the request handle.
(This used to be commit c4faceadc7)
2007-10-10 13:09:07 -05:00
Tim Potter
8c504b22f0 r4930: Update my copyright.
(This used to be commit 362151788b)
2007-10-10 13:09:06 -05:00
Andrew Tridgell
3b9431ddb9 r4927: parse the NBT session request in the smb server. This gets rid of that
annoying "not parsing session request" message on each SMB connection
(This used to be commit b06b8dd2f4)
2007-10-10 13:09:06 -05:00
Andrew Tridgell
aefaa18554 r4924: continue the effort to simplify and generalise the composite
interface. This patch removes the "stage" variable, which is really
better suited to the backend state structures
(This used to be commit 39da684ea8)
2007-10-10 13:09:06 -05:00
Andrew Bartlett
ba5d77bebd r4923: Avoid using krb5-config in the path if a krb5 prefix was already set.
Andrew Bartlett
(This used to be commit ff8298bb90)
2007-10-10 13:09:06 -05:00
Andrew Tridgell
5ffedbac3d r4922: fixed an infinite loop in the name resolve code when handling a method
in smb.conf that isn't implemented in the library
(This used to be commit dd5b43ed37)
2007-10-10 13:09:06 -05:00
Andrew Tridgell
d069c368fb r4919: if a caller doesn't provide an event context to the resolver library,
then create one. This fixes a crash in the RAW-NEGNOWAIT test for
'host' resolution.
(This used to be commit 3268d523cc)
2007-10-10 13:09:06 -05:00
Andrew Tridgell
b9a1e9a667 r4916: added "host" name resolution using fork() per gethostbyname()
comments welcome, but please think about the alternatives first :-)
(This used to be commit 3d40b47990)
2007-10-10 13:09:05 -05:00
Andrew Tridgell
79ef4f216b r4915: free temp context _before_ the async callback, as the async callback might destroy our top level context
leaving the tmp context freed (so a double free)
(This used to be commit b20c0561b8)
2007-10-10 13:09:05 -05:00
Andrew Bartlett
9bfd19667a r4914: Fill in the realm for the self-join.
Andrew Bartlett
(This used to be commit bc901ecfb4)
2007-10-10 13:09:05 -05:00
Andrew Tridgell
8485a8d935 r4911: make sure we fill in the transport called name on port 445 as well
(thanks to abartlet for spotting this bug)
(This used to be commit 8b653f12f2)
2007-10-10 13:09:05 -05:00
Andrew Tridgell
a09f8c3052 r4909: fixed name_trn_id generation (thanks to metze for spotting the bug!)
(This used to be commit 9d2d16ce5f)
2007-10-10 13:09:05 -05:00
Andrew Tridgell
6b5f8665b0 r4901: a bit more info on nbt packets under high debug level
(This used to be commit 9a34af2938)
2007-10-10 13:09:05 -05:00
Andrew Tridgell
51f3a6a5e8 r4900: build fix for IRIX 6.5
(This used to be commit f6ff9e6f39)
2007-10-10 13:09:05 -05:00
Andrew Tridgell
913006fa2e r4899: fixed build
(This used to be commit 852f1e73b4)
2007-10-10 13:09:04 -05:00
Andrew Tridgell
6f0aef31cd r4898: - removed the unused wins_srv_*() code
- expanded the generic async name resolver to try multiple methods

- added wins resolutions to the list of methods tried

- fixed up the random trn id generation to use the good random generator
(This used to be commit 266fd2751c)
2007-10-10 13:09:04 -05:00
Andrew Bartlett
757a063a13 r4897: Unbreak the LDAP server. Somehow the generic service structures
(which seem just a little too complex) changed, but this code was not
updated or tested.

Also clarify the existing code, by not reusing variables.

Andrew Bartlett
(This used to be commit eb46adade4)
2007-10-10 13:09:04 -05:00
Andrew Tridgell
c0e21a4d3e r4896: make sure the event context doesn't go away while waiting for event completion
(This used to be commit c1063919c0)
2007-10-10 13:09:04 -05:00
Andrew Bartlett
2c0cb15005 r4895: I missed this in my previous 'use secrets.ldb' commit.
Andrew Bartlett
(This used to be commit 53b98c674b)
2007-10-10 13:09:04 -05:00
Andrew Tridgell
a721be4519 r4894: namecache.c is not used any more either
(This used to be commit 24927e69d8)
2007-10-10 13:09:04 -05:00
Andrew Bartlett
4962fd4f28 r4893: Move to using secrets.ldb for the Kerberos verify, instead of
secrets.tdb from Samba3.

Andrew Bartlett
(This used to be commit 21bfda2a0d)
2007-10-10 13:09:04 -05:00
Andrew Tridgell
cda0a7e76e r4892: we don't need nameserv.h any more
(This used to be commit 1c83c80ef2)
2007-10-10 13:09:03 -05:00
Andrew Tridgell
2383787f19 r4891: - added a generic resolve_name() async interface in libcli/resolve/,
which will eventually try all resolution methods setup in smb.conf

 - only resolution backend at the moment is bcast, which does a
   parallel broadcast to all configured network interfaces, and takes
   the first reply that comes in (this nicely demonstrates how to do
   parallel requests using the async APIs)

 - converted all the existing code to use the new resolve_name() api

 - removed all the old nmb code (yay!)
(This used to be commit 239c310f25)
2007-10-10 13:09:03 -05:00
Andrew Bartlett
f1aaef3015 r4890: Try to cope with mechanism mismatch in the client speaks first version
of the SPNEGO state-machine.  (Such as on LDAP and HTTP)

Andrew Bartlett
(This used to be commit c1cae6b3b1)
2007-10-10 13:09:03 -05:00
Andrew Tridgell
23478fe0ca r4889: make sure ndr print flags are initialised in ndrdump
(This used to be commit c5c65ad8fb)
2007-10-10 13:09:03 -05:00
Andrew Tridgell
bef3fbb6db r4888: use the neater calling convention
(This used to be commit d93b6a5b8e)
2007-10-10 13:09:03 -05:00
Andrew Tridgell
4ce2cf2199 r4887: removed a bogus cast
(This used to be commit a034556faa)
2007-10-10 13:09:03 -05:00
Andrew Tridgell
ad1c91250e r4886: fixed two places where we process the send side of a socket after the
recv side in the same event. That's a bad idea, as the first callback
could decide to destroy the socket.
(This used to be commit bf74ea34fc)
2007-10-10 13:09:02 -05:00
Andrew Tridgell
ea923fb4a2 r4885: added a new NBT client library. Features include:
- structures defined using IDL in nbt.idl
 - build around our events structure, and talloc
 - fully async
 - supports all NBT packet fields as per rfc1002
 - easy interfaces for name query and status

For the moment there are just a couple of test functions in
namequery.c, test_name_query() and test_name_status(). These will be
removed when we hook the new library into libcli/ fully

The new library will also be a fairly good basis for a nbt
server. Although it can't be a server as-is, I wrote it with the needs
of a server in mind (for example, extremely scalable idtree based
packet handling)
(This used to be commit ae7e625bfa)
2007-10-10 13:09:01 -05:00
Andrew Tridgell
e0d2080219 r4884: - 2nd part of support ndr_size_ generation on unions as well as structures
- added "nopull" and "nopush" flags, to allow for externally written parsers for sub-structures
(This used to be commit f65f239978)
2007-10-10 13:09:01 -05:00
Andrew Tridgell
84b5890a96 r4883: support ndr_size_ generation on unions as well as structures
(This used to be commit 852ad354b4)
2007-10-10 13:09:01 -05:00
Tim Potter
0a05bdb9eb r4865: Fix up subtree name when dissecting unions. E.g in LSA, The subtree
used to be called something like "Level, R->out.info" but now is called
"Lsa PolicyInformation".
(This used to be commit be2bb36856)
2007-10-10 13:09:01 -05:00
Andrew Tridgell
b808d49cd5 r4863: schema_find_attribute() should be static
(This used to be commit e7262dccce)
2007-10-10 13:09:01 -05:00
Simo Sorce
bc2ae4e4cd r4862: - better structure schema tests
- fix check for deletion of required attributes on modify
  removed by mistake with the previous commits
(This used to be commit 0315159daf)
2007-10-10 13:09:00 -05:00
Simo Sorce
23f92c1634 r4859: changed a numbe rof things:
- Try to no tcopy memory if not necessary
- let the searches hang around until we finish the operation
- greatly simplify the modify operation

still todo:

- check attributes syntax
- check objectclasses type, we cannot allow to add a new structural
  objectclass to an exixting entry unless the existing one is a parent
- more tests
(This used to be commit c6257379e0)
2007-10-10 13:09:00 -05:00
Andrew Tridgell
9d79025e5b r4858: a better fix for alignment of enumerated types (I'm not even sure why
the last fix worked at all)
(This used to be commit 99cef2e5a0)
2007-10-10 13:09:00 -05:00
Simo Sorce
f19049c9c9 r4844: - Remove the unused attrsyn structure
- Change 0 to NULL when checking allocations
- Introduce the schema_attr_cmp hepler function
- Do not allow auxiliary classes to be missing
- Try to ease code readability and try to get
  main code out of loops when possibile.
(This used to be commit a30f647b8a)
2007-10-10 13:09:00 -05:00
Andrew Tridgell
4db56efa19 r4843: fixed the alignment handling of enumerated types
(This used to be commit d2946dfabb)
2007-10-10 13:09:00 -05:00
Tim Potter
c2320ee11c r4842: Set the end of a structure so that when you click on the proto tree,
the hex display window highlights the part of the buffer occupied by
the structure.  Cool!
(This used to be commit b5c13fc6b8)
2007-10-10 13:09:00 -05:00
Tim Potter
72785f13cd r4841: Handle levels that are signed integer types.
(This used to be commit 40d49d6279)
2007-10-10 13:09:00 -05:00
Andrew Tridgell
d04e3bcca6 r4833: added LOCAL-SOCKET to the list of tests that are expected to pass
(This used to be commit 480a4e3d90)
2007-10-10 13:08:59 -05:00
Andrew Tridgell
a3c562b751 r4832: added simple testing of tcp sockets to LOCAL-SOCKET test
(This used to be commit c06b25c269)
2007-10-10 13:08:59 -05:00
Andrew Tridgell
8783aa8ea5 r4831: added udp support to our generic sockets library.
I decided to incorporate the udp support into the socket_ipv4.c
backend (and later in socket_ipv6.c) rather than doing a separate
backend, as so much of the code is shareable. Basically this adds a
socket_sendto() and a socket_recvfrom() call and not much all.

For udp servers, I decided to keep the call as socket_listen(), even
though dgram servers don't actually call listen(). This keeps the API
consistent.

I also added a simple local sockets testsuite in smbtorture,
LOCAL-SOCKET
(This used to be commit 9f12a45a05)
2007-10-10 13:08:59 -05:00