1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

5993 Commits

Author SHA1 Message Date
Andrew Tridgell
66c3640366 r9341: updated the winreg test program to take advantage of the new EnumValue
functionality. It now completely enumerates a winreg tree.

This would make a good basis for a js version of regshell if someone
felt like taking that on.
(This used to be commit 75d0cf78ec8c01dee2a6475d4c64417349d9ec3a)
2007-10-10 13:33:26 -05:00
Andrew Tridgell
bc6d35135d r9340: print the [in] contents when debugging even if the marshalling
failed. This makes it easier to track down marshalling bugs.
(This used to be commit a7a1752ca47a18b325a0ad0984cf7d02da1e2afe)
2007-10-10 13:33:25 -05:00
Andrew Tridgell
ba6d3075bc r9339: treat arrays of uint8 values as a special DATA_BLOB type in the ejs
interfaces to RPC. This makes large blobs of data much saner. Tim, you
will probably want to do the same for the smb_interfaces.h generated
code.

Next we will need ways of extracting different data types from these
blobs, for example asking for the blob to be interpreted as a utf16
string, or as a little-endian integer. That will allow for registry
scripting to be quite sane.
(This used to be commit a8bca2e8e27c953c0413693326ec3b5ecf17ba41)
2007-10-10 13:33:25 -05:00
Andrew Tridgell
9fffd12799 r9338: fixed the winreg IDL to be correct for the EnumKey and EnumValue
calls. The previous IDL was just a workaround for the limitations of
our older rpc infrastructure. Now that Jelmer has added much improved
string support using the charset keyword we can correctly implemenent
the unusual winreg string buffers.

Jelmer, note the little comment I put on winreg_StringBuf() about why
I couldn't use [value()] for the length field.

This also fixes EnumKey() and EnumValue() to use NTTIME fields for the
last_changed_time. I don't know why we were using a pair of uint32's,
as it is just a NTTIME.
(This used to be commit 8354b016122cc4f3cff042b3ada1de07e1614eb7)
2007-10-10 13:33:25 -05:00
Andrew Tridgell
c463b98c58 r9337: defer the checking of array sizes until the end of the
function/structure, as the checks might involve variables that have
not yet been unmarshalled. This is needed to cope with the correct IDL
for the winreg pipe.

Jelmer, can you look at this when you get a chance and see if you
think this is a reasonable approach? Sorry its wrecks the nice
indentation in the generated code.
(This used to be commit 127ed0cfe2d210f5e927d3768d5372042d1c070c)
2007-10-10 13:33:25 -05:00
Andrew Tridgell
290b0b5b19 r9335: only copy the in side of an array to the out side of an array when the
array is a [ref] pointer. For non-ref arrays it is quite valid for a
server to return a larger response array then the client gave (as can
happen with winreg) in which case this memcpy() will fault.
(This used to be commit 6cf20e7adb9891119fdc9a0b208c3f94fe823334)
2007-10-10 13:33:25 -05:00
Deryck Hodge
3029657053 r9328: Remove background:ThreeDFace from qooxdoo styles to
get our samba.org background bacl.

deryck
(This used to be commit 71291f0d566eaa493a5687a6bce7c5ec9373a7de)
2007-10-10 13:33:24 -05:00
Deryck Hodge
a9c00a7a72 r9327: Rename parent to fParent to prevent confusion with window.parent object.
(Thanks, Derrell, for the reminder.)
Rename child to fChild, to be consistent and maintain readability.

