summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb-samba
Commit message (Collapse)AuthorAgeFilesLines
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+11
|
* s4:dsdb Change dsdb_get_schema() callers to use new talloc argumentAndrew Bartlett2010-03-161-1/+1
| | | | | | | | This choses an appropriate talloc context to attach the schema too, long enough lived to ensure it does not go away before the operation compleates. Andrew Bartlett
* s4:ldif_handlers - Change "unsigned int" to "uint32_t" which fits better hereMatthias Dieter Wallnöfer2010-03-081-1/+1
|
* s4:ldif_handlers - Use "unsigned int" for counting purposesMatthias Dieter Wallnöfer2010-03-041-4/+4
| | | | | | I changed "uint32_t" to "unsigned int" since the LDB specification prescrives "unsigned (int)" for counter variables (number of attributes, number of values...).
* LDB related spelling fixes.Brad Hards2010-02-221-1/+1
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s4/ldif: Handle Schema:prefixMap blobs in W2K3 and W2K8Kamen Mazdrashki2010-02-011-6/+16
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/ldif: Better control on ldif_write_NDR() errors processingKamen Mazdrashki2010-02-011-6/+21
| | | | | | | Current implementation mask NDR_ errors implicitly. Thus the caller has no opportunity handle such an error. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-ldb: display security descriptors with correct SDL for known SIDsAndrew Tridgell2010-01-101-1/+1
| | | | This makes it much easier to compare SDs
* s4-ldb: added nice ldif display of 64 bit ranges for RIDsAndrew Tridgell2010-01-082-0/+119
|
* s4-dsdb: switched to using RMD_FLAGS instead of DELETED in extended DNsAndrew Tridgell2010-01-021-1/+1
| | | | This allows for more flags in the future
* s4-dsdb: use safe length limiting in string->integer conversionAndrew Tridgell2010-01-021-11/+35
| | | | | The ldap.py test suite could trigger a read past the end of the struct ldb_val buffer
* s4-dsdb: split RMD_USN into RMD_LOCAL_USN and RMD_ORIGINATING_USNAndrew Tridgell2010-01-021-1/+6
| | | | | | | | We need a separate RMD_LOCAL_USN to allow us to tell what attributes need to be sent in a getncchanges request. Thanks to Metze for pointing this out. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: display msDS-OptionalFeatureGUID as a GUIDAndrew Tridgell2009-12-181-0/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added new ldb_dn extended components for linked attributesAndrew Tridgell2009-12-141-0/+30
| | | | These will store linked attribute replication meta data
* s4-ldb: use GUID_to_ndr_blob()Andrew Tridgell2009-12-101-4/+2
|
* s4-ldb: simplify ldif handlers using new GUID functionsAndrew Tridgell2009-12-101-8/+9
|
* s4:provision - Removed dependency on full Samba 3 schema from FDSEndi S. Dewata2009-11-161-0/+1
|
* s4:dsdb Use new dsdb_dn code in LDB modules and Samba4 schemaAndrew Bartlett2009-11-121-0/+12
| | | | | | | | | | This converts the code from using the binary DN code in ldb_dn to using a special Samba-specfic wrapper around ldb_dn. We also use the dsdb_dn code for DN+Binary and DN+String comparisons (changed from treating them as Binary blobs) Andrew Bartlett
* s4:ldb-samba Use new ldb_any_comparison helper function in ldb-sambaAndrew Bartlett2009-11-121-41/+5
|
* lib/util Split data_blob_hex_string() into upper and lowerAndrew Bartlett2009-11-121-1/+1
| | | | | | | | | | | | Rather than have a repeat of the bugs we found at the plugfest where hexidecimal strings must be in upper or lower case in particular places, ensure that each caller chooses which case they want. This reverts most of the callers back to upper case, as things were before tridge's patch. The critical call in the extended DN code is of course handled in lower case. Andrew Bartlett
* s4:dsdb - Store SID as string in FDS.Endi S. Dewata2009-11-021-2/+2
|
* s4/drs: Propagate redefinition of drsuapi_DsReplicaOID into code baseKamen Mazdrashki2009-10-161-8/+29
| | | | | | | | | | | | | | The biggest change is that 'oid' field is transmited in binary format. Also the field name is changed to 'binary_oid' so that field format to be clear for callers. After those changes, Samba4 should work the way it works before - i.e. no added value here but we should not fail when partial-oid is part of prefixMap transmited from Win server. Also, thre is a bug in this patch - partial-binary-OIDs are not handled correctly. Partial-binary-OIDs received during replication will be encoded, but not handled correctly.
* ldb: fixed display of replUpToDateVectorAndrew Tridgell2009-10-151-1/+1
|
* Revert "s4:ldb-samba Use temp talloc contexts and talloc_steal avoid leaks."Andrew Tridgell2009-10-021-47/+12
| | | | This reverts commit 38f87f40bfd7892043d49009067ae28431279580.
* s4:ldb-samba Use temp talloc contexts and talloc_steal avoid leaks.Andrew Bartlett2009-10-021-12/+47
| | | | | | | We would use the mem_ctx for internal work, but previously we did not clean it up on exit. Andrew Bartlett
* s4:ldif_handlers Fix memory leak in objectCategory LDIF handlerAndrew Bartlett2009-09-231-0/+1
|
* s4-ldb: display an error if we can't decode a NDR blobAndrew Tridgell2009-09-191-1/+3
|
* s4/ldb: support NDR printing for 2 more replication typesAndrew Tridgell2009-09-082-0/+40
| | | | | print replUpToDateVector and replPropertyMetaData using NDR format if --show-binary is given.
* s4/ldb: allow prefixMap to be shown as NDRAndrew Tridgell2009-09-081-0/+8
|
* s4/ldb: allow printing ntSecurityDescriptor in fullAndrew Tridgell2009-09-081-33/+39
| | | | | print security descriptors in NDR format if --show-binary is given. This is easier to read than sddl format.
* s4/ldb: added ldif handler for repsFrom/repsToAndrew Tridgell2009-09-082-2/+57
| | | | | In normal usage this makes no difference, but if you add --show-binary then you can see the NDR printed out in the usual ndr_print_*() format
* s4: Make the int32 problem more clear - and fix another errorMatthias Dieter Wallnöfer2009-08-171-0/+4
|
* s4: Fixed the int32 datatype supportMatthias Dieter Wallnöfer2009-08-171-3/+3
| | | | Should finally fix bug #6136 ("groupType", "sAMAccountType" ... attributes).
* 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
* 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
* 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
* Fix build with system LDB.Jelmer Vernooij2009-06-181-1/+1
|
* major upgrade to the ldb attribute handlingAndrew Tridgell2009-04-021-0/+14
| | | | | | | | | | | | | | This is all working towards supporting the full WSPP schema without a major performance penalty. We now use binary searches when looking up classes and attributes. We also avoid the loop loading the attributes into ldb, by adding a hook to override the ldb attribute search function in a module. The attributes can thus be loaded once, and then saved as part of the global schema. Also added support for a few more key attribute syntaxes, as needed for the full schema.
* s4:ldif_handlers: s/class/sclassStefan Metzmacher2009-02-021-4/+4
| | | | metze
* Explicitly include ldb_handlers.h where necessarySimo Sorce2009-01-301-0/+1
|
* Fix the mess with ldb includes.Simo Sorce2009-01-301-1/+1
| | | | | | | | Separate again the public from the private headers. Add a new header specific for modules. Also add service function for modules as now ldb_context and ldb_module are opaque structures for them.
* s4:ldb-samba: register samba specific extended dn handlersAndrew Bartlett2008-12-171-51/+138
| | | | | | | | | This provides the two extended DN handlers for the GUID and SID types, and makes the parsing more strict (where possible, it uses ndr_pull_struct_blob_all(), to cause an error if trailing data is found). Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:librpc/ndr: integrate NDR_MISC into LIBNDRStefan Metzmacher2008-11-161-1/+1
| | | | metze
* fixed the GUID and objectSID canonicalisation functionsAndrew Tridgell2008-08-221-1/+3
| | | | (This used to be commit 115053ea7e70b067e7873668ed83f1f10908287d)
* Don't walk past the end of ldb values.Andrew Bartlett2008-08-211-5/+10
| | | | | | | | | This is a partial fix towards bugs due to us walking past the end of what we think are strings in ldb. There is much more work to do in this area. Andrew Bartlett (This used to be commit 5805a9a8f35fd90fa4f718f73534817fa3bbdfd2)
* Handle error cases in attribute handlers better.Andrew Bartlett2008-08-211-8/+18
| | | | | | | | We don't need to just bail, for all these error cases there is still real result that can be made - just fall back to binary copy/compare. Andrew Bartlett (This used to be commit 6aa5dde2aa9a5f070871ecc117e44bfcad363459)
* Don't hardcode attributes to be treated as a DNAndrew Bartlett2008-08-211-14/+1
| | | | | | | | | | This is now handled by reading the schema into the attributes. Also, when we do set something here, mark it as FIXED, so the schema and any reload from @ATTRIBUTES won't touch it. Andrew Bartlett (This used to be commit 7b24701335398ece3d1b3a20cf5f1174500b16ce)
* Note the ldb syntax for attribute syntaxes in the table.Andrew Bartlett2008-08-183-10/+30
| | | | | | | | | | | This includes additional Samba-specific syntaxes made available from the ldif_handlers code. This commit also changes some table to use #defines, to ensure consistancy in other parts of the code. Andrew Bartlett (This used to be commit e26a5efd9a580ed3728e1f449e367b1cd4a73b5f)