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

3578 Commits

Author SHA1 Message Date
Andrew Tridgell
852ad354b4 r4883: support ndr_size_ generation on unions as well as structures 2007-10-10 13:09:01 -05:00
Tim Potter
be2bb36856 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".
2007-10-10 13:09:01 -05:00
Andrew Tridgell
e7262dccce r4863: schema_find_attribute() should be static 2007-10-10 13:09:01 -05:00
Simo Sorce
0315159daf r4862: - better structure schema tests
- fix check for deletion of required attributes on modify
  removed by mistake with the previous commits
2007-10-10 13:09:00 -05:00
Simo Sorce
c6257379e0 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
2007-10-10 13:09:00 -05:00
Andrew Tridgell
99cef2e5a0 r4858: a better fix for alignment of enumerated types (I'm not even sure why
the last fix worked at all)
2007-10-10 13:09:00 -05:00
Simo Sorce
a30f647b8a 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.
2007-10-10 13:09:00 -05:00
Andrew Tridgell
d2946dfabb r4843: fixed the alignment handling of enumerated types 2007-10-10 13:09:00 -05:00
Tim Potter
b5c13fc6b8 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!
2007-10-10 13:09:00 -05:00
Tim Potter
40d49d6279 r4841: Handle levels that are signed integer types. 2007-10-10 13:09:00 -05:00
Andrew Tridgell
480a4e3d90 r4833: added LOCAL-SOCKET to the list of tests that are expected to pass 2007-10-10 13:08:59 -05:00
Andrew Tridgell
c06b25c269 r4832: added simple testing of tcp sockets to LOCAL-SOCKET test 2007-10-10 13:08:59 -05:00
Andrew Tridgell
9f12a45a05 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
2007-10-10 13:08:59 -05:00
Andrew Tridgell
37a133c817 r4828: don't apply the schema until we get it working properly 2007-10-10 13:08:59 -05:00
Andrew Tridgell
e54a97f8a6 r4819: its just not my day today .... 2007-10-10 13:08:59 -05:00
Andrew Tridgell
0395380351 r4818: missed version.h here 2007-10-10 13:08:59 -05:00
Andrew Tridgell
520cff73c6 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.
2007-10-10 13:08:59 -05:00
Tim Potter
03c1dcb596 r4816: Note that NTTIME is 4-byte aligned which makes the comment about alignment
for NTTIME_hyper make a bit more sense.
2007-10-10 13:08:58 -05:00
Tim Potter
f2ce80e335 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.
2007-10-10 13:08:58 -05:00
Andrew Tridgell
1fc9448ccb r4814: cope with perl not being in /usr/bin for idl building 2007-10-10 13:08:58 -05:00
Andrew Tridgell
db7d43fbb9 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.
2007-10-10 13:08:58 -05:00
Andrew Tridgell
b9f32d2812 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.
2007-10-10 13:08:58 -05:00
Andrew Tridgell
058ae5527e r4811: now that the event context is at the socket level, the event cleanup
should be there too
2007-10-10 13:08:58 -05:00
Andrew Tridgell
7da0af98a0 r4810: fixed anonymous connections with smbclient. Thanks to jbm for pointing this out. 2007-10-10 13:08:58 -05:00
Stefan Metzmacher
d149063562 r4806: - add some data to the configuration naming context
- add some stuff to make w2k3 dc join to get the correct
  values

