summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4:kdc: fix calculation of the rodc kvnoStefan Metzmacher2011-03-041-4/+12
| | | | | | | | | | | | | | | | | | Bit shifting is non-trivial in C:-) This int32_t a = 0x12340000; uint32_t b = (a >> 16); results in 0x00001234, but this int32_t a = 0xEDCB0000; uint32_t b = (a >> 16); results in 0xFFFFEDCB, while we expected 0x0000EDCB. metze
* HEIMDAL:kdc: correctly propagate HDB_ERR_NOT_FOUND_HERE to via ↵Stefan Metzmacher2011-03-041-0/+5
| | | | | | tgs_parse_request() and _kdc_tgs_rep() metze
* ldb:ldb tools - remove a superflous "return" (usage internally calls "exit")Matthias Dieter Wallnöfer2011-03-041-1/+0
| | | | | | | Reviewed by: Tridge Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Mar 4 09:39:22 CET 2011 on sn-devel-104
* ldb:ldb tools - return LDB_ERR_INVALID_DN_SYNTAX on wrong DN parametersMatthias Dieter Wallnöfer2011-03-045-5/+9
| | | | | | Not all LDB databases have further DN checks. Reviewed by: Tridge
* ldb:ldb tools - ldbtest - convert other result values to LDB codes as wellMatthias Dieter Wallnöfer2011-03-041-15/+15
| | | | | | I've forgotten this in my first patchset. Reviewed by: Tridge
* s4:LDAP server - remove validation checks of input DNsMatthias Dieter Wallnöfer2011-03-041-23/+8
| | | | | | | We should rather try to let the LDB modules perform these checks otherwise different backends behaviour differently. Reviewed by: Tridge
* s4:objectclass LDB module - if we cannot find DN's parent then the DN itself ↵Matthias Dieter Wallnöfer2011-03-041-1/+3
| | | | | | | | | is invalid ERR_INVALID_DN_SYNTAX fits better than ERR_OPERATION_ERROR in this case. This one gets triggered if we perform "add" requests without the LDAP server. Reviewed by: Tridge
* s4-nterr: move auth_nt_status_squash to nt_status_squash and move to nterr.cGünther Deschner2011-03-048-36/+38
| | | | Guenther
* s4-nterr: some minor cosmetic edits to further match s3 nterr.Günther Deschner2011-03-041-3/+10
| | | | Guenther
* nterr: make sure both nt_err_desc structs are the same.Günther Deschner2011-03-041-0/+3
| | | | Guenther
* nterr: make sure both nt_errs structs are the same.Günther Deschner2011-03-041-0/+1
| | | | Guenther
* s4-nterr: add _N macro handling as in s3-nterr.Günther Deschner2011-03-041-91/+95
| | | | Guenther
* nterr: remove space indents (use tabs instead), following coding standards.Günther Deschner2011-03-041-15/+15
| | | | Guenther
* nterr: remove trailing whitespace.Günther Deschner2011-03-041-9/+9
| | | | Guenther
* s4:torture/rap/rap.c - remove unused variable "i"Matthias Dieter Wallnöfer2011-03-021-1/+0
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Wed Mar 2 18:38:58 CET 2011 on sn-devel-104
* s4-smbtorture: add netsessionenum rap torture test.Günther Deschner2011-03-022-0/+26
| | | | Guenther
* s4-smbtorture: add smbcli_rap_netsessionenum().Günther Deschner2011-03-021-0/+80
| | | | Guenther
* s4-dsdb: Ensure we permit multi-valued backlinks on single-valued attributesAndrew Bartlett2011-03-021-0/+7
| | | | | | | | | | This was already done in repl_meta_data, but it needs to be done here as well to cope with Windows 2000 level links. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 2 02:03:58 CET 2011 on sn-devel-104
* s4:drsuapi RPC server - this resembles more "samdb_is_gc"Matthias Dieter Wallnöfer2011-03-011-1/+1
| | | | | | | Reviewed by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Mar 1 17:57:47 CET 2011 on sn-devel-104
* s4:netlogon RPC server - "LogonGetDomainInfo" - check for NULL attributesMatthias Dieter Wallnöfer2011-03-011-17/+29
| | | | | | | | | | | | This is needed to complete the transition from "samdb_msg_add_string" to "ldb_msg_add_string". And this patch yields better NTSTATUS error results than before (INVALID_PARAMETER rather than OUT_OF_MEMORY). Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Mar 1 14:42:15 CET 2011 on sn-devel-104
* s4:drsuapi RPC server - check for the "SPN" attribute != NULLMatthias Dieter Wallnöfer2011-03-011-0/+6
| | | | | | The SPN attribute could derive from an untrusted source (client). Reviewed-by: Jelmer
* s4:dsdb - always handle the attribute "options" as 32bit unsigned integerMatthias Dieter Wallnöfer2011-03-014-22/+24
| | | | | | | | | | It is defined as LDAP syntax 2.5.5.9 so no need at all to treat it as 64-bit integer. Reviewed by: Kamenim and Metze Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Mar 1 12:46:15 CET 2011 on sn-devel-104
* s4:dsdb/common/util.c - remove "samdb_find_or_add_value"Matthias Dieter Wallnöfer2011-03-011-8/+0
| | | | | | This isn't used anymore. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb/common/util.c - fully remove "samdb_msg_add_string"Matthias Dieter Wallnöfer2011-03-011-18/+3
| | | | | | | This isn't needed anymore and will be substituted by "ldb_msg_add_string". Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:libnet/libnet_samsync_ldb.c - add a "samdb_msg_add_string" wrapperMatthias Dieter Wallnöfer2011-03-011-0/+8
| | | | | | Add this in order to allow the "ADD_OR_DEL" macros to work. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:remove many invocations of "samdb_msg_add_string"Matthias Dieter Wallnöfer2011-03-018-39/+29
| | | | | | | This call can be substituted by "ldb_msg_add_string". We only need to be careful on local objects or talloc'ed ones which live shorter than the message. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* lib/util: new merged debug systemAndrew Bartlett2011-03-012-13/+19
| | | | | | | | | | | | This is the s3 debug system, with a number of changes to tidy it up for common use. The debug class system is simplified by the removal of the ISSET table, the system no longer attempts to cope with assignment of DEBUGLEVEL, and the full class table is always available (rather than just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup. It is also no longer confusingly described as a hack, but as the initial table. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Mar 1 04:32:12 CET 2011 on sn-devel-104
* lib/util move debug.[ch] out of the wayAndrew Bartlett2011-03-011-1/+1
| | | | | | | This will allow a modified version of the s3 debug system to be the new common debug system. Andrew Bartlett
* s4-libnet_vampire: Ignore some attributes when building working schema cacheKamen Mazdrashki2011-03-011-0/+9
| | | | | | | | | Working schema cache will be used to convert replicated Schema objects again later, i.e. used as reference, so we don't need to resolve all attribute OIDs for working Schema cache to be usable. Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Tue Mar 1 03:45:16 CET 2011 on sn-devel-104
* s4-repl/working_schema: Ignore some attributes when bulding working schema cacheKamen Mazdrashki2011-03-011-0/+9
| | | | | We don't need all object attributes resolved and converted for a working schema to be functional.
* s4-replicated_objects: Implement a mechanism to relax some attributes conversionKamen Mazdrashki2011-03-011-4/+31
| | | | | | | | during replicated object convert stage. The problem is that we may have loops in schema graph and we can't resolve those loops in just one pass. Ignoring some attributes conversion will allow us to have a functional schema cache that we can use later to resolve all attribute OIDs on another pass
* Fix some typesJelmer Vernooij2011-02-2813-24/+24
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
* ntvfs: Add some missing dependencies on tevent/events.Jelmer Vernooij2011-02-282-4/+5
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 21:57:16 CET 2011 on sn-devel-104
* tdb: Use <tdb.h> to include tdb so system headers are found when building ↵Jelmer Vernooij2011-02-283-3/+3
| | | | against system tdb.
* Use <tdb.h> to include tdb, so the system include file gets used when ↵Jelmer Vernooij2011-02-2813-13/+13
| | | | | | building against system tdb.
* Use <tevent.h> so the system tevent gets included, if enabled.Jelmer Vernooij2011-02-282-2/+2
|
* s4/dsdb-util: Use DS_NTDSDSA_OPT_IS_GC flag definitionKamen Mazdrashki2011-02-271-1/+1
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Sun Feb 27 00:10:45 CET 2011 on sn-devel-104
* s4/tests: Include 'replica_sync' test in S4 test suiteKamen Mazdrashki2011-02-271-0/+1
|
* s4/drs-test: Remove unused importsKamen Mazdrashki2011-02-273-25/+0
|
* s4/drs-test: remove netReplicateCmd test from 'deleted object' test caseKamen Mazdrashki2011-02-271-10/+4
| | | | | | | DCs synchronization is moved to the test case setUp method as there is no guarantee for the order of execution of tests in a test case - thus netReplicateCmd may be executed after ReplicateDeleteOjbect test
* s4/drs-tests: Disable replication during 'deleted object' testKamen Mazdrashki2011-02-271-17/+10
| | | | | | | This allows us to remove the patch that prevents the test failure. Also pass 'forced' flag to samba-tool drs replicate command, otherwise DsReplicaSync will fail with 'replication not permitted' error
* s4/drs-tests: Move enable/disable replication methods to DrsBase class so we ↵Kamen Mazdrashki2011-02-272-12/+11
| | | | can re-use them
* s4-drepl: Schedule event to trigger replication rather than calling ↵Kamen Mazdrashki2011-02-271-2/+5
| | | | | | | | | | run_pending_ops directly Executing dreplsrv_run_pending_ops() directly may cause a segfault as in case of failure, the _drepl_replica_sync_done_cb() callback gets called *before* drepl_replica_sync() returns. In such case, irpc message gets freed twice - once when irpc_send_reply() gets called and once when drepl_replica_sync() returns
* s4-drepl: Fix replica sync callback to really store last error rather than ↵Kamen Mazdrashki2011-02-271-1/+1
| | | | last success
* s4-drepl: Refactor dreplsrv_run_pull_ops() toKamen Mazdrashki2011-02-271-16/+33
| | | | | | | | | | 1. Take into account DSA options - we should not send replication requests in case OUTBOUND_REPLICATION is disabled 2. Use replication flags for the operation to determine if a forced replication is requested 3. In case outbound replication is disabled and we don't have DRSUAPI_DRS_SYNC_FORCED flag set, then we should record WERR_DS_DRA_SINK_DISABLED error as a last replication result
* s4-drepl: Pass replication options from DsReplicaSync callKamen Mazdrashki2011-02-274-5/+12
|
* s4:heimdal - fix valgrind issue on Fedora 14Milan Crha2011-02-257-153/+153
| | | | | | | | | | This should definitely fix bug #7858. Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Feb 25 12:39:21 CET 2011 on sn-devel-104
* Revert "heimdal_build omit #line statments to allow valgrind to work again"Matthias Dieter Wallnöfer2011-02-258-57/+378
| | | | | This reverts commit 80e23c68d83a7c9989f87d5a88a78bb76d222afc. A better patch has been provided by Milan Crha in the following commit.
* heimdal_build omit #line statments to allow valgrind to work againAndrew Bartlett2011-02-258-378/+57
| | | | | | | | | | | | | | The lex/yacc files were generated on Fedora 14, and have empty filenames in #line declarations. I don't know why this is, but it seems best just to omit the #line statements. This is what was causing Valgrind on Fedora not to run on Samba binaries and programs linked to Samba libraries. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 25 11:46:56 CET 2011 on sn-devel-104
* Implement the SMB2 close flag SMB2_CLOSE_FLAGS_FULL_INFORMATION (and move ↵Jeremy Allison2011-02-251-1/+0
| | | | | | | | | | | definition to correct place). Thanks to Nick Meier @ Microsoft for finding this @ Connectathon. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Feb 25 00:40:52 CET 2011 on sn-devel-104