Andreas Schneider
45fc728498
libcli: Fixed a build warning for a missing prototype.
2010-06-30 10:26:59 +02:00
Matthias Dieter Wallnöfer
bf844aed5b
s4:auth/session.c - suppress a warning when freeing "group_string"
2010-06-30 09:38:12 +02:00
Anatoliy Atanasov
6abfe8904a
s4:schema/schema_set.c - free LDB message diffs
...
Especially the "free"s after "ldb_msg_diff" are very important since the diff
message is allocated on the long-living LDB context.
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2010-06-30 09:17:44 +02:00
Anatoliy Atanasov
2821abee1f
s4:auth/session.c - free "group_string" when not needed
...
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2010-06-30 09:17:06 +02:00
Andrew Bartlett
32b8b401d6
s4:dsdb Fix possible schema segfaults for DRS-replication based schema
...
The problem here is that if the schema has been modified on the source
domain, there may be attributes that appear over DRS with 0 values (to
indicate that any existing values on the target should be deleted).
This would confuse the previous version of this macro.
Andrew Bartlett
2010-06-30 10:22:59 +10:00
Günther Deschner
73fbc9c179
s4-smbtorture: remove duplicate torture_assert_sid_equal macro.
...
Guenther
2010-06-29 23:35:45 +02:00
Günther Deschner
cc8d6d99df
s4-smbtorture: fix incorrect IDL for QueryMultipleValue (aka RVALENT).
...
Found by torture test.
Guenther
2010-06-29 23:10:47 +02:00
Günther Deschner
1fb8e192ca
s4-smbtorture: add more sophisticated tests for winreg_QueryMultipleValues{2}.
...
Guenther
2010-06-29 23:10:16 +02:00
Matthias Dieter Wallnöfer
f6f21202eb
s4:ntvfs/ipc/vfs_ipc.c - remove unused code
...
Spotted by the Solaris 10 compiler
2010-06-29 22:36:03 +02:00
Matthias Dieter Wallnöfer
146dad103b
s4:ntvfs/ipc/vfs_ipc.c - add casts to suppress warnings on Solaris 10
2010-06-29 22:35:20 +02:00
Matthias Dieter Wallnöfer
645c3d200c
s4:ntp_signd/ntp_signd.c - add casts to suppress warnings on Solaris 10
2010-06-29 22:33:32 +02:00
Matthias Dieter Wallnöfer
95127b3f5f
s4:rpc_server/browser.c - remove unused code
...
Spotted by the Solaris 10 compiler
2010-06-29 22:32:05 +02:00
Matthias Dieter Wallnöfer
06bafb7596
s4:smb_server/smb2/find.c - remove unused code
...
Spotted by the Solaris 10 compiler
2010-06-29 22:31:00 +02:00
Matthias Dieter Wallnöfer
00f189f78c
s4:smb_server/blob.c - remove unused code
...
Spotted by the Solaris 10 compiler
2010-06-29 22:30:05 +02:00
Matthias Dieter Wallnöfer
4f029f6f1b
s4:dsdb/new_partition.c - remove the "ldb_next_request" call which we find also below the "if" block
2010-06-29 22:23:15 +02:00
Matthias Dieter Wallnöfer
17a5c876a6
ldb:ldb_map_outbound.c - "ldb_parse_tree_collect_attrs" - remove unneeded return value
2010-06-29 22:21:22 +02:00
Matthias Dieter Wallnöfer
8e9d7e84f6
ldb:ldb_modules.c - "ldb_dso_load_symbol" - remove unneeded caste before "dlsym"
2010-06-29 22:16:15 +02:00
Matthias Dieter Wallnöfer
657045ca9a
s4:ldb - "ldb_dn_update_components" - fix free of invalid DN parts
...
Use "LDB_FREE" for such free operations and in addition wipe also the casefolded
DN out.
2010-06-29 22:13:05 +02:00
Matthias Dieter Wallnöfer
f1e92c91b2
ldb:ldb_dn.c - "ldb_dn_set_extended_component" - free the linearized string when the components change
2010-06-29 22:07:51 +02:00
Matthias Dieter Wallnöfer
0f0d9aa9b5
s4:ldb_dn.c - make the code parts which free extended components consistent
...
Cosmetic
2010-06-29 22:07:01 +02:00
Matthias Dieter Wallnöfer
1e04f49ddb
ldb:ldb_dn - "ldb_dn_explode" - move the "dn->comp_num" initalisation upwards and use "LDB_FREE" for freeing "dn->components"
...
Mostly cosmetic - no behaviour change
2010-06-29 21:59:37 +02:00
Günther Deschner
be7bff5eb5
s4-smbtorture: remove some pointless mem_equal tests in LOCAL-NDR-WINREG testsuite.
...
Guenther
2010-06-29 19:57:06 +02:00
Günther Deschner
92f3e143b7
s4-smbtorture: handle NT_STATUS_NOT_IMPLEMENTED in GetForestTrustInformation test.
...
When skipping over it, we can at least verify the credential chain.
Guenther
2010-06-29 17:19:28 +02:00
Günther Deschner
5bc77c8778
s4-smbtorture: use TEST_MACHINE_NAME in test_netr_GetForestTrustInformation().
...
Guenther
2010-06-29 17:16:25 +02:00
Günther Deschner
b31ff0537a
s4-smbtorture: add netr_GetForestTrustInformation test to RPC-NETLOGON.
...
Guenther
2010-06-29 17:13:01 +02:00
Günther Deschner
62e2d4a504
s3-utils: remove rpccheck.
...
Impossible to get this to compile after the conversion to pidl.
Guenther
2010-06-29 16:14:46 +02:00
Matthias Dieter Wallnöfer
0e21b4ffa0
Revert "s4/dsdb: Fixed partition_search() not to pass special DN's to LDAP backend."
...
This reverts commit ed4c107bc1
.
See post "Endi's Bug 7530 patches (LDAP backend)" on samba-technical.
2010-06-29 15:14:32 +02:00
Matthias Dieter Wallnöfer
2198831e6b
Revert "s4/auth: Fixed authsam_expand_nested_groups() to find entry SID if not available in the DN."
...
This reverts commit fa9557fee3
.
See post "Endi's Bug 7530 patches (LDAP backend)" on samba-technical.
2010-06-29 15:14:01 +02:00
Günther Deschner
1662e383dd
s4-smbtorture: add NDR torture test for winreg_QueryMultipleValues2.
...
Guenther
2010-06-29 12:27:08 +02:00
Günther Deschner
7ae7750c40
s4-smbtorture: add RPC torture test for winreg_QueryMultipleValues2.
...
Guenther
2010-06-29 12:27:02 +02:00
Günther Deschner
c02cbaae34
winreg: fix winreg_QueryMultipleValues2 IDL.
...
Guenther
2010-06-29 12:26:57 +02:00
Günther Deschner
bf07bf2857
winreg: fix winreg_QueryMultipleValues() IDL and torture tests.
...
Guenther
2010-06-29 11:48:53 +02:00
Andreas Schneider
ee01fe8c5b
s3-client: Make sure we only write to an opened file.
...
Found by clang-analyzer.
2010-06-29 11:12:12 +02:00
Andreas Schneider
f324036e76
s3-winbind: Make sure we crash if domain is really not found.
...
Found by clang-analyzer.
2010-06-29 11:12:12 +02:00
Andreas Schneider
eb7bf9d730
s3-net: Make sure we don't call free on garbage.
...
Found by clang-analyzer.
2010-06-29 11:12:12 +02:00
Andreas Schneider
1db7356fa1
s3-net: Use talloc_asprintf and return if file is in wrong format.
...
Found by clang-analyzer.
2010-06-29 11:12:12 +02:00
Andreas Schneider
e52f3d8637
s3-librpc: Fixed GUID_from_data_blob() with length of 32.
...
If we hit the case that the blob length is 32. The code goes to the end
of the function and generates a GUID with garbage.
So try to convert the blob to the GUID and return.
2010-06-29 11:12:12 +02:00
Nadezhda Ivanova
845e7a609d
Fixed incorrect use of cn instead of lDAPDisplayName
2010-06-29 11:46:22 +03:00
Andrew Bartlett
cc7c572b3d
s4:secrets Ensure secrets.ldb uses the same hooks as the rest of Samba
...
This ensures that, for example, the utf8 functions are the same,
the GUID handler is the same and the NOSYNC flag is applied.
Andrew Bartlett
2010-06-29 16:59:31 +10:00
Andrew Bartlett
48c8896f2e
s4:selftest Split out PKINIT tests from test_kinit.sh and test enc types
...
This allows us to run the PKINIT tests only against the main DC (for
which the certificates were generated), while testing the available
encryption types in each functional level.
In particular, we need to assert that AES encryption is available in
the 2008 functional level.
Andrew Bartlett
2010-06-29 16:59:31 +10:00
Andrew Bartlett
d76e4852eb
s4:kdc Rework the 'allowed enc types' calculation
...
This changes the calculation to apply the allowed enc types to all
uses of the key (no point allowing a weak kinit to a key the server
wanted strongly protected). It also ensures that all the non-DES keys
are available on the krbtgt in particular, even as it does not have a
msds-SupportedEncryptionTypes attributes.
Andrew Bartlett
2010-06-29 16:59:30 +10:00
Andrew Bartlett
f41e711097
s4:auth Query LDB for msds-SupportedEncryptionTypes for the KDC
...
The KDC needs this to determine what encryption types an entry supports
Andrew Bartlett
2010-06-29 16:59:30 +10:00
Andrew Bartlett
5167b97ff2
s4:kerberos Add functions to convert msDS-SupportedEncryptionTypes
...
This will allow us to interpret this attibute broadly in Samba.
Andrew Bartlett
2010-06-29 16:59:30 +10:00
Andrew Bartlett
9fc3f8194d
s4:libnet_join Fix typo in msDS-SupportedEncryptionTypes
2010-06-29 16:59:30 +10:00
Andrew Bartlett
94637e5fe4
s4:provision Add an msDS-SupportedEncryptionTypes entry to our DC
...
This ensures that our DC will use all the available encyption types.
(The KDC reads this entry to determine what the server supports)
Andrew Bartlett
2010-06-29 16:59:22 +10:00
Andrew Tridgell
30dc87dab9
build: only use git when found by configure
...
this rebuilds version.h whenever the git version changes, so we always
get the right version with samba -V. That adds about 15s to the build
time on each git commit, which shouldn't be too onerous
2010-06-29 14:28:08 +10:00
Andrew Tridgell
3774ba350e
build: allow LOAD_ENVIRONMENT() to pass when no configure has been run
...
this returns an empty environment
2010-06-29 14:28:08 +10:00
Andrew Tridgell
8cbd36afe8
build: allow always=True/False on SAMBA_GENERATOR()
...
this allows us to force a rule to always run. Will be used by
samba_version
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-29 14:28:08 +10:00
Kamen Mazdrashki
1e8876a4f1
s4/repl_meta_data: remove duplicated (and commented out) log
2010-06-29 00:35:23 +03:00
Kamen Mazdrashki
12bc68d4d0
s4/ndr: Fix tuncating of constant to a 'long' type
2010-06-29 00:35:22 +03:00