summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4:dsdb - always fail if a search filter could not be parsedMatthias Dieter Wallnöfer2012-08-222-1/+8
| | | | | | A NULL string/expression returns the generic "(objectClass=*)" filter Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb_sort_objectClass_attr - simplify memory context handlingMatthias Dieter Wallnöfer2012-08-223-37/+23
| | | | | | | Do only require the out memory context and build the temporary one in the body of the function. This greatly simplifies the callers. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb_sort_objectClass_attr - use "data_blob_string_const" for setting valuesMatthias Dieter Wallnöfer2012-08-221-6/+1
| | | | | | | As shown in commit c8e6d8b487 this looks easier and in any case we can treat schema context data like global data. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-torture: Use torture_fail() in the unix.unix_info2 testAndrew Bartlett2012-08-201-2/+3
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Aug 20 15:36:48 CEST 2012 on sn-devel-104
* s4-torture: Show that we cannot list extended attributes on streamsAndrew Bartlett2012-08-201-0/+11
|
* s4-torture: Show that we cannot have extended attributes on streamsAndrew Bartlett2012-08-201-2/+17
|
* s4-torture: Improve raw.streams test to cover EAs and to use torture_assert()Andrew Bartlett2012-08-201-34/+25
| | | | | | | | | | The extension of this test is to create an extended attribute, so we can confirm that the easize field on a stream actually refers to the parent file. This has been run against Windows 7. Andrew Bartlett
* s4-ntvfs: Add TODO on ea_sizeAndrew Bartlett2012-08-201-1/+1
| | | | | | This is almost certainly un-important. Andrew Bartlett
* s4-ntvfs: Ensure we do not attempt to write EAs on streamsAndrew Bartlett2012-08-201-0/+6
|
* s4:torture:basic: add more delete test - variants of deltest16 and deltest17Michael Adam2012-08-171-0/+622
| | | | | | | | | | | | | There seems to be a difference if the initial delete_on_close flag was set on a handle that created the file or if the handle if was for a file that already existed. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Aug 17 21:44:24 CEST 2012 on sn-devel-104
* s4-dsdb: Use tmp_ctx in kccsrv_check_deleted to avoid leaking memory onto ↵Andrew Bartlett2012-08-171-6/+11
| | | | | | | | | | | | | | | | | | | part->dn The confusing use of do_dn as a memory context while legitimate created a bug when it was copied and modified to search on a DN from long-term state. By always using a temporary memory context it is clear what paramter is the memory context. This was found based on a log provided by Ricky Nance <ricky.nance@weaubleau.k12.mo.us>. Thanks Ricky! Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Aug 17 18:24:10 CEST 2012 on sn-devel-104
* s4-kcc: Avoid use-after-free of dn and add tmp_ctxAndrew Bartlett2012-08-171-2/+9
| | | | | | By using a tmp_ctx we are clearer about allocating temporary memory. Andrew Bartlett
* s4:libcli/smb2: reset trsnport->compound.related when a compound chain is ↵Stefan Metzmacher2012-08-171-0/+1
| | | | | | finished metze
* s4-dsdb: Ensure we always free tmp_ctx in schema refresh checkAndrew Bartlett2012-08-171-0/+2
| | | | | | | | | | | | | | This was found based on a log provided by Ricky Nance <ricky.nance@weaubleau.k12.mo.us>. Thanks Ricky! In that log, over 2.5 days this particular allocation was repeated: 1715099 talloc_new: ../source4/dsdb/samdb/ldb_modules/schema_load.c:120 contains 0 bytes in 1 blocks Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Aug 17 06:21:18 CEST 2012 on sn-devel-104
* s4: Fix returns in py_check_dcerpc_typeVolker Lendecke2012-08-171-2/+2
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:cldap_server: only return DS_SERVER_*TIMESERV if "ntp_signd" is usedStefan Metzmacher2012-08-161-4/+6
| | | | metze
* s4:cldap_server: set DS_SERVER_SELECT_SECRET_DOMAIN_6 if we're a RODCStefan Metzmacher2012-08-161-5/+9
| | | | metze
* s3-libsmb: Add a simple test for python bindingsVolker Lendecke2012-08-162-0/+80
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Aug 16 22:49:06 CEST 2012 on sn-devel-104
* s4-selftest: Fix test name for samba.tests.dcerpc.bareAndrew Bartlett2012-08-151-1/+1
|
* s4:dsdb/repl: fix the usage of 'GC/' prefixed principal namesStefan Metzmacher2012-08-141-21/+6
| | | | | | | | | | | | | | | | The "serverReference" attribute is available on the "server" object not on the "nTDSA" object. This allows connections to RODCs, as they don't have a E3514235-4B06-11D1-AB04-00C04FC2DCD2/${NTDSGUID}/${DNSDOMAIN} principal. Pair-Programmed-With: Björn Baumbach <bb@sernet.de> metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Aug 14 18:57:41 CEST 2012 on sn-devel-104
* s4:samba-tool/drs: print the dns name of the server belonging to a connectionStefan Metzmacher2012-08-141-1/+4
| | | | | | Pair-Programmed-With: Björn Baumbach <bb@sernet.de> metze
* s4:ntp_signd: fix SEGV if SID cannot be foundArvid Requate2012-08-141-1/+5
| | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 14 17:16:54 CEST 2012 on sn-devel-104
* s4-dsdb: Use samdb_dn_is_our_ntdsa()Andrew Bartlett2012-08-145-37/+61
| | | | | | | This uses a GUID based comparison, and avoids re-fetching the samdb_ntds_settings_dn each time. Andrew Bartlett
* s4-dsdb: Add samdb_dn_is_our_ntdsa()Andrew Bartlett2012-08-141-0/+25
| | | | | | This is like samdb_reference_dn_is_our_ntdsa but without the attribute de-reference. Andrew Bartlett
* s4-dsdb: Use samdb_reference_dn_is_our_ntdsa()Andrew Bartlett2012-08-141-35/+4
|
* s4-repl: Use samdb_reference_dn_is_our_ntdsa()Andrew Bartlett2012-08-141-15/+13
|
* s4-dsdb: Add helper function samdb_reference_dn_is_our_ntdsa()Andrew Bartlett2012-08-141-1/+39
| | | | | | | | We often want to know if we own an FSMO role (for example). This tries to be more efficient by comparing the GUID, rather than the string DN, as this does not need to be re-fetched each time. Andrew Bartlett
* s4-dsdb: Use ldb_dn_copy() rather than talloc_reference()Andrew Bartlett2012-08-141-1/+1
| | | | | | | | | As the normal case (outside provision) uses a copy, this avoids a case where a caller might modify a global variable accidentily. As suggested by metze. Andrew Bartlett
* s4-libnet: Prepare libnet_BecomeDC for samdb_reference_dn() returning an ↵Andrew Bartlett2012-08-141-0/+1
| | | | | | | | extended DN Remote LDAP servers will not accept an extended DN with other components. Andrew Bartlett
* s4-libnet: Improve debugging of libnet_BecomeDC LDAP errorsAndrew Bartlett2012-08-142-0/+14
|
* 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()