summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s4:dsdb Set partitions metadata as soon as it is set up.Andrew Bartlett2009-10-231-3/+3
|
* s4-selftest: lower some of the timeouts during make testAndrew Tridgell2009-10-232-7/+7
| | | | | This speeds up some of the delay based tests by a lot. There is no need to have long delays during testing.
* s4-samdb: make sure the static credentials are never freedAndrew Tridgell2009-10-231-0/+9
|
* s4-ldb: move the tdb_reopen_all() calls to ldb_wrap.cAndrew Tridgell2009-10-233-14/+9
|
* s4-ldb: use ldb_wrap_fork_hook() to cancel child transactionsAndrew Tridgell2009-10-232-2/+6
|
* s4-ldb: added ldb_transaction_cancel_noerr()Andrew Tridgell2009-10-233-1/+20
| | | | | This will be used to allow cancelling of transactions in a child after a fork()
* s4-server: call the ldb_wrap_fork_hook() after a fork()Andrew Tridgell2009-10-232-0/+5
| | | | | This will be used to allow us to cancel any pending transactions after a fork.
* s4-server: pre-open the main ldb databases in the serverAndrew Tridgell2009-10-231-8/+14
| | | | | By pre-opening these databases and leaving them open, we allow the new ldb_wrap_connect() code to share the ldb context between users.
* s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()Andrew Tridgell2009-10-2320-50/+119
| | | | | | | | | This allows us to reuse a ldb context if it is open twice, instead of going through the expensive process of a full ldb open. We can reuse it if all of the parameters are the same. The change relies on callers using talloc_unlink() or free of a parent to close a ldb context.
* s4-dsdb: add a static samdb_credentialsAndrew Tridgell2009-10-232-7/+19
| | | | | Similarly to system_session(), this creates a static samdb_credentials()
* s4-dsdb: create a static system_session contextAndrew Tridgell2009-10-2322-39/+54
| | | | | | This patch adds a system_session cache, preventing us from having to recreate it on every ldb open, and allowing us to detect when the same session is being used in ldb_wrap
* Simplify the logic.Jeremy Allison2009-10-221-5/+2
| | | | Jeremy.
* Fix bug 6829 - smbclient does not show special characters properly.Jeremy Allison2009-10-222-0/+20
| | | | | | | | | | | | All successful calls to cli_session_setup() *must* be followed by calls to cli_init_creds() to stash the credentials we successfully connected with. There were 2 codepaths where this was missing. This caused smbclient to be unable to open the \srvsvc pipe to do an RPC netserverenum, and cause it to fall back to a RAP netserverenum, which uses DOS codepage conversion rather than the full UCS2 of RPC, so the returned characters were not correct (unless the DOS codepage was set correctly). Phew. That was fun to track down :-). Jeremy.
* s3: Remove a pointless #endif/#ifdef pairVolker Lendecke2009-10-221-2/+0
|
* s4-lsa: fixed breakage of lsa serverAndrew Tridgell2009-10-221-0/+1
|
* s4-torture: fixed double free in libnet_group testAndrew Tridgell2009-10-221-1/+0
|
* s4:provision - Reintroduce accidentally removed parameters and checks from ↵Matthias Dieter Wallnöfer2009-10-221-13/+38
| | | | | | "guess_names" abartlet pointed out that those are essential for a safe and consistent provision.
* s4-lsa: fixed the lsa server to cope with the new tests from gdAndrew Tridgell2009-10-221-12/+33
|
* s4-ldb: added a TODO about checking the indexlistAndrew Tridgell2009-10-221-0/+2
|
* s4-ldb: fixed some memory leaks in new indexing codeAndrew Tridgell2009-10-221-1/+3
|
* s4-ldb: don't try to index non-indexed attributesAndrew Tridgell2009-10-221-0/+4
|
* s4-selftest: removed raw.unlink from quicktestAndrew Tridgell2009-10-221-1/+0
| | | | | This test takes 40s, and quicktest already covers delete operations in base.delete
* s4-ldb: ensure new dn_list elements are not owned by callerAndrew Tridgell2009-10-221-1/+1
|
* s4-ldb: over-allocate index records to save on realloc costsAndrew Tridgell2009-10-221-1/+5
|
* s4-ldb: fixed tdb error handling in ldb_index.cAndrew Tridgell2009-10-221-3/+8
|
* s4-ldb: delete empty index recordsAndrew Tridgell2009-10-221-0/+8
|
* s4-ldb: do more validation of idxptr listsAndrew Tridgell2009-10-221-12/+31
|
* s4-ldb: expose ltdb_err_map and ltdb_delete_noindexAndrew Tridgell2009-10-222-2/+5
| | | | These will be used by ldb_index.c
* s4-ldb: fast path for equal pointersAndrew Tridgell2009-10-221-1/+1
| | | | We compare identical ldb_val values surprisingly often
* selftest: make python run unbufferedAndrew Tridgell2009-10-221-0/+3
| | | | This makes some output in make test easier to follow
* util: fixed place where we could look one byte past end of stringAndrew Tridgell2009-10-221-1/+1
| | | | We need to check the length before the value
* idl-drsblobs: mark some more reserved values as value(0)Andrew Tridgell2009-10-223-40/+40
| | | | This prevents valgrind errors when we store these blobs in a database
* s4-ldb: when taking a list intersection, the result can be as long as the ↵Andrew Tridgell2009-10-221-1/+1
| | | | | | | | first list Intuitively you would think it couldn't be longer than the minimum of the two lists, but we are deliberately allowing for duplicates at this level of the indexing code, which means the result can be longer
* s4-ldb: ldb indexing rewrite - part1Andrew Tridgell2009-10-224-909/+739
| | | | | | | | | | | | | | This gets rid of the @IDXPTR approach to in-transaction indexing, instead using an in-memory tdb to hold index values during a transaction. This also cleans up a lot of the internal indexing logic, hopefully making it easier to understand. One of the big changes is in memory management, with a lot more use made of talloc tricks to avoid copying dn lists, and shortcuts used to avoid high intersection and union calculation costs. The overall result is that a re-provision on my laptop goes from 48s to a bit over 10s.
* s4-ldb: ldb_oom() for modulesAndrew Tridgell2009-10-221-0/+1
|
* s4:torture Silence const warning by use of data_blob_const()Andrew Bartlett2009-10-221-2/+1
| | | | | | This was inspired by one of mdw's const patches Andrew Bartlett
* s4:dsdb/samdb/cracknames - Remove unused header and add more "const"Matthias Dieter Wallnöfer2009-10-221-4/+3
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:ldb_sort - Add some more "const"Matthias Dieter Wallnöfer2009-10-221-2/+2
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:libcli/security/access_check - Add "const" in front of "type"Matthias Dieter Wallnöfer2009-10-221-1/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:smbtorture - Add "const" before "value"Matthias Dieter Wallnöfer2009-10-221-1/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb Use the 'correct' case for the namingContext values in rootDSEAndrew Bartlett2009-10-221-0/+22
| | | | | | | This makes the namingContext attributes in the rootDSE a little more pretty, by using the exact same values as used in the database DNs. Andrew Bartlett
* s4:dsdb Add default modules list to samba3samAndrew Bartlett2009-10-221-1/+2
| | | | | | | | This is needed because the work to allow existing databases to be loaded now moves the 'you have an old @PARTITION' record to the presense or absence of this attribute. Andrew Bartlett
* s4:provision - rework the "guess_names" and "make_smbconf" methodMatthias Dieter Wallnöfer2009-10-214-40/+21
| | | | | | | | | | - Cleans it up from unnecessary "lower()/upper()" and parameters which can be derived through "lp" calls. - Substitute the "HOSTNAME" caption in the "smb.conf" templates with "NETBIOS_NAME" which fits better. - Now the "realm" and "domain" parameter of the provision are totally case insensitive and the script itself up/downcases them appropriately depending on the use (e.g. "realm" upcase for KERBEROS, lowcase for DNS domainname).
* s3:Makefile: add some explicit dependencies to libcBjörn Jacke2009-10-211-2/+2
| | | | | | | Add libc as explicit dependency where we use "-z defs" linker flags. This is to silence the Sun linker. Otherwise it whines: malloc ... (symbol belongs to implicit dependency /lib/libc.so.1)
* s4:provision - important fix for DNS domainname: lower realmMatthias Dieter Wallnöfer2009-10-211-1/+1
|
* .gitignore: add "partition_proto.h"Matthias Dieter Wallnöfer2009-10-211-0/+1
|
* heimdal - hdb/ext.c - fix a "shadows variable" warningMatthias Dieter Wallnöfer2009-10-211-4/+4
| | | | | Renamed the variable "str" in the nested block to "str2" to prevent the collision with "str" in the main function block.
* S4: ldb_map modules uses defines that are reservedTorgeir Lerkerød2009-10-216-175/+175
| | | | | | | On OpenSolaris MAP_RENAME and friends are defined in <sys/mman.h> e.g. mmap and friends. So on these systems MAP_* have a meaning. Cleaned up LDB name space by adding LDB_ in front of MAP_* e.g. MAP_RENAME => LDB_MAP_RENAME Signed-off-by: Torgeir Lerkerød <torgeir.lerkerod@gmail.com> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* S4: Building on a system with libintlTorgeir Lerkerød2009-10-211-0/+5
| | | | | | | Heimdal's internal buildsystem uses a different define for checking for libintl than what samba uses. LIBINTL vs HAVE_LIBINTL_H. Since changing heimdals defineswould brake dropin merges of heimdal. This is a simple workaround in line with others in heimdal_build catalog. Signed-off-by: Torgeir Lerkerød <torgeir.lerkerod@gmail.com> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/tdb: make tdbtool use tdb_check() for "check" commandRusty Russell2009-10-222-15/+31
| | | | | | | Also, set logging function so we get more informative messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>