1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-25 00:23:52 +03:00
Commit Graph

400 Commits

Author SHA1 Message Date
Stefan Metzmacher
b7f681a8a1 r20733: add a function to load the oid mappings from ldb_val's
metze
2007-10-10 14:40:34 -05:00
Stefan Metzmacher
2e79863d54 r20729: add a version number to struct dsdb_extended_replicated_objects
metze
2007-10-10 14:40:33 -05:00
Stefan Metzmacher
4380cc9ed6 r20728: the DSDB_CONTROL_REPLICATED_OBJECT_OID control isn't used anymore
because we now use DSDB_EXTENDED_REPLICATED_OBJECTS_OID extended operation

metze
2007-10-10 14:40:32 -05:00
Stefan Metzmacher
262e42123d r20727: implement basic merging of replicated objects when it already exist
in the ldb

metze
2007-10-10 14:40:32 -05:00
Stefan Metzmacher
0ecb07e052 r20726: - only add the rdn attribute and it's meta_data when the 'name' attribute is there
- add the values for objectGUID and whenChanged inside the ldb module,
  so that the ldb module has only replicated attributes as input

metze
2007-10-10 14:40:32 -05:00
Stefan Metzmacher
fbb1f85e32 r20716: add a dsdb_cache ldb module which will load the dsdb_schema and other things
on startup into memory structures in future.

metze
2007-10-10 14:40:31 -05:00
Stefan Metzmacher
cd654f20e1 r20713: sort the cursors in replUpToDateVector by source_dsa_invocation_id,
w2k3 seems to do the same.

It's later useful, when we would have a large array
be could use a binary search

metze
2007-10-10 14:40:30 -05:00
Stefan Metzmacher
665d8f9626 r20710: update or create the "repsFrom" values after applying replicated objects
metze
2007-10-10 14:40:30 -05:00
Stefan Metzmacher
a31e017e53 r20709: pass a repsFromTo1 struct down as it contains all needed info for the source dsa
and the highwater mark vector

metze
2007-10-10 14:40:29 -05:00
Stefan Metzmacher
c9e7a58f6a r20705: store the "replUpToDateVector" attribute in DSDB_EXTENDED_REPLICATED_OBJECTS
metze
2007-10-10 14:40:28 -05:00
Stefan Metzmacher
c271ad824f r20704: add functions to get and set the ntds objectGUID and invocationId
metze
2007-10-10 14:40:28 -05:00
Stefan Metzmacher
4012e54ef2 r20703: fix minor memory leak
metze
2007-10-10 14:40:28 -05:00
Stefan Metzmacher
165ff94b8a r20682: make the dsdb_extended_replicated_objects_commit() interface a bit more useful,
so that we can apply the schema partition objects with one call

metze
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
da4ff0e7cc r20681: implement the DSDB_EXTENDED_REPLICATED_OBJECTS operation.
the merging of existing objects is not implemented yet...

there are a few ifdef REPLMD_FULL_ASYNC because we need to workarouns
ldb's async infrastructure (which don't handle full async sub requests nicely)

metze
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
d5db31cde2 r20680: prepare the helper functions for applying replicated objects
to pass all needed info to the repl_meta_data module

metze
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
88051a82c4 r20679: make the init_handle stuff a bit easier and get rid of really ugly talloc_get_type()
usage

simo: if you change more modules, please include also this change

metze
2007-10-10 14:40:20 -05:00
Stefan Metzmacher
48d568a75b r20629: add a wrapper function for ldb_extended(ldb, DSDB_EXTENDED_REPLICATED_OBJECTS_OID, out, &ext_res);
which prepares the replicated objects, the repl_meta_data ldb module
will then add the uSNCreated, uSNChanged and some other things and will apply
the objects to the partition specific ldb

metze
2007-10-10 14:37:17 -05:00
Andrew Bartlett
5aa2195ec2 r20622: Add in a hack to avoid permitting searches on the value of protected
attributes.

Andrew Bartlett
2007-10-10 14:37:16 -05:00
Stefan Metzmacher
0ed53c6d0f r20599: - forward extended operations in the partitions module
- by default the operations goes to all partitions
- but some wellkown ones will go to just one partition
  (DSDB_EXTENDED_REPLICATED_OBJECTS_OID for now)

