1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

3615 Commits

Author SHA1 Message Date
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
Andrew Tridgell
48e07444e8 r4792: use type safety int the test suite too
(This used to be commit 4a963e3b7aa38f0f6907bcd8acaaeb8c7982cafa)
2007-10-10 13:08:55 -05:00
Andrew Tridgell
4a03172e66 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.
(This used to be commit 0e1da827b380998355f75f4ef4f424802059c278)
2007-10-10 13:08:55 -05:00
Andrew Tridgell
7b79694ead 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 :-)
(This used to be commit c283e1a3efac3a92e29a35856e20eb61ef4c221e)
2007-10-10 13:08:55 -05:00
Jelmer Vernooij
0a5fd5421c r4787: Clean up gepdump code somewhat.
(This used to be commit 128e97cef614bc62ff3327aa15cd5eb636e67a58)
2007-10-10 13:08:55 -05:00
Simo Sorce
9f3d734308 r4786: forgot to commit the exclusion for schema checking against our control entries
(This used to be commit e895fcf4a33aeaf228d8b4b367c4e768506275bb)
2007-10-10 13:08:55 -05:00
Simo Sorce
8a153e5ca2 r4785: add schema objects to provision
but let schema checking be disabled by default until we can pass all test with it enabled
(This used to be commit e2c1ee1dd896c978e9be72fcbe4abce42482b7c9)
2007-10-10 13:08:54 -05:00
Simo Sorce
63f79d11b8 r4784: finally make schema module use a single ldb
add the new test-schema test
(This used to be commit 42a20f6fa4073fc5ea1ca6254137a4ef53caee01)
2007-10-10 13:08:54 -05:00
Andrew Tridgell
a38df2d251 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)
(This used to be commit 0240bf928163e32e7c69be88fe3ed4987dd18778)
2007-10-10 13:08:54 -05:00
Andrew Tridgell
99d30a901f 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.
(This used to be commit 5a89a5ed0fa022fb380bf72065904633270f34aa)
2007-10-10 13:08:54 -05:00
Andrew Tridgell
5dbebbe2ad 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.
(This used to be commit 6534ce650bef7405e0926c9b75b185943429ed18)
2007-10-10 13:08:54 -05:00
Jelmer Vernooij
7b0f375a86 r4780: tolower() requires ctype.h
(This used to be commit e22bfa8ae295db009158292b87fe389afa13717e)
2007-10-10 13:08:54 -05:00
Andrew Tridgell
79f32d794a r4779: demonstrate doing 50 parallel loadfile operations, with a callback for completion
(This used to be commit b8c5269482cd7c2611d785bb8831eebae2f905d2)
2007-10-10 13:08:54 -05:00
Andrew Tridgell
ab0fa0ba90 r4778: I forgot to set the session key for the spnego path. Fixed.
(This used to be commit 870af4e2f2055013424d9dbe2df2c51faa810eec)
2007-10-10 13:08:53 -05:00
Andrew Tridgell
7cbc768376 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!
(This used to be commit 080d0518bc7d6fd4bc3ef783e7d4d2e3275d0799)
2007-10-10 13:08:53 -05:00
Andrew Bartlett
6eabc2a711 r4776: Add more debugs to SamSync test.
Andrew Bartlett
(This used to be commit 70860779ae4d6be6d592e3635b091f0a5f29df6a)
2007-10-10 13:08:53 -05:00
Simo Sorce
1e233e9053 r4775: use schema_attr_cmp wrapper to check for the special dn/distinguishedName case alias
(This used to be commit 18cd6cb67404830b8a5d28fa4106dadb275a5222)
2007-10-10 13:08:53 -05:00
Andrew Bartlett
2e33042aa7 r4774: It appears the SensitiveData contains the password history, as the
remaining data.  Pity - I was looking for kerberos keys :-)

