1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-12 21:58:10 +03:00

3643 Commits

Author SHA1 Message Date
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 266fd2751c01808e5a18d4094032af50554ceb7a)
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 eb46adade4a0b9f0977479eb767c0bc7936a9585)
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 c1063919c069b0b36dd3da6dc6853236629804e3)
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 53b98c674b28a85eec9748a079c950bd7fa88384)
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 24927e69d824a1f3c01b2f63876afdfc6064d5ac)
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 21bfda2a0d1c8373f8800269ed9b982e1b9a19e5)
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 1c83c80ef2b7e5f9eb5cd2242e37d136aed181b8)
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 239c310f255e43dd2d1c2433f666c9faaacbdce3)
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 c1cae6b3b1efe109a09e449ed2e09983431eac7e)
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 c5c65ad8fb21e515535286c52847f3eb990f8036)
2007-10-10 13:09:03 -05:00
Andrew Tridgell
bef3fbb6db r4888: use the neater calling convention
(This used to be commit d93b6a5b8e9e4bf86a96262db21aa3fc1490e91d)
2007-10-10 13:09:03 -05:00
Andrew Tridgell
4ce2cf2199 r4887: removed a bogus cast
(This used to be commit a034556faa5d15fee44a58be3aea8aee8ffae3c8)
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 bf74ea34fc0e3c31e220c8f5a9217c95f3ca1d52)
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 ae7e625bfa4b4a3ee32c64566064b6a4c84ee4b9)
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 f65f239978425de795a0e188aaad3d5d1167da32)
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 852ad354b481f130f80213f2924ad44d10340b21)
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 be2bb36856bee1c2882e063beb7c04ac5e5889de)
2007-10-10 13:09:01 -05:00
Andrew Tridgell
b808d49cd5 r4863: schema_find_attribute() should be static
(This used to be commit e7262dccce1ccc563fad48023c733c1d13929b4b)
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 0315159daf157b64ef3452372dd74199600e24b8)
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 c6257379e094881987cd11e05502129b2ce1c5a0)
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 99cef2e5a0412ede455cb1579541550efa49502a)
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 a30f647b8abe6b77ef73018f58af2f8a11689b91)
2007-10-10 13:09:00 -05:00
Andrew Tridgell
4db56efa19 r4843: fixed the alignment handling of enumerated types
(This used to be commit d2946dfabbc727633cdb17c3956fc120e214140c)
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 b5c13fc6b8fe3f8dfa5ada73d33bd13cd607ebc4)
2007-10-10 13:09:00 -05:00
Tim Potter
72785f13cd r4841: Handle levels that are signed integer types.
(This used to be commit 40d49d6279431bf1af343e3eb22038ef9d8b39e6)
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 480a4e3d9029fbeca876c736e7c87bc3352b4b4c)
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 c06b25c269fb34601e931079ff5658f6e19956bc)
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 9f12a45a05c5c447fb4ec18c8dd28f70e90e32a5)
2007-10-10 13:08:59 -05:00
Andrew Tridgell
6c310003d2 r4828: don't apply the schema until we get it working properly
(This used to be commit 37a133c8171087aceec4f377d513f7c28d726b14)
2007-10-10 13:08:59 -05:00
Andrew Tridgell
fb8004a288 r4819: its just not my day today ....
(This used to be commit e54a97f8a67a04427b36cb4afac204c4e5f4502a)
2007-10-10 13:08:59 -05:00
Andrew Tridgell
07837b499f r4818: missed version.h here
(This used to be commit 03953803519e5284b4092db12c6279370456c857)
2007-10-10 13:08:59 -05:00
Andrew Tridgell
8451b2658c r4817: ccache was being made ineffective on all the build farm machines
because the version number was being auto-updated and included in all
C files. With this change it is only included where needed.
(This used to be commit 520cff73c6dc62ba1050cf7ca5145d50b5f2bb4e)
2007-10-10 13:08:59 -05:00
Tim Potter
e62bce854f r4816: Note that NTTIME is 4-byte aligned which makes the comment about alignment
for NTTIME_hyper make a bit more sense.
(This used to be commit 03c1dcb59658e92da6f7643350c06f9efa42f6c4)
2007-10-10 13:08:58 -05:00
Tim Potter
b19268ddc5 r4815: Handle uint8 and uint16 bitmap types.
Break out arguments to proto_register_protocol() so they can be renamed
easily.  Unfortunately the "pidl_" prefix will have to stick around if/when
the old dissectors are removed because the filter and short names clash.
(This used to be commit f2ce80e3350337ef795eb32f2478d218c2e382c3)
2007-10-10 13:08:58 -05:00
Andrew Tridgell
9582863b7e r4814: cope with perl not being in /usr/bin for idl building
(This used to be commit 1fc9448ccb0c2038c128e13535fce83d32f39058)
2007-10-10 13:08:58 -05:00
Andrew Tridgell
190b90e37d r4813: this is a temporary solution to a link problem we have on some
platforms. The problem is that some loaders (for example the IRIX 6.5
machine us4 in the build farm) must have libs listed after object
files that depend on them on the link line. If you put the libs first
then all the symbols in the libs remain unresolved.

