summaryrefslogtreecommitdiffstats
path: root/source4/lib
Commit message (Collapse)AuthorAgeFilesLines
* s4:ldb Remove obsolete comment about ldb_tdb's sequence numAndrew Bartlett2009-08-171-2/+0
|
* fixed the updateNow schema test to use a canonical OIDAndrew Tridgell2009-08-171-1/+2
| | | | | | | | The expression time.strftime("%s", time.gmtime())[3:] leads to a string with a leading 0. When added then read back from the prefix map this leads to a different string, so it is never found. Use the simpler str(random.randint(a,b)) expression instead
* s4:ldb - Free the asynchronous resultMatthias Dieter Wallnöfer2009-08-141-0/+2
|
* s4: Better way to call "dom_sid_to_rid" from ldap.pyMatthias Dieter Wallnöfer2009-08-141-4/+2
|
* ldb: Don't break the standalone LDB build (operational module removed)Matthias Dieter Wallnöfer2009-08-111-2/+2
|
* s4:test for "primaryGroupToken"Matthias Dieter Wallnöfer2009-08-111-10/+58
| | | | | | | | Tests for the right behaviour of this introduced constructed attribute. Since we don't support the read-only-ness of those attributes yet, I commented some lines out. Also I had to add a function for python which converts domain SIDs in RIDs. And a small fix for the "groupType" test.
* s4:operational module - move and enhancementsMatthias Dieter Wallnöfer2009-08-112-326/+0
| | | | | | This moves the "operational" LDB module to the right place under "dsdb/samdb/ldb_modules" (suggested by abartlet) and enhances it for supporting dynamic generated "primaryGroupToken" for AD groups. This should fix bug #6466.
* raise the debug level for a common messageAndrew Tridgell2009-08-121-1/+1
| | | | | when a client disconnects we expect this to happen, so don't print an error each time
* fixed several places that unnecessarily take a reference to the event contextAndrew Tridgell2009-08-071-1/+1
| | | | | | | | | | | | | | | These references were triggering the ambiguous talloc_free errors from the recent talloc changes when the server is run using the 'standard' process model instead of the 'single' process model. I am aiming to move the build farm to use the 'standard' process model soon, as part of an effort to make our test environment better match the real deployment of Samba4. The references are not needed as the way that the event context is used is as the 'top parent', so when the event context is freed then all of the structures that were taking a reference to the event context were actually freed as well, thus making the references redundent.
* make sure we never look past the end of either string in ldb_comparison_fold()Andrew Tridgell2009-08-071-26/+44
| | | | | This fixes a bug in the samba3sam test with the python libraries as noticed by abartlet
* s4:ldb Make error message in rnd_name more usefulAndrew Bartlett2009-08-071-3/+9
|
* s4:ldb Cosmetic corrections in "rdn_name" moduleMatthias Dieter Wallnöfer2009-08-051-4/+4
|
* pyldb: Fix reference counting on ldb_message_elements, add extra typeJelmer Vernooij2009-08-051-1/+9
| | | | check.
* s4:ldb initialise e->values[i].length before use in python bindingsAndrew Bartlett2009-08-051-1/+1
|
* Add constAndrew Bartlett2009-08-041-1/+1
|
* s4:ldif_handlers Allow a binary nTsecurityDescriptor when parsing LDIFAndrew Bartlett2009-08-041-1/+17
| | | | | | | | Also allow a SDDL security descriptor, using the domain SID attached to the session (it will search for it during the LDIF parse if need be). Andrew Bartlett
* pyldb: Properly keep copies of Python string contents, rather thanJelmer Vernooij2009-08-041-9/+21
| | | | relying on reference leaks :-)
* pyldb: Raise proper exception when attempting to assign a string to a dnJelmer Vernooij2009-08-032-5/+24
| | | | attribute.
* s4:tls: avoid using talloc_reference() in tls_init_client()Stefan Metzmacher2009-07-311-6/+2
| | | | metze
* s4:tls: avoid using talloc_reference() in tls_init_server()Stefan Metzmacher2009-07-311-8/+1
| | | | metze
* DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.Jelmer Vernooij2009-07-301-7/+7
| | | | | Use py_talloc_reference in DCE/RPC code, fixes access to SAMR pipe.
* s4:tls Enable GnuTLS back to version 1.4 (an into the future)Andrew Bartlett2009-07-281-1/+1
| | | | | | We think we have the bug fixed. Andrew Bartlett
* s4:ldb: add support for the new Recycle Bin Feature LDAP controlsStefan Metzmacher2009-07-232-0/+68
| | | | | | | LDB_CONTROL_SHOW_RECYCLED_OID 1.2.840.113556.1.4.2064 LDB_CONTROL_SHOW_DEACTIVATED_LINK_OID 1.2.840.113556.1.4.2065 metze
* source4/lib/registry/patchfile.c(reg_diff_load): fixed possible resource leak.Slava Semushin2009-07-191-0/+1
| | | | | | | | File descriptor leaks when write(2) fails and we are returning from function. Found by cppcheck: [./source4/lib/registry/patchfile.c:319]: (error) Resource leak: fd
* Remove unnecessary include, update README.Jelmer Vernooij2009-07-192-4/+0
|
* Remove outdated status file about samba3 -> samba4 upgrade project.Jelmer Vernooij2009-07-191-68/+0
|
* Actually fill in ldb modules directory.Jelmer Vernooij2009-07-181-1/+1
|
* Remove pyldb_util and simply duplicate the 5-line function it contains,Jelmer Vernooij2009-07-185-53/+12
| | | | rather than creating a separate shared library for it.
* ldb: Display SHLD_FLAGS when building.Jelmer Vernooij2009-07-181-0/+1
|
* remove all '\n' from ldb_debugSumit Bose2009-07-1419-57/+58
|
* Test for schemaUpdateNow commandAnatoliy Atanasov2009-07-081-54/+126
|
* s4:ldb Rework use of talloc and ldif objects in python wrapperAndrew Bartlett2009-07-061-3/+18
| | | | | | | | | | The talloc hirarchy here was a bit odd - we would both steal the parsed ldif onto 'NULL', then reference it onto a python talloc wrapper. Now we just leave the reference, after we complete building the object. Andrew Bartlett
* s4:ldb Fix talloc hirarchy in LDIF parsing codeAndrew Bartlett2009-07-061-3/+3
| | | | | | | | | The problem here was that some parts of the ldb_message were still attached to the ldb_ldif structure, and when only the message was taken (and the ldif free'ed to reclaim memory) we refereced free'ed memory. Andrew Bartlett
* s4:ldb Allow rootdse module to build without ldb_private.hAndrew Bartlett2009-06-302-1/+2
| | | | | | | It seems quite reasonable to allow modules to re-initialise the set of cached DNs on the ldb context. Andrew Bartlett
* s4: dsdb Avoid using the internal ldb_private.h headerAndrew Bartlett2009-06-301-1/+2
| | | | | | | This job is not complete (the partition module remains a unfinished task), but now we do use the private ldb headers much less. Andrew Bartlett
* ldb: Properly handle NULL when copying attr lists.Andrew Kroeger2009-06-291-4/+4
| | | | | When copying an attribute list, ensure the list itself is not NULL before attempting to access elements of the list.
* s4:ldb Add test for integer normalisation behaviourAndrew Bartlett2009-06-191-0/+17
| | | | | | | This uses groupType as the example, but this actually applies to all integer types in AD. Andrew Bartlett
* Fixed some uninitialised variablesMatthias Dieter Wallnöfer2009-06-192-3/+3
| | | | I tried hard to not change the program logic. Should fix bug #6439.
* Correct handling of 32-bit integer attributes in SAMBA 4Matthias Dieter Wallnöfer2009-06-192-28/+60
| | | | | | | | | | - LDB handles now all 32-bit integer attributes correctly (also with overflows) according to the schema - LDAP backends handle the attributes "groupType", "userAccountControl" and "sAMAccountType" correctly. This handling doesn't yet use the schema but the conversion file "simple_ldap.map.c" which contains them hardcoded. Did also a refactoring of the conversion function there. - Bug #6136 should be gone
* Bump the ldb version and the version Samba4 requires.Andrew Bartlett2009-06-181-1/+1
| | | | | | | | We have made a lot of useful changes to LDB since the last realese, that Samba4 now relies on. This ensures that a build against a system LDB will only succeed against the right version. Andrew Bartlett
* Require the new tdb 1.1.5 (for performance reasons)Andrew Bartlett2009-06-181-1/+1
| | | | | | | | While tdb has not changed ABI in a way that requires this, we don't want Samba4 somehow built against the old version with performance problems on large, growing databases. Andrew Bartlett
* Fix resource leak in lib/ldb/tools/ldbmodify.cSlava Semushin2009-06-181-0/+1
| | | | Patch for bug #6389
* Fix syntax error in lib/ldb/ldb_sqlite3/base160.cSlava Semushin2009-06-181-1/+1
| | | | Patch for bug #6388
* LDB: Link against both tevent and tallocEric Sandall2009-06-181-1/+1
| | | | | | | Patch for bug #6269 When linking against tevent you also need to link against talloc. This patch fixes external/libevent.m4 to do so.
* s4: Call va_end() after all va_start()/va_copy() calls.Andrew Kroeger2009-06-181-0/+1
| | | | | | | | This corrects the issues reaised in bug #6129, and some others that were not originally identified. It also accounts for some code that was in the original bug report but appears to have since been made common between S3 and S4. Thanks to Erik Hovland <erik@hovland.org> for the original bug report.
* Fix build with system LDB.Jelmer Vernooij2009-06-181-1/+1
|
* pyldb: Fix three more (minor) memory leaks.Jelmer Vernooij2009-06-172-14/+42
|
* pyldb: Fix memory leak in Dn.get_parent().Jelmer Vernooij2009-06-171-2/+16
|
* pyldb: Fix memory leak in Dn.concat.Jelmer Vernooij2009-06-171-3/+12
|
* pyldb/tests: Use different dn's everywhere, to easily spot which test isJelmer Vernooij2009-06-171-49/+49
| | | | breaking in gdb.