metze
2007-10-10 13:08:57 -05:00
Stefan Metzmacher
3381617a03 r4804: add more emuns and bitmaps
metze
2007-10-10 13:08:57 -05:00
Andrew Tridgell
b221c3dbb9 r4801: remove the two bogus ctype.h includes 2007-10-10 13:08:57 -05:00
Andrew Tridgell
4181b38fac r4800: proper fix for the _GNU_SOURCE problem with comparison_fn_t 2007-10-10 13:08:57 -05:00
Alexander Bokovoy
b4200a4623 r4799: comparison_fn_t is under __USE_GNU on GNU systems, therefore, we need _GNU_SOURCE defined in the test 2007-10-10 13:08:57 -05:00
Tim Potter
2c0e77869f 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).
2007-10-10 13:08:56 -05:00
Tim Potter
6fc162738f r4797: Add the name of what we are pointing to when dissecting pointers. 2007-10-10 13:08:56 -05:00
Tim Potter
2950dbd87c r4796: Get rid of unecessary #include 2007-10-10 13:08:56 -05:00
Andrew Tridgell
e16f67c931 r4795: stronget type checking in composite connect function 2007-10-10 13:08:56 -05:00
Andrew Tridgell
1ea59d1146 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.
2007-10-10 13:08:56 -05:00
Andrew Tridgell
ad1af519eb r4793: minor doc updates 2007-10-10 13:08:55 -05:00
Andrew Tridgell
4a963e3b7a r4792: use type safety int the test suite too 2007-10-10 13:08:55 -05:00
Andrew Tridgell
0e1da827b3 r4791: used the new talloc type safety macros to make the "void *private"
pointers in the composite code type safe.

This is a bit of an experiement, I'd be interested in comments on
whether we should use this more widely.
2007-10-10 13:08:55 -05:00
Andrew Tridgell
c283e1a3ef r4790: added type checking helper macros in talloc. These take advantage of
the type names that talloc already keeps around for pointers, and
allows the user to type check void* private pointers. It can also be
used to implement polymorphism in C, as I'm sure someone would have
pointed out to me sooner or later :-)
2007-10-10 13:08:55 -05:00
Jelmer Vernooij
128e97cef6 r4787: Clean up gepdump code somewhat. 2007-10-10 13:08:55 -05:00
Simo Sorce
e895fcf4a3 r4786: forgot to commit the exclusion for schema checking against our control entries 2007-10-10 13:08:55 -05:00
Simo Sorce
e2c1ee1dd8 r4785: add schema objects to provision
but let schema checking be disabled by default until we can pass all test with it enabled
2007-10-10 13:08:54 -05:00
Simo Sorce
42a20f6fa4 r4784: finally make schema module use a single ldb
add the new test-schema test
2007-10-10 13:08:54 -05:00
Andrew Tridgell
0240bf9281 r4783: got rid of another void* in the composite code. This brings us down to
the minimal level I think (one private pointer for the composite
function, and one private pointer for the caller)
2007-10-10 13:08:54 -05:00
Andrew Tridgell
5a89a5ed0f r4782: volker quite rightly pointed out that there is too much of a
proliferation of void* in the composite code. This removes two of the
void* pointers from the main composite structure.
2007-10-10 13:08:54 -05:00
Andrew Tridgell
6534ce650b r4781: the tolower() in schema.c is a premature optimisation. I suspect the
"distinguishedName" checking in that module is incorrect and should be
removed, but meanwhile, lets not make it slow down the compile of
every other module.
2007-10-10 13:08:54 -05:00
Jelmer Vernooij
e22bfa8ae2 r4780: tolower() requires ctype.h 2007-10-10 13:08:54 -05:00
Andrew Tridgell
b8c5269482 r4779: demonstrate doing 50 parallel loadfile operations, with a callback for completion 2007-10-10 13:08:54 -05:00
Andrew Tridgell
870af4e2f2 r4778: I forgot to set the session key for the spnego path. Fixed. 2007-10-10 13:08:53 -05:00
Andrew Tridgell
080d0518bc r4777: added a smb_composite_sesssetup() async composite function. This
encapsulates all the different session setup methods, including the
multi-pass spnego code.

I have hooked this into all the places that previously used the
RAW_SESSSETUP_GENERIC method, and have removed the old
RAW_SESSSETUP_GENERIC code from clisession.c and clitree.c. A nice
side effect is that these two modules are now very simple again, back
to being "raw" session setup handling, which was what was originally
intended.

I have also used this to replace the session setup code in the
smb_composite_connect() code, and used that to build a very simple
replacement for smbcli_tree_full_connection().

As a result, smbclient, smbtorture and all our other SMB connection
code now goes via these composite async functions. That should give
them a good workout!
2007-10-10 13:08:53 -05:00
Andrew Bartlett
70860779ae r4776: Add more debugs to SamSync test.
Andrew Bartlett
2007-10-10 13:08:53 -05:00