I think the correct fix for this is to separate xxx_LINK_LIBS out from
the current xxx_LINK_FLAGS, and use xxx_LINK_FLAGS followed by
xxx_LINK_LIST followed by xxx_LINK_LIBS. I'm hoping metze or jelmer,
as our build wizards, might take a look at this when they get time.

This interim fix should work fine, but its rather ugly, as it lists
the flags and libs twice in each link.
(This used to be commit db7d43fbb95748c85316b41ad3dc4eb967ed8a08)
2007-10-10 13:08:58 -05:00
Andrew Tridgell
b3416c6de4 r4812: removed dependence on Data::Dumper
if you need Dumper for debugging (and it is damn useful!) then please
use the require trick in MyDumper() from pidl so we don't end up
depending on it. Too many systems don't have it.
(This used to be commit b9f32d2812bde0a4389971487006f9c553b5e3c1)
2007-10-10 13:08:58 -05:00
Andrew Tridgell
196a5ec240 r4811: now that the event context is at the socket level, the event cleanup
should be there too
(This used to be commit 058ae5527e3daeb50eeea9e0ecee858c84e7e17d)
2007-10-10 13:08:58 -05:00
Andrew Tridgell
c06493912b r4810: fixed anonymous connections with smbclient. Thanks to jbm for pointing this out.
(This used to be commit 7da0af98a0e0bc743d3c64be30b37cbc45e00737)
2007-10-10 13:08:58 -05:00
Stefan Metzmacher
b494d95e6d r4806: - add some data to the configuration naming context
- add some stuff to make w2k3 dc join to get the correct
  values

metze
(This used to be commit d1490635622023f5c672eea70260265960ac48b6)
2007-10-10 13:08:57 -05:00
Stefan Metzmacher
3c9a2e225a r4804: add more emuns and bitmaps
metze
(This used to be commit 3381617a031db1dfb9dc7fc30f13e260f1dc589a)
2007-10-10 13:08:57 -05:00
Andrew Tridgell
ec6f6aeda1 r4801: remove the two bogus ctype.h includes
(This used to be commit b221c3dbb9a7af88f917562b6f907fd0617eb05f)
2007-10-10 13:08:57 -05:00
Andrew Tridgell
4eb45fd96b r4800: proper fix for the _GNU_SOURCE problem with comparison_fn_t
(This used to be commit 4181b38fac426cfc786e52cdd43fdeddbc26651f)
2007-10-10 13:08:57 -05:00
Alexander Bokovoy
9ce8fde43a r4799: comparison_fn_t is under __USE_GNU on GNU systems, therefore, we need _GNU_SOURCE defined in the test
(This used to be commit b4200a462354cb605eb6af41427027147798de6e)
2007-10-10 13:08:57 -05:00
Tim Potter
31778ba8d2 r4798: When dissecting structures, name the protocol tree after the field name,
not the field type (i.e DACL and SACL instead of dom_sid).
(This used to be commit 2c0e77869f9f04a75785990c79e611134643f89e)
2007-10-10 13:08:56 -05:00
Tim Potter
de7e4293ac r4797: Add the name of what we are pointing to when dissecting pointers.
(This used to be commit 6fc162738f86f8f7df013623e57a21970a8b6f36)
2007-10-10 13:08:56 -05:00
Tim Potter
0b5e8c848b r4796: Get rid of unecessary #include
(This used to be commit 2950dbd87c8ff535277b817268c8a601eee42ba2)
2007-10-10 13:08:56 -05:00
Andrew Tridgell
6e13590873 r4795: stronget type checking in composite connect function
(This used to be commit e16f67c931ba93011d52fdf14312d12a9b09c49a)
2007-10-10 13:08:56 -05:00
Andrew Tridgell
4d7e4c8058 r4794: - disabled the ntacl command line utilities until they are rewritten to use the same
acl format as we use in pvfs (and hopefully use common code too)

- removed a lot of old cruft from our autoconf tests. This may well break some builds,
  but then we can fix them properly instead of the "if solaris version 5.1.2" crap

This was prompted by someone sending me solaris 10 patches that
patched the configure script with if statements for several more
versions of solaris to check for and do special stuff. That is just
silly.
(This used to be commit 1ea59d1146f041e9befbb435e901c6d7d497c52c)
2007-10-10 13:08:56 -05:00
Andrew Tridgell
6717dcca76 r4793: minor doc updates
(This used to be commit ad1af519eb1a138e44cc94676f845b8ba65e3371)
2007-10-10 13:08:55 -05:00