summaryrefslogtreecommitdiff
path: root/source4/dsdb
AgeCommit message (Collapse)AuthorFilesLines
2007-12-21r26521: Fix newlines.Jelmer Vernooij3-12/+12
(This used to be commit 174aa1583791a4c305bc49cf78f8f10d42701bc9)
2007-12-21r26508: Tighter dependencies in an attempt to fix missing symbol errors on sun9.Jelmer Vernooij1-1/+1
(This used to be commit 10d0631c953cfb014da82704244acb7bf99b3e4a)
2007-12-21r26493: Fix includes for dsdb/common.Jelmer Vernooij1-0/+1
(This used to be commit 84d2f784bfdc91441122ebce393d042a53928d2b)
2007-12-21r26488: Implement tests for the ranged_results module.Andrew Bartlett1-28/+34
Untested code is broken code, so rework the module until it passes... It turns out that AD puts search attributes onto the wire in the reverse order to what Samba does. This complicates exact value matching, so this is skipped for now. Andrew Bartlett (This used to be commit 91bcb60d31d54e52128d5bd107df4ceb87389889)
2007-12-21r26485: Fix indent, remove left-over debug.Andrew Bartlett1-2/+1
Andrew Bartlett (This used to be commit 2277f2d88716e0911d5f35bd4c979b2fc2f9473b)
2007-12-21r26483: Merge ldb module dependency fixes, fix auth python module.Jelmer Vernooij8-1891/+1946
(This used to be commit 85eeecf997a071ca7e7ad0247e8d34d49b7ffcbb)
2007-12-21r26430: require explicit specification of loadparm context.Jelmer Vernooij1-1/+1
(This used to be commit 1b947fe0e6e16318e5a8127bb4932d6b5d20bcf6)
2007-12-21r26429: Avoid use of global_smb_iconv_convenience.Jelmer Vernooij2-5/+7
(This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
2007-12-21r26419: Add a module to implement 'ambigious name resolution' by munging theAndrew Bartlett2-0/+324
incoming LDAP filter. Warning: Any anr search will perform a full index search. Untill ldb gets substring indexes, this is unavoidable. Also implement a testsutie to show we match AD behaviour for this important extension (used in the Active Directory Users and Computers MMC plugin, as a genereral 'find'). This will also be useful to OpenChange, as their server needs to implement this. Andrew Bartlett (This used to be commit 044b50947254ccd516c21cb156ab60ab9e3a582d)
2007-12-21r26412: Add comments and refactor to reuse common code.Andrew Bartlett1-10/+29
Andrew Bartlett (This used to be commit a8b0f5af9afcc19bd869ff19e1456dbe9d2713b6)
2007-12-21r26360: Add some const.Jelmer Vernooij1-1/+1
(This used to be commit 3616ced29ed2385300f7268a742a9090840b626f)
2007-12-21r26329: Fix more loadparm_context references. Only about a 100 left now.Jelmer Vernooij1-1/+1
(This used to be commit ddf233346d848e91bc6a6a572f0f6120540503b7)
2007-12-21r26327: Explicit loadparm_context for RPC client functions.Jelmer Vernooij1-1/+1
(This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
2007-12-21r26324: Fix includes for Jelmer.Andrew Bartlett2-2/+2
Andrew Bartlett (This used to be commit 8089283784993cfe14c343746be77790c74c2b78)
2007-12-21r26319: Split encoding functions out of libcli_ldap.Jelmer Vernooij8-10/+14
(This used to be commit 95a6ef7fc8757ccfd90dbf0d6c9b5098f10b10b6)
2007-12-21r26316: Use contexts for conversion functions.Jelmer Vernooij2-5/+5
(This used to be commit f6420d933b5b011d428974f3a2a57edf19e6f482)
2007-12-21r26298: Use metze's schema loading code to pre-initialise the schema into theAndrew Bartlett1-0/+37
samdb before we start writing entries into it. In doing so, I realised we still used 'dnsDomain', which is not part of the standard schema (now removed). We also set the 'wrong' side of the linked attributes for the masteredBy on each partition - this is now set in provision_self_join and backlinks via the linked attributes code. When we have the schema loaded, we must also have a valid domain SID loaded, so that the objectclass module works. This required some ejs glue. Andrew Bartlett (This used to be commit b0de08916e8cb59ce6a2ea94bbc9ac0679830ac1)
2007-12-21r26297: Correct error message. This function verifies attributes, notAndrew Bartlett1-1/+1
objectclasses. Andrew Bartlett (This used to be commit 47422b5e59027461efd7bc45534f9da8e37e3f48)
2007-12-21r26284: Rather than just debug, push the error back up the stack as the errorAndrew Bartlett1-10/+10
string, if we fail to load the schema. Andrew Bartlett (This used to be commit 1dc771f903dd613a4d6494f7fd45d35c4d282a33)
2007-12-21r26283: fix typoAndrew Bartlett1-1/+1
(This used to be commit 7d1169b52b583abee48f4dafac01f5887060002e)
2007-12-21r26282: These modules expect errors, but if we don't wipe the error string, weAndrew Bartlett2-0/+7
get phony error strings at the caller, which is very confusing. Andrew Bartlett (This used to be commit 9ac7f4f6098b392dbe4a883a802d2417e074586a)
2007-12-21r26271: Remove some more uses of global_loadparm.Jelmer Vernooij2-2/+3
(This used to be commit e9875fcd56de0748ed78d7e3c9cdb4919cd96d3c)
2007-12-21r26270: Require specifying the loadparm_context or NULL to ↵Jelmer Vernooij1-1/+1
cli_credentials_guess(). (This used to be commit e52710d6794a25ba697f8c26b43784226964f9cb)
2007-12-21r26252: Specify loadparm_context explicitly when creating sessions.Jelmer Vernooij4-4/+4
(This used to be commit 7280c1e9415daabb2712db1372e23f9846272ede)
2007-12-21r26244: Add a module (sans tests for the moment) that implements rangedAndrew Bartlett2-0/+217
results, as used particularly by MMC's Active Directory Users and Computers to list group members. This may be used on any attribute, but is useful to obtain attributes that may be lengthy in 'pages'. The implementation presumes that attributes will always be returned by the DB in the same order. Andrew Bartlett (This used to be commit c789a91e00b47b2f02513e97101b9606d00c6aaa)
2007-12-21r26237: Add loadparm context to the server service interface.Jelmer Vernooij1-1/+1
(This used to be commit 1386c5c92505a950c65411b8af74d703ce023f95)
2007-12-21r26235: Avoid global_loadparm.Jelmer Vernooij1-1/+1
(This used to be commit e9039782204389cc827e76da319d5ccf6d33be46)
2007-12-21r26234: More global_loadparm fixes.Jelmer Vernooij1-2/+4
(This used to be commit 84892d030de6266fc0f3a699cade960dd5dc37bc)
2007-12-21r26233: Pass loadparm context when creating krb5 contexts.Jelmer Vernooij2-0/+3
(This used to be commit 7780bf285fdfc30f89409d0436bad0d4b6de5cd4)
2007-12-21r26229: Set loadparm context as opaque pointer in ldb, remove more uses of ↵Jelmer Vernooij4-6/+7
global_loadparm. (This used to be commit 37d05fdc7b0e6b3211ba6ae56b1b5da30a6a392a)
2007-12-21r26228: Store loadparm context in auth context, move more loadparm_contexts ↵Jelmer Vernooij2-8/+8
up the call stack. (This used to be commit ba75f1613a9aac69dd5df94dd8a2b37820acd166)
2007-12-21r26227: Make loadparm_context part of a server task, move loadparm_contexts ↵Jelmer Vernooij6-6/+11
further up the call stack. (This used to be commit 0721a07aada6a1fae6dcbd610b8783df57d7bbad)
2007-12-21r26192: Handle, test and implement the style of extended_dn requiest that ↵Andrew Bartlett1-26/+64
MMC uses. It appears that the control value is optional, implying type 0 responses. Failing to parse this was causing LDAP disconnects with 'unavailable critical extension'. Andrew Bartlett (This used to be commit 833dfc2f2af84c45f954e428c9ea6babf100ba92)
2007-12-21r26182: Extend our linked attribute testsuite to cover many more possibleAndrew Bartlett1-74/+218
modifications, and then extend our implementation to match. Andrew Bartlett (This used to be commit 65d17f0ad7ead438333abcccb0bd56b038ffb88e)
2007-12-21r26140: Add a new test for searches by distinguieshedName and dn, andAndrew Bartlett1-0/+18
implement these in the simple ldap mapping module. We still don't pass this test, because we must get linked attributes into OpenLDAP. Andrew Bartlett (This used to be commit d41f34e979bb119f71ab3cc2fdb3c08e4b92849c)
2007-12-21r26138: Don't talloc_free() res if an error occoured.Andrew Bartlett1-1/+4
Andrew Bartlett (This used to be commit 4a8a1003f3cc8db530182138e2331e860149e844)
2007-12-21r26137: Rename the entryUUID module to better match it's purpose: being aAndrew Bartlett2-51/+61
simple ldap mapping (a complex mapping will follow). Fix the module to handle 'name' better, rather than using the 'name' attribute built into OpenLDAP, rename to samba4RDN. We need to see if this can be handled in the backend. Also rename the functions and inernal module name to entryuuid for consistancy. Andrew Bartlett (This used to be commit a7be80766f4270d63433bbd6a976ebf302ed3433)
2007-12-21r26136: Attempt to fix dependencies for auth.Jelmer Vernooij1-1/+2
(This used to be commit abf2600a044cdbab6c5d7880d18217bff3d15c39)
2007-12-21r26135: Remove samdb_add(), samdb_delete() and samdb_modify(), which were justAndrew Bartlett1-26/+2
wrappers to ldb_add() etc. samdb_replace() remains, as it sets flags on all entries as 'replace'. Andrew Bartlett (This used to be commit 09c0faa5b7e1a560bf13b99a2584012a47377bb6)
2007-12-21r26006: Improve some dependencies.Jelmer Vernooij1-1/+1
(This used to be commit 28f05bb5ef9e727298f4b61e71c42a8703374b96)
2007-12-21r26005: Notice the user about LD_LIBRARY_PATH or equivalent when building ↵Jelmer Vernooij1-1/+0
with shared libs. (This used to be commit 44529b24467ac94d47d14a53177554b39a80da1a)
2007-12-21r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies.Jelmer Vernooij5-5/+6
(This used to be commit 56dfcb4f2f8e74c9d8b2fe3a0df043781188a555)
2007-12-21r25981: Don't create an ldb_request on NULL.Andrew Bartlett1-8/+11
A re-arrangment of the code due to the base DN checking meant that the ac->down_req array wasn't started, so was NULL Andrew Bartlett (This used to be commit 0a44b8e9f3e1a85c27d105cdd1572a0df936f612)
2007-12-21r25957: Rework the cracknames code to use less gendb_search() and instead callAndrew Bartlett1-47/+116
ldb_search_exp_fmt(). While it is a bit more verbose to code with, it returns better error codes, and allows us to handle the case where the base DN doesn't exist better. Andrew Bartlett (This used to be commit be6ef043a3f811e6b08d3e5fe7094a72d974134a)
2007-12-21r25949: Make error messages clearer and more correct.Andrew Bartlett2-6/+7
Andrew Bartlett (This used to be commit f0a0d73f768434cb474b311d7c366d1f2a06c8f4)
2007-12-21r25942: Make various ldb modules handle an LDB backend that enforces validityAndrew Bartlett7-163/+348
of Base DNs in searches (returning an error of LDB_ERR_NO_SUCH_ENTRY). We need to handle this if ldb_tdb is to behave correctly compared with LDAP, as well as if we are using an LDAP backend. In doing so, I realised that subtree_rename and subtree_delete (prevention) need rather different wait loops, so it seemed easier to split it out into it's own module. I've fixed the licence on both of these modules to be GPLv3. Andrew Bartlett (This used to be commit d3894c90f31fb45e038ab478cd9d7d34962d069b)
2007-12-21r25941: Use samdb_relative_path() (new function in samdb.c) in the partitionsAndrew Bartlett1-30/+3
module. Andrew Bartlett (This used to be commit c8d1ab30845fa1496c85630b138b1cb512c2b6aa)
2007-12-21r25940: Rework the samldb and templates handling.Andrew Bartlett2-45/+125
Templates just don't belong in the sam.ldb, as they don't obey any of the other rules. This moves them to a seperate templates.ldb. In samldb, this patch reworks the duplicate SID and Name detection code, to use ldb_search_exp_fmt() rather than gendb_search. This returns far more useful errors, which we now handle and report better. The call to samdb_search_for_parent_domain() has been moved in samldb, to allow both the account and SID uniqueness checks to be in the same domain. This function also returns better errors. dcesrv_drsuapi.c is updated for the new prototype of samdb_search_for_parent_domain() Andrew Bartlett (This used to be commit f1ab90c88c782c693b41795d70368650806543b5)
2007-12-21r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)Stefan Metzmacher12-147/+177
lib/messaging/ lib/registry/ lib/ldb-samba/ librpc/rpc/ auth/auth_winbind.c auth/gensec/ auth/kerberos/ dsdb/repl/ dsdb/samdb/ dsdb/schema/ torture/ cluster/ctdb/ kdc/ ntvfs/ipc/ torture/rap/ ntvfs/ utils/getntacl.c ntptr/ smb_server/ libcli/wrepl/ wrepl_server/ libcli/cldap/ libcli/dgram/ libcli/ldap/ libcli/raw/ libcli/nbt/ libnet/ winbind/ rpc_server/ metze (This used to be commit 6223c7fddc972687eb577e04fc1c8e0604c35435)
2007-12-21r25891: Test that we get the correct return value when we attempt to referenceAndrew Bartlett1-2/+2
invalid entries with a linked attribute. Make Samba4 pass that test, by fixing a silly bug in the linked_attributes module. (By passing down the 'original' request structure, tdb would override our handle, and therefore we would never be called for the 'wait', which collects the errors). Fix up the provision templates to handle the newly required referential integrity. Andrew Bartlett (This used to be commit 0377d85bbdcb2c4f110b0519005f0d1d10bc0c0b)