deryck
(This used to be commit 6040f9401eedb195aef160b3b58462a1a6728af7)
2007-10-10 13:33:24 -05:00
Alexander Bokovoy
1e59a8a24f r9321: Fix potential bug found by Coverity. src_len has to be int but later we do pass it as size_t. In case src_len is negative, we need to register a failure and return to the caller
(This used to be commit 95d96c79a538814bb524d7905e1e8f64df6341ca)
2007-10-10 13:33:24 -05:00
Alexander Bokovoy
ad9022e304 r9320: Fix premature dereference bug found by Coverty and also get rid of non-used memory context
(This used to be commit 127e06492a545940443c93e9aec66eebefa26dc2)
2007-10-10 13:33:24 -05:00
Andrew Tridgell
2f195406b6 r9319: updated newuser script for new OO style for nss object
thanks to Hotarut for spotting this
(This used to be commit 3f30c6118ba22fbf52068630f48bcde82182b8a6)
2007-10-10 13:33:24 -05:00
Stefan Metzmacher
8609e79932 r9318: fix searches with scope ONE and SUB,
the problem was that ldb_dn_compare_base() just looked at if
both dn's mtach some how, and the following happens:

basedn: CN=bar,DC=foo,DC=com
dn: DC=foo,DC=com

and dn: DC=foo,DC=com was return as result of a sub and base search

and also the ONE search with
basedn: DC=foo,DC=com

returned this

dn: CN=bla,CN=bar,DC=foo,DC=com

metze
(This used to be commit 2a107472c373e425013050e28b944c830f653a87)
2007-10-10 13:33:23 -05:00
Steve French
56aadf82af r9311: Missing null pointer check in ejsLib
Found by coverity
(This used to be commit ae7b073af3d690275dbfa11c8406963702c57d3b)
2007-10-10 13:33:23 -05:00
Steve French
f9c7357d74 r9310: Add two missing return statements after null pointer checks to fix potential oops in kdc code.
Found by coverity.
(This used to be commit 3b707b928969c87ac7e9948a567a3ebbc754f28c)
2007-10-10 13:33:23 -05:00
Steve French
4ed7904b7e r9309: Incorrect null pointer check in return from talloc.
Found by coverity.
(This used to be commit bafd3afbef9b8d3a8baa55d4b31cc62bfeeed459)
2007-10-10 13:33:23 -05:00
Andrew Bartlett
65ec408473 r9305: Use the check-var.m4 from roken to really, really detect h_errno correctly.
This fixes the build on Fedora Core 4.

