summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4:dsdb/repl: ldb_errstring() takes a 'struct ldb_context' not 'int'Stefan Metzmacher2012-08-141-1/+2
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Aug 14 13:58:31 CEST 2012 on sn-devel-104
* s4:dsdb/repl: make sure instanceType_e is not changed by a reallocationStefan Metzmacher2012-08-141-1/+11
| | | | | | Pair-Programmed-With: Björn Baumbach <bb@sernet.de> metze
* s4:dsdb/repl: avoid reallocation of msg->elementsStefan Metzmacher2012-08-141-1/+1
| | | | | | | | | | The index into the elements needs to match between msg->elements and md->ctr.ctr1.array, which means we should pre-allocate them with the same size. Pair-Programmed-With: Björn Baumbach <bb@sernet.de> metze
* s4-dsdb: Add mem_ctx argument to samdb_ntds_settings_dnAndrew Bartlett2012-08-1414-30/+45
| | | | | | | | | | | | | | As this value is calculated new each time, we need to give it a context to live on. If the value is the forced value during provision, a reference is taken. This was responsible for the memory leak in the replication process. In the example I was given, this DN appeared in memory 13596 times! Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 14 10:05:14 CEST 2012 on sn-devel-104
* s4-dsdb: Improve memory handling in dsdb_schema_from_ldb_results() by adding ↵Andrew Bartlett2012-08-141-2/+14
| | | | a tmp_ctx
* s4-dsdb: Improve memory handling in kccsrv_add_connection()Andrew Bartlett2012-08-141-0/+5
|
* s4-dsdb: Improve memory handling in kccsrv_find_connections() by adding a ↵Andrew Bartlett2012-08-141-4/+15
| | | | tmp_ctx
* s4-dsdb: Add constAndrew Bartlett2012-08-141-4/+4
|
* s4:kdc/wdc-samba4.c - fix user logins on specific workstationsMatthias Dieter Wallnöfer2012-08-141-4/+5
| | | | | | | | The decrement operation has been missing. Problem found by Mohammad Ebrahim Abravi <lamp.mia@gmail.com> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-classicupgrade: Tests if sam policies exist before trying to import them.Wesley Young2012-08-141-21/+28
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: Take more care in handling of global schema memoryAndrew Bartlett2012-08-112-28/+64
| | | | | | | | | | | | | | | This reworks dsdb_replicated_objects_commit() to have a proper local tmp_ctx and to be more careful about what schema is set (only setting a global schema if the original schema was global). In particular, the new working_schema is not given a talloc reference to the old schema. This ensures that the old schema can go away when no longer used. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Aug 11 10:31:57 CEST 2012 on sn-devel-104
* s4-dsdb: Remove support for per-partition sequence numbersAndrew Bartlett2012-08-111-23/+0
| | | | | | | | | | | These sequence numbers were only used for telling if the schema was changed, and are no longer directly related to the replication USN. The per-partition replication USN can be obtained from the @REPLCHANGED record on the per-partition database, and this is done with an ldb_search(). Andrew Bartlett
* s4-dsdb: Use only the replication USN for schema reload.Andrew Bartlett2012-08-112-66/+0
| | | | | | | | | | | This way we do not track both the partition seq number and the replication USN for schema reload purposes. We only need one indication of actual data change, and the replication per-partition sequence number is no more expensive to obtain than the ldb per-partition sequence number. Andrew Bartlett
* torture: Reproducer for 64c0367Volker Lendecke2012-08-101-0/+20
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* build: rename security → samba-securityBjörn Jacke2012-08-106-16/+16
| | | | | | | | | there is a libsecurity on OSF1 which clasheѕ with our security lib. see bug #9023. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Aug 10 14:22:21 CEST 2012 on sn-devel-104
* s4-dsdb: Explain better what records are written during schema setAndrew Bartlett2012-08-104-17/+26
| | | | | | This is controlled by setting write_indices_and_attributes. Andrew Bartlett
* s4:torture:basic: check the return status of the last open in deltest16Michael Adam2012-08-091-0/+2
| | | | | Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Aug 9 18:01:50 CEST 2012 on sn-devel-104
* s4:torture:basic: fix a message typo in the delete17 testMichael Adam2012-08-091-1/+1
|
* s4:torture:basic: fix abundance of spaces in deltest6Michael Adam2012-08-091-3/+4
|
* s4:torture:basic:delete: fix 4 vs 8 spc tab formatting in ↵Michael Adam2012-08-091-4/+4
| | | | check_delete_on_close()
* s4-events: Do not vasprintf() the tevent debug messages that will not be shownAndrew Bartlett2012-08-091-4/+6
| | | | | | | This malloc() and free() actually shows up quite high on a call profile of provision of the AD DC. Andrew Bartlett
* s4-dsdb: Remove strcasecmp() fallback in replmd_ldb_message_element_attid_sortAndrew Bartlett2012-08-091-7/+0
| | | | | | | | | | | In all callers, we must already have a attributeID for each of the values or else we would have already given an error, or could not have obtained the message over DRS. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 9 11:39:54 CEST 2012 on sn-devel-104
* s4-dsdb: Do not reload partition metadata except on transaction startAndrew Bartlett2012-08-091-11/+0
| | | | | | | | This ensures that we do not add objects that should go into a partition, but we simply return that an object is not present if the connection was created before the partition was loaded. It is rare to create a new partition. Andrew Bartlett
* s4-dsdb: Ensure we have indexing enabled during the provisionAndrew Bartlett2012-08-091-1/+6
| | | | | | | | | | | Because we set the schema before we connected the ldb to a file, the @INDEX records were not added until next startup. This cost 100% more time in running provision on my laptop. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 9 08:20:36 CEST 2012 on sn-devel-104
* s4-pydsdb: Provide control of if we should write index attributes when ↵Andrew Bartlett2012-08-092-6/+8
| | | | | | | | reloading a schema This allows us to carefully control the loading of the schema. Andrew Bartlett
* s4-dsdb: Change talloc parentAndrew Bartlett2012-08-091-1/+1
| | | | | | | | | This matches the rest of the function. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 9 06:26:36 CEST 2012 on sn-devel-104
* s4-dsdb: Remove ldb_sequence_type argument from ↵Andrew Bartlett2012-08-092-4/+4
| | | | | | | | partition_primary_sequence_number We always want LDB_SEQ_HIGHEST_SEQ here. Andrew Bartlett
* s4-dsdb: simplify migration of old-style seqence numbers to metadata.tdbAndrew Bartlett2012-08-092-150/+53
| | | | | | This simple operation does not need to be encased in generic ldb extended operations. Andrew Bartlett
* s4-dsdb: Reduce calls to the ldb layer by reloading less oftenAndrew Bartlett2012-08-092-14/+26
| | | | | | | We do not need to reload the partition list to get the global sequence number, as that number is stored in the metadata.tdb, not the ldb files. Andrew Bartlett
* selftest: Rename samba4.blackbox.pdbtest to samba.blackbox.pdbtestAndrew Bartlett2012-08-081-1/+1
| | | | | | | | | This test covers s3dc as well. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 8 09:57:14 CEST 2012 on sn-devel-104
* s4-scripting: Remove unused variables from ntacl testsAndrew Bartlett2012-08-071-10/+0
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 7 11:15:41 CEST 2012 on sn-devel-104
* s4-smbd: Check for failure of irpc_add_nameAndrew Bartlett2012-08-071-1/+4
|
* s4:libcli/smb2/write correct error checkingChristian Ambach2012-08-061-1/+1
| | | | | | | Server might return STATUS_BUFFER_OVERFLOW, which is not caught by NT_STATUS_IS_ERR Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Mon Aug 6 20:01:01 CEST 2012 on sn-devel-104
* lib/param: move enum dns_update_settings to lib/paramChristian Ambach2012-08-062-26/+1
|
* s4:libcli/pyerrors: add PyErr_NTSTATUS_NOT_OK_RAISE()Stefan Metzmacher2012-08-061-0/+6
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Aug 6 18:06:50 CEST 2012 on sn-devel-104
* s4:libcli/pyerrors: s/PyErr_WERROR_IS_ERR_RAISE/PyErr_WERROR_NOT_OK_RAISE/Stefan Metzmacher2012-08-063-18/+18
| | | | metze
* s4:domain join: setup RODC invocationIdStefan Metzmacher2012-08-041-0/+26
| | | | | | | | | Pair-Programmed-With: Björn Baumbach <bb@sernet.de> metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Aug 4 18:27:21 CEST 2012 on sn-devel-104
* s4:torture: add support for SMB_EXTENDED_SIGNATURES during SMBtconXStefan Metzmacher2012-08-042-1/+14
| | | | metze
* s4:libcli: add support for SMB_EXTENDED_SIGNATURES during SMBtconXStefan Metzmacher2012-08-043-0/+18
| | | | metze
* s4:dsdb:replicated_objects: do not move 'instanceType' to the end of ↵Stefan Metzmacher2012-08-031-1/+22
| | | | | | | | | msg->elements on RODC replication It's very important that the order of msg->elements and md->ctr.ctr1.array is the same. metze
* s4: samba_spnupdate: fix "if we are DNS server" checkBjörn Baumbach2012-08-031-5/+6
| | | | | | | | | We need to check if we have hasMasterNCs. If we are RODC we have hasFullReplicaNCs instead of hasMasterNCs. TODO: maybe check for hasFullReplicaNCs, too? Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: send the TCONX_FLAG_EXTENDED_RESPONSE flagStefan Metzmacher2012-08-025-7/+7
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Aug 2 10:54:18 CEST 2012 on sn-devel-104
* s4:libcli: send the TCONX_FLAG_EXTENDED_RESPONSE flagStefan Metzmacher2012-08-023-4/+4
| | | | metze
* heimdal: fixed -Werror=format error in com_errAndrew Tridgell2012-08-021-1/+1
| | | | | | | This needs to be merged upstream Autobuild-User(master): Andrew Tridgell <tridge@samba.org> Autobuild-Date(master): Thu Aug 2 08:59:24 CEST 2012 on sn-devel-104
* libcli/smb: move some TCON related defines to smb_constants.hStefan Metzmacher2012-08-011-4/+0
| | | | metze
* s4:libcli/raw: remove unused smbcli_session->user_session_keyStefan Metzmacher2012-08-013-17/+0
| | | | metze
* s4:librpc/dcerpc_smb2: sync smb2_session_key() with smb_session_key()Stefan Metzmacher2012-08-011-0/+2
| | | | metze
* s4:librpc/dcerpc_smb: make use of smbXcli_session_application_key()Stefan Metzmacher2012-08-011-4/+15
| | | | metze
* s4:librpc/dcerpc_smb2: make use of smbXcli_session_application_key()Stefan Metzmacher2012-08-011-1/+1
| | | | metze
* s4:libcli/smb_composite: make use of smb1cli_session_set_session_key()Stefan Metzmacher2012-08-011-1/+17
| | | | metze