I'll soon change the partitions module so that it'll attach a
DSDB_CONTROL_PARTITION_CONTEXT_OID control to give
the repl_meta_data or other partition specific modules a chance to
to know for which partition it should work.

metze
2007-10-10 14:37:12 -05:00
Stefan Metzmacher
ef3b325db0 r20587: prepare the DSDB_EXTENDED_REPLICATED_OBJECTS_OID handling
metze
2007-10-10 14:37:08 -05:00
Stefan Metzmacher
a4d5e0126c r20580: pass the DSDB_CONTROL_REPLICATED_OBJECT_OID with the ldb_add request
when applying replicated objects.

the samldb module ignores such requests now...
and the repl_meta_data module has different functions
for the replicated and originating cases...

metze
2007-10-10 14:37:06 -05:00
Stefan Metzmacher
2e054be8e0 r20576: add functions to get and set dsdb_schema on the ldb context
metze
2007-10-10 14:37:05 -05:00
Stefan Metzmacher
46df7ff6e5 r20529: very, very ugly...
But this is currently needed to make regpatch linking in
the dsdb/schema/schema_*.o object files.

the problem is that the linker doesn't find any references to public symbols
in this files and removes them from the link list.

gnu ld has a --whole-archive option, but it seems to be not portable...

I think the solution with prelinking using 'ld -r' to create one object file
for a subsystem instead of using 'ar -rcs' to create an archive for a subsystem...

jelmer: any ideas about this problem?

metze
2007-10-10 14:36:49 -05:00
Stefan Metzmacher
c32ec0a100 r20523: match the lDAPDisplayName case insensitive
metze
2007-10-10 14:36:48 -05:00
Stefan Metzmacher
045ddfe1ec r20522: make a copy of the objectguid ldb module because:
- I'll add handling of replication meta data to it
  for orginating changes
- I'll pass replication meta data via a ldb control
  for applying replicated changes
- It will also update the replUpToDateVector attribute in
  in root object of the partition
- It will handle deleted records by adding the isDeleted=TRUE attribute
  and move them to the CN=Deleted Objects container of the partition
- I make a copy to play with the code without breaking
  the LDAP backend setup

metze
2007-10-10 14:36:47 -05:00
Stefan Metzmacher
d47c81923d r20504: we handle the attribute values always as DATA_BLOB's and
don't need the union with the attribute id as switch anymore

metze
2007-10-10 14:36:01 -05:00
Andrew Bartlett
600c7f1a68 r20492: Add in instructions/sample LDIF to setup Fedora DS as a backend.
Add a new module entrypoint to handle the new, interesting and
different mappings required for Fedora DS.

Andrew Bartlett
2007-10-10 14:35:59 -05:00
Stefan Metzmacher
4c2addf2dd r20484: get rid of the special case for DN strings
metze
2007-10-10 14:35:59 -05:00
Stefan Metzmacher
ececda44c7 r20477: get rid of the spcial case for unicode strings
metze
2007-10-10 14:35:57 -05:00
Stefan Metzmacher
13ccd405b5 r20476: get rid of extra case for uint32 values
metze
2007-10-10 14:35:57 -05:00
Stefan Metzmacher
b7ab1c0039 r20475: remove special case for GUID values
metze
2007-10-10 14:35:56 -05:00
Stefan Metzmacher
8d80629c5d r20473: remove special case for boolean values
metze
2007-10-10 14:35:55 -05:00
Stefan Metzmacher
56e17f4c0c r20472: add a comment for Object(Replica-Link), it's not clear that
the DATA_BLOB conversation functions are correct here...

metze
2007-10-10 14:35:55 -05:00
Stefan Metzmacher
49e6e88778 r20471: implement conversation functions for PRESENTATION_ADDRESS attribute syntax
metze
2007-10-10 14:35:55 -05:00
Stefan Metzmacher
4aa96d287e r20469: w2k3 handles String(Numeric), String(Printable), String(Teletex) and String(IA5)
as byte arrays without any constraints on the used bytes.

Only the rangeLower,rangeUpper constraints may reject invalid values

I have tested the following values:

internationalISDNNumber:1 => String(Numeric)
[000] E2 82 AC E2 82 AC E2 82  AC E2 82 AC E2 82 AC 31  ........ .......1
displayNamePrintable:1 => String(Printable)
[000] 68 65 6C 6F C3 B6 6C 6B  6A C3 B6 6C 6B 6A C3 B6  helo..lk j..lkj..
[010] 6C 6B 6A C3 B6 6C 6B 6A  C3 B6 6C 6B 6A C3 B6 6C  lkj..lkj ..lkj..l
[020] 6B 6A C3 B6 6C 6B 6A C3  B6 6C 6B 6A C3 B6 6C 6B  kj..lkj. .lkj..lk
[030] 6A C3 B6 6C 6B 6A C3 B6  6C 6B 6A C3 B6 6B 6A C3  j..lkj.. lkj..kj.
[040] B6 6C 6B 6A C3 B6 6A 38  37 70 6F 38 36 6F 37 36  .lkj..j8 7po86o76
[050] 34 65 64 74 7A 68 6F 69  6A 7A 6F 69 7A 6F 69 38  4edtzhoi jzoizoi8
[060] 69 37 36 72 35 75 66 75  35 72                    i76r5ufu 5r
networkAddress:1 => String(Teletex)
[000] 61 02 63 04 66 67 00 68  69                       a.c.fg.h i
msRADIUSCallbackNumber:1 => String(IA5)
[000] 61 02 63 04 66 67 00 68  69                       a.c.fg.h i

metze
2007-10-10 14:35:54 -05:00
Stefan Metzmacher
5a15c27488 r20466: I removed the _all only for tests and forgot to revert it
metze
2007-10-10 14:35:53 -05:00
Stefan Metzmacher
cc1798f85b r20463: implement conversation of NTTIME_UTC attribute syntax
Note: if we'll store the UTCTime string in our ldb we'll loose information...

metze
2007-10-10 14:35:52 -05:00
Stefan Metzmacher
ef477b314b r20461: this attribute syntaxes are not used for any attribute definitions in the w2k3 schema
metze
2007-10-10 14:35:51 -05:00
Andrew Bartlett
2959b4ba8b r20460: Simplfy the handling of password hashes in the samba3sam module.
Andrew Bartlett
2007-10-10 14:35:51 -05:00
Andrew Bartlett
14e2c877a8 r20455: Apply some of the patches from Martin Kuehl <kuehl@univention.de> to
better handle the Samba3 backend.

I've refactored the password format patch to use the routines in
lib/samba3/smbpasswd.c, which has required me to move this into a
seperate subsystem, due to recursive dependencies.

Andrew Bartlett
2007-10-10 14:35:49 -05:00
Stefan Metzmacher
9b31e8c1f7 r20453: add conversation for the DN_BINARY attribute syntax
the ldb_to_drsuapi version need to be completed, but it's
currently not used...

metze
2007-10-10 14:35:49 -05:00
Stefan Metzmacher
72d059e8ca r20452: add conversation for DN strings.
TODO: we need to implement linked attributes here,
      and keep the guid and sid

metze
2007-10-10 14:35:48 -05:00
Stefan Metzmacher
6383e56be8 r20450: implement conversation of unicode strings
metze
2007-10-10 14:35:47 -05:00
Stefan Metzmacher
44d09e3708 r20441: fix compiler warnings
metze
2007-10-10 14:30:38 -05:00
Stefan Metzmacher
0ce5a3471a r20440: some OID syntax attributes need special handling
metze
2007-10-10 14:30:38 -05:00
Stefan Metzmacher
1313b47745 r20439: this should be const pointers
metze
2007-10-10 14:30:37 -05:00
Stefan Metzmacher
76ae50389d r20437: add conversation function for OID's
metze
2007-10-10 14:30:37 -05:00
Stefan Metzmacher
d704c3fca8 r20435: implement the syntax conversation functions for most of the attribute syntaxes
metze
2007-10-10 14:30:36 -05:00
Stefan Metzmacher
c10e148770 r20425: a w2k3 forest doesn't have objects with attribute values
using the following attribute syntaxes by default:

String(Numeric)
String(Printable)
String(Teletex)
String(IA5)
String(UTC-Time)
String(Case Sensitive)
Object(OR-Name)
Object(Access-Point)
Object(DN-String)

metze
2007-10-10 14:30:35 -05:00
Stefan Metzmacher
17c52ed276 r20420: create infrastructure to convert attribute values from drsuapi to ldb
metze
2007-10-10 14:30:34 -05:00