Andrew Bartlett
(This used to be commit 37a81aad74b9f7e982469cd36e56e6f9608b9123)
2007-10-10 13:08:53 -05:00
Tim Potter
2b6aeecad7 r4773: Handle arrays of scalar types as function arguments.
Add hf for function return value.

Rename struct field members to be named after the structure name
and element name rather than element name and element type.

Remember which structure or function we are processing and use it
to generate hf fields according to the naming scheme above.
(This used to be commit fd14622d132c3f2dfd837ea7beccd0fc11a6bf3e)
2007-10-10 13:08:53 -05:00
Andrew Tridgell
2a04cf9221 r4772: fixed checking of the conformant size for dom_sid2
(This used to be commit 0d31523aaed7a8995970dc9933a6a9d9b8536ee0)
2007-10-10 13:08:53 -05:00
Tim Potter
f525d07202 r4771: Fix some indentation.
(This used to be commit b2a3b0221680fb54b058631846559e6151a7b562)
2007-10-10 13:08:52 -05:00
Tim Potter
0d9fa3f46c r4770: Change from processing ndr_*.[ch] files all at once to line-by-line.
I'm hoping this will allow better mapping hf fields to the structures
they are present in which isn't possible at the moment.  (Line mode
allows us to use /foo/ .. /bar/ regexps and to store state during the
processing.
(This used to be commit 75b6df15f2edfac99fbcd7cefb7b404591a1ecb6)
2007-10-10 13:08:52 -05:00
Andrew Tridgell
1e776edfc5 r4769: added a smb_composite_connect() function that provides a simple async
interface to a complete SMB connection setup. Internally it does:

  - socket connection
  - session request (if needed)
  - negprot
  - session setup
  - tcon

This is the first example of a composite function that builds on other
composite components (the socket connection is a composite function,
which is used as a building block for this function). I think this
will be quite common in composite functions in the future, building up
ever more complex composite functions from smaller building blocks,
while hiding the details from the caller.

There are two things missing from this now. The first is async name
resolution routines (wins, bcast, DNS etc), and the second is that
this code currently only does a NT1 style session setup. I'll work on
adding spnego and old style session setup support next.
(This used to be commit 6bc9e17f5c5236f662c7c8f308d03e6d97379b23)
2007-10-10 13:08:52 -05:00
Andrew Bartlett
4da8abcf0d r4768: Until I can prove it, we should not have these elements marked as
size_is() base arrays.

Andrew Bartlett
(This used to be commit 3d3063b1f65efe3b9eb814f7425afa3278095a68)
2007-10-10 13:08:52 -05:00
Andrew Tridgell
eec22cfe2f r4767: handle the different NBT session request refusals, and map them to
reasonable NT_STATUS values
(This used to be commit b193a9cb0c851a4ec55ad9956a815be93eea35e4)
2007-10-10 13:08:52 -05:00
Andrew Bartlett
1be1d8046d r4766: Add another useful helper function: samdb_msg_set_value()
Andrew Bartlett
(This used to be commit a43f7392f791081f227a0e05aeed894885f33232)
2007-10-10 13:08:51 -05:00
Andrew Tridgell
8ea26bf2fd r4765: simplify the async socket code to always go via the event handler
rather than short-circuiting in the unlikely event the OS returns an
immediate success on a non-blocking connect
(This used to be commit db4380717041485e216f965103f9e803518b45c3)
2007-10-10 13:08:51 -05:00
Andrew Bartlett
b5d73bb5c5 r4764: Add some more structs to keep the proto.h compile happy.
Andrew Bartlett
(This used to be commit e5e4dd0d3499e0c63cddd5669cf2875cee7d4e3f)
2007-10-10 13:08:51 -05:00
Andrew Bartlett
dae67d2f0b r4763: Join Samba4 to itself during the provision process.
Andrew Bartlett
(This used to be commit feca96fe5a1612592757f53f7aa4eb5a39fd24ff)
2007-10-10 13:08:51 -05:00