Andrew Bartlett
(This used to be commit aa36b2adad0d66b8171aa3ccca3057298361bec5)
2007-10-10 13:33:23 -05:00
Andrew Tridgell
d452cd061c r9300: cope with zero length in ndr_pull_charset()
(This used to be commit 1ae255aba44f4444486ae5bc634c8ab1a6328c87)
2007-10-10 13:33:22 -05:00
Andrew Tridgell
1774019fc2 r9299: fixed the evaluation of pointer expressions that evaluate to boolean
(This used to be commit 17679676d4629ac81116ae1b102f1a311b5d4eed)
2007-10-10 13:33:22 -05:00
Andrew Tridgell
e5de09860c r9298: pull non-array elements before array elements to overcome the problem
of arrays that have length_is() or size_is() properties that refer to
later elements
(This used to be commit 9526f2a5104b50f4b6ab575cfa6270abb0377e51)
2007-10-10 13:33:22 -05:00
Tim Potter
c04b6ada5f r9297: Add a NDR_CHECK() around each ejs push/pull.
Some experimentation with the top level function calls.
(This used to be commit e8d53d15e4371bc266a691c3c3c82675373ba7f4)
2007-10-10 13:33:22 -05:00
Tim Potter
ca1b2eae77 r9296: Reinstate generation of push/pull functions for each field in a struct
or union.
(This used to be commit 72420f24e654661c8792bd7d0eae610ad182d529)
2007-10-10 13:33:22 -05:00
Tim Potter
c1f165d6e9 r9295: Tridge had some good suggestions for simplifying the smb_interfaces ejs
code.  I will try and get just the push/pull functions working rather than
getting in a mess with trying to do everything at once.
(This used to be commit a7504ebf9557796bd50907620115f8367ea586f0)
2007-10-10 13:33:21 -05:00
Tim Potter
a1ca088901 r9292: More compiles fixes for autogenerated smb_interfaces ejs wrappers.
Add some code to try and work out whether a smb_interface requires a
TALLOC_CTX in the function signature.  I'm not sure whether this is
going to work as the raw api is a bit inconsistent I think.
(This used to be commit 13a101653ea7bba3b8b1f74637d981eb004484cc)
2007-10-10 13:33:21 -05:00
Tim Potter
76787d5da4 r9291: Add a stub for smb_raw_lpq() which is in smb_interfaces.h but doesn't
seem to be used anywhere yet.
(This used to be commit 9e5ce3a28892241e2b080c0fa187ee99042c2330)
2007-10-10 13:33:21 -05:00
Tim Potter
7c8c36ea15 r9284: Whitespace. (-:
(This used to be commit 6a7922a02c19b5ea2b77011ff593c6d535d0b212)
2007-10-10 13:33:21 -05:00
Tim Potter
351e2099ca r9279: In Samba3 debuglevel 10 used to print RPC debugs. I think this should
apply to Samba4 as well so change the DEBUGLEVEL > 10 to DEBUGLEVEL >= 10.
(This used to be commit 2215cc08b7b94df3fff9cfff6c839bbf2cb6e664)
2007-10-10 13:33:21 -05:00
Stefan Metzmacher
efd0d2a0da r9260: only overwrite destination files when the temp files was created correct
metze
(This used to be commit b5626c978fe3349f0972e1aeea51b05e66c6ce33)
2007-10-10 13:33:20 -05:00
Stefan Metzmacher
597e4234d0 r9258: return is only supported in function, not in plain shell scripts
metze
(This used to be commit 3b99c3685734e398ab007e93dd7f468027c1847f)
2007-10-10 13:31:38 -05:00
Stefan Metzmacher
0648a67824 r9257: - I assume we don't need unistd.h in this file,
that sould fixes the build on aix
- use "" instead of <> for includes in our tree

metze
(This used to be commit 8c8fd4cfc6bbad9e8ec2ae9998a6cf4bd90b4bc6)
2007-10-10 13:31:38 -05:00
Stefan Metzmacher
3be75a4c6d r9240: - move struct security_token to the idl file, with this we can
the ndr_pull/push/print functions for it in the ntacl-lsm module

- fix compiler warnings in the ldap_encode_ndr_* code

metze
(This used to be commit 83d65d0d7ed9c240ad44aa2c881c1f07212bfda4)
2007-10-10 13:31:37 -05:00
Tim Potter
32e76af21a r9239: I think this is the right IDL for the eventlog record. Pidl is
generating incorrect code for arrays of strings here.
(This used to be commit 3b2476e0a00dbd3b552ccde736147e93655732f1)
2007-10-10 13:31:37 -05:00
Tim Potter
c08578c0cb r9238: Some test code to do user-unmarshalling of eventlog_Record data.
(This used to be commit d0225f10797eaeeb6d10cf753578703e144ee8dd)
2007-10-10 13:31:36 -05:00
Tim Potter
d607b4473f r9237: Fix eventlog_Record typedef so it decodes records source and computer
names.  Need to get working with SIDs and extra data.
(This used to be commit 2543f78df61b76295acf6fe4837adefbe08ca5c4)
2007-10-10 13:31:35 -05:00
Andrew Bartlett
da33c531b6 r9235: Remove attribute search we no longer reference.
Andrew Bartlett
(This used to be commit cf8bf1e9f3d771fb3ea14949cd6963c3e9ac6c2d)
2007-10-10 13:31:35 -05:00
Andrew Bartlett
25b94718f1 r9234: Ensure we always change the end of the PAC, no matter what it is. Fix
typo in comment.

Andrew Bartlett
(This used to be commit c96f8594b16c6a5310e2e8727bb6975f2a193231)
2007-10-10 13:31:35 -05:00
Andrew Bartlett
457d7fd672 r9233: Ensure that the output variable is initialised in this conversion from
error to non-error case.

Andrew Bartlett
(This used to be commit ab75cd53e7c65fa6242b8dde3bfede735a6b36d5)
2007-10-10 13:31:35 -05:00
Deryck Hodge
f870014fc3 r9232: Rename some objects to make code clear.
deryck
(This used to be commit 8a3445499e3f913693196aa1d1b5bbeec5469cf2)
2007-10-10 13:31:34 -05:00
Deryck Hodge
55024676c7 r9230: Star out passwords and add confim text input for provisioning.
Also, add addMethod() to form elements now.

deryck
(This used to be commit 79f276df47ebc93e1505c7411fb1acd4b004047c)
2007-10-10 13:31:34 -05:00
Andrew Tridgell
d3751c4525 r9228: cleanup and simplify the AJAJ code - part 2
(This used to be commit bb3ab2c47b098ed57af358c4f5c6ad4d4d26eb33)
2007-10-10 13:31:34 -05:00
Andrew Tridgell
8942ac69f0 r9227: cleanup and simplify the AJAJ code
(This used to be commit ceb7669e5991e9dda759d60a09a0a65e6caba991)
2007-10-10 13:31:34 -05:00
Andrew Tridgell
922f28fcbd r9226: make sure we catch rpc faults in the ejs rpc wrappers
(This used to be commit 3ec376141e64f0a504f04b470cb5df78c2e0f5c2)
2007-10-10 13:31:34 -05:00
Tim Potter
172cee9adc r9223: Rename smb_raw_session_setup() to smb_raw_sesssetup().
(This used to be commit 5e6d330e7388e47e1b2bfc96fff07682e90f63a5)
2007-10-10 13:31:33 -05:00
Tim Potter
2fa50ab671 r9222: Rename smb_tree_connect() to smb_raw_tcon() to match other raw function
names.
(This used to be commit 26b191b3c9529b2dae5d004819dab46657064408)
2007-10-10 13:31:33 -05:00
Andrew Bartlett
c0e8144c5d r9221: Try to merge Heimdal across from lorikeet-heimdal to samba4.
This is my first attempt at this, so there may be a few rough edges.

Andrew Bartlett
(This used to be commit 9a1d2f2fec67930975da856a2d365345cec46216)
2007-10-10 13:31:33 -05:00
Tim Potter
4b93e377cd r9220: Start trying to get autogenerated code to compile.
- Split out push/pull of top level elements into separate functions.

 - Remove _t from simple type names.
(This used to be commit c419eef1c93afb51cf2fb42f87c0e5d29d2348ea)
2007-10-10 13:31:32 -05:00
Andrew Tridgell
78750230a2 r9219: by default be a DC, as the provisioning scripts assume that in other parts
(This used to be commit f8949869bc114590c9260ab7b9d97f71a552a6a7)
2007-10-10 13:31:32 -05:00
Andrew Tridgell
924b3cc953 r9218: make the winreg library code handle arbitrary paths more efficiently
and more conveniently (caller doesn't need to know the hive names now)
(This used to be commit dadd7e22fb439f7b18c429a95c75902e4741ba8d)
2007-10-10 13:31:32 -05:00
Andrew Bartlett
eda59a6ca0 r9217: Add 'make clean' hooks to the ans1 depedency generator.
To be used by the impending Heimdal resync, which has files starting
with asn1_ that are not generated.

Andrew Bartlett
(This used to be commit 15b7af1c39a8369fb701f60485c7ac2040f1c27a)
2007-10-10 13:31:32 -05:00
Andrew Tridgell
32015e5cdc r9213: some improvements to the registry editor code
(This used to be commit 5cd33fa9f898f95a78397a387a42977a4839fb20)
2007-10-10 13:31:32 -05:00
Andrew Tridgell
c8dfaec28a r9212: the beginnings of a registry editor in SWAT, using client side javascript and AJAJ
This doesn't work at all well yet, mostly because of my inexperience
with client side javascript and what events are available
(This used to be commit 8073e84c7a5fd8d483685d769661c790a803ff49)
2007-10-10 13:31:31 -05:00