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
Matthias Dieter Wallnöfer
e6371246ef
s4:lib/registry/ldb.c - add a missing brace
...
Sorry didn't check that earlier.
2010-06-28 23:13:04 +02:00
Matthias Dieter Wallnöfer
ba01b216e2
s4:lib/registry/ldb.c - fix memory handling in "ldb_open_key"
2010-06-28 23:02:56 +02:00
Matthias Dieter Wallnöfer
094c1034d2
s4:lib/ldb/registry.c - handle the classname in the right way
...
This is for "ldb_get_key_info".
2010-06-28 23:02:56 +02:00
Matthias Dieter Wallnöfer
2fb3d8a6cc
s4:lib/registry/ldb.c - remove really useless "local_ctx"
...
"mem_ctx" should fit for these few local allocations.
2010-06-28 23:02:56 +02:00
Matthias Dieter Wallnöfer
3935502c67
s4:lib/registry/ldb.c - retrieve the classname correctly in "ldb_get_subkey_by_id"
2010-06-28 23:02:56 +02:00
Matthias Dieter Wallnöfer
77e87e66b0
s4:lib/registry/ldb.c - change the "ldb_get_value" implementation to use the value cache and not an LDB lookup
...
In addition this fixes the use of special characters in registry object names.
2010-06-28 23:02:55 +02:00
Ira Cooper
3549425b30
s3: Change exit on immediate socket failure.
...
This change makes it so socket errors early in the smbd child
process cause orderly exits not coredumps.
Signed-off-by: Jeremy Allison <jra@samba.org>
2010-06-28 12:08:03 -07:00
Matthias Dieter Wallnöfer
b6eb17eb1e
s4:auth/sam.c - "authsam_expand_nested_groups" - small performance improvement
...
We can save one search operation if "only_childs" is false and when we had no
SID passed as extended DN component.
2010-06-28 20:31:37 +02:00
Matthias Dieter Wallnöfer
a782eaa2fd
s4:auth/sam.c - "authsam_expand_nested_groups" - cosmetic/comments
2010-06-28 20:31:37 +02:00
Matthias Dieter Wallnöfer
03ffed73db
s4:auth/sam.c - "authsam_expand_nested_groups" - use "dsdb_search_dn" where possible
...
And always catch LDB errors
2010-06-28 20:31:37 +02:00
Jelmer Vernooij
5f9a053d63
selftest: Remove accidentally committed dummy test.
2010-06-28 20:10:08 +02:00