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

384 Commits

Author SHA1 Message Date
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
Stefan Metzmacher
bfb0c04dff r20416: fix compiler warnings
metze
2007-10-10 14:30:32 -05:00
Stefan Metzmacher
437db39079 r20415: add a function to get the lDAPDisplayName for an objectClass
or attribute

metze
2007-10-10 14:30:30 -05:00
Stefan Metzmacher
e6a24c2172 r20410: add functions to access dsdb_attributes and dsdb_classes by oid, uint32_id or ldap name
they will be optimized uing binary searches later...

metze
2007-10-10 14:30:25 -05:00
Stefan Metzmacher
d042aac3f7 r20409: load the attribute syntax for the attribute
metze
2007-10-10 14:30:25 -05:00
Stefan Metzmacher
af78a86d2c r20408: fix cut'n'paste error
metze
2007-10-10 14:30:25 -05:00
Stefan Metzmacher
f860dd2dca r20407: the oMObjectClass values are not padded to 10 bytes!
metze
2007-10-10 14:30:24 -05:00
Stefan Metzmacher
1a21eb7000 r20405: add an array with attribute syntexes
metze
2007-10-10 14:30:24 -05:00
Andrew Bartlett
bf7ab75875 r20398: Revert this patch, which caused failures in the samba3sam.js build farm test.
The interaction of the samldb.c module and this function is complex...

Andrew Bartlett
2007-10-10 14:30:22 -05:00
Andrew Bartlett
a6bbfebf52 r20395: Decode more unknowns in the IDL. These are language and codepage IDs!
Try to pass more of the CrackNames test.  Make the test quieter.

Andrew Bartlett
2007-10-10 14:30:22 -05:00
Stefan Metzmacher
5440c0a99f r20382: systemAuxiliaryClass and auxiliaryClass are also multivalued attributes
metze
2007-10-10 14:30:20 -05:00
Stefan Metzmacher
5f0da4a3ae r20379: - make sure the schema info blob is 21 bytes long
- add a function to verify the incoming mapping and schema info

metze
2007-10-10 14:30:20 -05:00
Andrew Bartlett
3c5ff4e687 r20377: Rework the CrackNames implementation to handle some of the BUILTIN sid
cases.

Adjust our 'look for this value in this attribute, of the result'
function samdb_find_attribute() to use the correct comparison
function, no matter what that may be.

Andrew Bartlett
2007-10-10 14:30:19 -05:00
Andrew Bartlett
629c72f0c2 r20375: Work to improve our CrackNames implementation.
We now correctly handle the canonical name as a CrackNames source, for
more than just the DNS domain object.

Andrew Bartlett
2007-10-10 14:30:18 -05:00
Stefan Metzmacher
bfb7756bb0 r20331: the last entry in the oid mapping array which starts with 0xFF
is the content of the schemaInfo attribute of the schema head object

metze
2007-10-10 14:29:42 -05:00
Stefan Metzmacher
80b8a96824 r20321: fix the samdb_partitions_dn() and samdb_sites_dn() calls,
to use the new samdb_config_dn() call.

also add samdb_ wrappers for samdb_schema_dn() and samdb_config_dn()

metze
2007-10-10 14:29:40 -05:00
Andrew Bartlett
2eb9e6445c r20315: Implement the server side of DsGetDomainControllerInfo. This is a
supprisingly complex call...

It turns out that the in/out parameter 'level' is not in/out, but set
seperatly by the server-side code from r->req.req1.level.

This commit also breaks out some common code from samldb into samdb.

Andrew Bartlett
2007-10-10 14:29:38 -05:00