1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-06 16:23:49 +03:00
Commit Graph

540 Commits

Author SHA1 Message Date
Andrew Bartlett
a2a49d1be0 r5086: Fix list of binaries to install:
- nmblookup and net are generic, not torture programs.
 - Add ntlm_auth

Andrew Bartlett
2007-10-10 13:09:21 -05:00
Andrew Tridgell
a69c1a9130 r5085: add net and nmblookup to installed binaries
metze, can you look at automating this when you get time? We really
need a flag in config.mk for "BINARY::" sections for the install
location, something like:

[BINARY::nmblookup]
OBJ_FILES = \
		utils/nmblookup.o
INSTALL_IN = bin
2007-10-10 13:09:20 -05:00
Tim Potter
a1c98101e4 r5073: Call new autogenerator function for swig stuff instead of old one. 2007-10-10 13:09:20 -05:00
Tim Potter
c2996ad910 r5072: oDecrease the amount of autogenerated code (sorry tridge) and use swig's
structure mapping features instead of doing it all ourselves.

This basically works, but has broken all the existing checked in Python
code.

Sample:

pipe = dcerpc.pipe_connect(binding,
        dcerpc.DCERPC_SAMR_UUID, int(dcerpc.DCERPC_SAMR_VERSION),
        domain, username, password)

r = dcerpc.samr_Connect2()
r.data_in.system_name = 'foo'
r.data_in.access_mask = 0x02000000

result = dcerpc.dcerpc_samr_Connect2(pipe, r)
2007-10-10 13:09:19 -05:00
Andrew Tridgell
7bd4ced313 r5051: initialise all elements of an array (thanks to Mike Allan for pointing
this out)
2007-10-10 13:09:18 -05:00
Tim Potter
f9e56d39c9 r5047: Fix swig dependencies. 2007-10-10 13:09:17 -05:00
Stefan Metzmacher
030bfd8d7f r5044: fix pidl--swig
metze
2007-10-10 13:09:17 -05:00
Andrew Tridgell
1333522a6b r5043: this broke more systems than it helped. Remove it and try to work
around broken solaris headers some other way.
2007-10-10 13:09:17 -05:00
Andrew Tridgell
11277ddb4c r5042: another attempt to get solaris10 building 2007-10-10 13:09:16 -05:00
Andrew Tridgell
d9c1bf1060 r5040: attempt to get solaris10 building by defining _XOPEN_SOURCE 2007-10-10 13:09:16 -05:00
Andrew Tridgell
dd67a5d833 r5039: fixed eparser not to generate talloc_p() 2007-10-10 13:09:16 -05:00
Andrew Tridgell
1d1a9c11ee r5036: changed HYPER_T to the more standard "hyper" 2007-10-10 13:09:15 -05:00
Andrew Tridgell
f86521677d r5034: - added a type mapping function in pidl, so the type names in our IDL
files don't need to match the type names in the generated headers

- with this type mapping we no longer need definitions for the
  deprecated "int32", "uint8" etc form of types. We can now force
  everyone to use the standard types int32_t, uint8_t etc.

- fixed all the code that used the deprecated types

- converted the IDL types "int64" and "uint64" to "dlong" and
  "udlong". These are the 4 byte aligned 64 bit integers that
  Microsoft internally define as two 32 bit integers in a
  structure. After discussions with Ronnie Sahlberg we decided that
  calling these "int64" was confusing, as it implied a true 8 byte
  aligned type

- fixed all the cases where we incorrectly used things like
  "NTTIME_hyper" in our C code. The generated API now uses a NTTIME for
  those. The fact that it is hyper-aligned on the wire is not relevant
  to the API, and should remain just a IDL property
2007-10-10 13:09:15 -05:00
Tim Potter
5ec9fad5cf r5033: Remove --with-eparserdir configure option and eparser_idl make target.
This is all done in the lorikeet/ethereal Makefile now.
2007-10-10 13:09:14 -05:00
Andrew Tridgell
dc8c7cb85c r5032: get rid of the init fns in eparser 2007-10-10 13:09:14 -05:00
Tim Potter
425b988541 r5024: Fix build. 2007-10-10 13:09:14 -05:00
Tim Potter
c252a286ef r5019: Some tweaks to building the swig .i files. 2007-10-10 13:09:14 -05:00
Tim Potter
e9b69d19a8 r5016: Use LIBRARY instead of BINARY for inserting the swig stuff into the
build system.  This still generates bogus targets (i.e
bin/swig_dcerpc.so.0.0.1) and the subsystem initialisation needs to be
done by hand but it is less of a hack.
2007-10-10 13:09:13 -05:00
Tim Potter
a38db33713 r5010: Handle weird-ass NTTIME_1sec and NTTIME_hyper types. 2007-10-10 13:09:13 -05:00
Tim Potter
8ca1e3aa3b r5009: Put bitmaps in their own subtree. 2007-10-10 13:09:13 -05:00
Tim Potter
493ba2da6b r5008: 32-bits is the default bitmap size. 2007-10-10 13:09:13 -05:00
Tim Potter
e983de6ead r5007: Fix bug in regexp where we were eating the strings "in" or "out" from
structure names if they started with those strings.
2007-10-10 13:09:13 -05:00
Tim Potter
a34212247b r5006: Implement parsing of pidl bitmaps in ethereal parsers. This works
well but needs to be stuck in a subtree.
2007-10-10 13:09:13 -05:00
Tim Potter
6f418f1426 r4993: Generate nicer name for enum hf.
Start work on supporting bitmaps.
2007-10-10 13:09:12 -05:00
Tim Potter
4640d3371e r4991: Remove debugging statement. 2007-10-10 13:09:12 -05:00
Tim Potter
edaf81b639 r4990: Generate value strings for pidl enumerations. 2007-10-10 13:09:12 -05:00
Tim Potter
c2664bb365 r4983: On second thoughts don't include the config.mk file for the swig stuff
just yet.  More testing required.
2007-10-10 13:09:12 -05:00
Tim Potter
71a22f5206 r4982: Start to move swig dependencies into new build system. Unfortunately
I can only get something useful happening by using the BINARY keyword
as nothing else seems to generate dependency lists that can be used
when linking the swig shared libraries.  Anyway this is a lot nicer
than having lots of junk in makefile.pm.
2007-10-10 13:09:11 -05:00
Tim Potter
d4f7f6b0b4 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.
2007-10-10 13:09:07 -05:00
Tim Potter
362151788b r4930: Update my copyright. 2007-10-10 13:09:06 -05:00
Andrew Tridgell
f65f239978 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
2007-10-10 13:09:01 -05:00
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
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
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
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
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
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
Tim Potter
fd14622d13 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.
2007-10-10 13:08:53 -05:00
Tim Potter
b2a3b02216 r4771: Fix some indentation. 2007-10-10 13:08:52 -05:00
Tim Potter
75b6df15f2 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.
2007-10-10 13:08:52 -05:00