|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
RE: prefixMap refactoringHi,
Here is another portion of patches for prefixMap. I think I am almost done with this (finally). There are few things to be done shortly: - clean up the code from unused functions and structures; - refactor code against Samba-Coding-Style guide (thanks Metze for pointing that out) All the patches could be found in a git repo also: http://repo.or.cz/w/Samba/kamenim.git?a=shortlog;h=refs/heads/drsuapi_prefixmap_wip Please comment. BR, Kamen Mazdrashki kamen.mazdrashki@... http://repo.or.cz/w/Samba/kamenim.git ------------------------------------- CISCO SYSTEMS BULGARIA EOOD http://www.cisco.com/global/BG/ |
|
|
|
|
|
|
|
|
RE: prefixMap refactoringOn Sat, 2009-10-31 at 00:22 +0200, Kamen Mazdrashki wrote:
> On Thu, Oct 29, 2009 at 23:36, Kamen Mazdrashki <kamen.mazdrashki@...> wrote: > > Please find attached patches to completely refactor prefixMap > > implementation. > > 'make test' passes - i.e. it fails the same way when 'make test' > > is run on current master. > > I am now running 'make lcov' tests - hope that test coverage > > has increased by at least a 1% (actually I hope it is more than that). > I've tried several times to run 'make lcov' - no coverage data > is produced. Neither with my branch nor with the 'master'. Am I doing > something wrong or 'make lcov' does not produce data if 'make test' fails? > > > Next is to run simple 'net vampire' test against w2k3 with Exchange > > installed - this test doesn't pass currently as prefixMap contains > > few partial-OIDs. > Same thing here too. I've tried it several times - both with my > dev branch and 'master' -> no success. 'net vampire' fails when it > comes to apply schema as it seems to me. > You may find d6 log at: http://pastebin.com/m318670c7 side. You should see about extending the NTSTATUS map in the same way you extended the Windows error map. That might give you a clue as to the server-side error. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Cisco Inc. |
|
|
RE: prefixMap refactoringOn Sat, 2009-10-31 at 00:22 +0200, Kamen Mazdrashki wrote:
> On Thu, Oct 29, 2009 at 23:36, Kamen Mazdrashki <kamen.mazdrashki@...> wrote: > > Please find attached patches to completely refactor prefixMap > > implementation. > > 'make test' passes - i.e. it fails the same way when 'make test' > > is run on current master. > > I am now running 'make lcov' tests - hope that test coverage > > has increased by at least a 1% (actually I hope it is more than that). > I've tried several times to run 'make lcov' - no coverage data > is produced. Neither with my branch nor with the 'master'. Am I doing > something wrong or 'make lcov' does not produce data if 'make test' fails? > > Next is to run simple 'net vampire' test against w2k3 with Exchange > > installed - this test doesn't pass currently as prefixMap contains > > few partial-OIDs. > Same thing here too. I've tried it several times - both with my > dev branch and 'master' -> no success. 'net vampire' fails when it > comes to apply schema as it seems to me. > You may find d6 log at: http://pastebin.com/m318670c7 That error is interesting: NT code 0xc00020e0 (from MS-ERREF): 0x000020E0 Failed to obtain the required syntax for the ERROR_DS_ATT_SCHEMA_REQ_SYNTAX attribute schema. I wonder why the remote server doesn't like us? Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Cisco Inc. |
|
|
Re: prefixMap refactoringAndrew Bartlett schrieb:
> On Sat, 2009-10-31 at 00:22 +0200, Kamen Mazdrashki wrote: >> On Thu, Oct 29, 2009 at 23:36, Kamen Mazdrashki <kamen.mazdrashki@...> wrote: >>> Please find attached patches to completely refactor prefixMap >>> implementation. >>> 'make test' passes - i.e. it fails the same way when 'make test' >>> is run on current master. >>> I am now running 'make lcov' tests - hope that test coverage >>> has increased by at least a 1% (actually I hope it is more than that). >> I've tried several times to run 'make lcov' - no coverage data >> is produced. Neither with my branch nor with the 'master'. Am I doing >> something wrong or 'make lcov' does not produce data if 'make test' fails? > > Honestly, I'm not sure. > >>> Next is to run simple 'net vampire' test against w2k3 with Exchange >>> installed - this test doesn't pass currently as prefixMap contains >>> few partial-OIDs. >> Same thing here too. I've tried it several times - both with my >> dev branch and 'master' -> no success. 'net vampire' fails when it >> comes to apply schema as it seems to me. >> You may find d6 log at: http://pastebin.com/m318670c7 > > That error is interesting: > > NT code 0xc00020e0 > (from MS-ERREF): > 0x000020E0 Failed to obtain the required syntax for > the > ERROR_DS_ATT_SCHEMA_REQ_SYNTAX attribute schema. metze |
|
|
Re: prefixMap refactoringOn Tue, 2009-11-03 at 11:56 +0100, Stefan (metze) Metzmacher wrote:
> Andrew Bartlett schrieb: > > On Sat, 2009-10-31 at 00:22 +0200, Kamen Mazdrashki wrote: > >> On Thu, Oct 29, 2009 at 23:36, Kamen Mazdrashki <kamen.mazdrashki@...> wrote: > >>> Please find attached patches to completely refactor prefixMap > >>> implementation. > >>> 'make test' passes - i.e. it fails the same way when 'make test' > >>> is run on current master. > >>> I am now running 'make lcov' tests - hope that test coverage > >>> has increased by at least a 1% (actually I hope it is more than that). > >> I've tried several times to run 'make lcov' - no coverage data > >> is produced. Neither with my branch nor with the 'master'. Am I doing > >> something wrong or 'make lcov' does not produce data if 'make test' fails? > > > > Honestly, I'm not sure. > > > >>> Next is to run simple 'net vampire' test against w2k3 with Exchange > >>> installed - this test doesn't pass currently as prefixMap contains > >>> few partial-OIDs. > >> Same thing here too. I've tried it several times - both with my > >> dev branch and 'master' -> no success. 'net vampire' fails when it > >> comes to apply schema as it seems to me. > >> You may find d6 log at: http://pastebin.com/m318670c7 > > > > That error is interesting: > > > > NT code 0xc00020e0 > > (from MS-ERREF): > > 0x000020E0 Failed to obtain the required syntax for > > the > > ERROR_DS_ATT_SCHEMA_REQ_SYNTAX attribute schema. > > Isn't that a local error? not have come from Samba code. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Cisco Inc. |
|
|
Re: prefixMap refactoringOn Wed, Nov 4, 2009 at 00:23, Andrew Bartlett <abartlet@...> wrote:
> On Tue, 2009-11-03 at 11:56 +0100, Stefan (metze) Metzmacher wrote: >> Andrew Bartlett schrieb: >> > On Sat, 2009-10-31 at 00:22 +0200, Kamen Mazdrashki wrote: >> >> On Thu, Oct 29, 2009 at 23:36, Kamen Mazdrashki <kamen.mazdrashki@...> wrote: >> >>> Next is to run simple 'net vampire' test against w2k3 with Exchange >> >>> installed - this test doesn't pass currently as prefixMap contains >> >>> few partial-OIDs. >> >> Same thing here too. I've tried it several times - both with my >> >> dev branch and 'master' -> no success. 'net vampire' fails when it >> >> comes to apply schema as it seems to me. >> >> You may find d6 log at: http://pastebin.com/m318670c7 >> > >> > That error is interesting: >> > >> > NT code 0xc00020e0 >> > (from MS-ERREF): >> > 0x000020E0 Failed to obtain the required syntax for >> > the >> > ERROR_DS_ATT_SCHEMA_REQ_SYNTAX attribute schema. >> >> Isn't that a local error? It happens because dsdb_attribute_from_drsuapi()->dsdb_schema_setup_ldb_schema_attribute() fails to find the attribute (attr->syntax->ldb_syntax is NULL). Attribute is (it is an Exchange attribute): cn = "ms-Exch-Auth-Orig", lDAPDisplayName = "authOrig", attributeID_oid = "1.2.840.113556.1.2.129", attributeSyntax_oid = "2.5.5.7", oMSyntax = 127, I guess it is because we don't have it described in: schema_syntax.c: dsdb_syntaxes[] Metze, do I just need to add Exchange syntaxes in dsdb_syntaxes[] map? > > Given we don't have a #define for the error, I was presuming it could > not have come from Samba code. > We don't have #define for this error because it is a WERROR code, while libnet_BecomeDC() is expected to return NTSTATUS. I will figure out that tomorrow though. It should be translated to an NTSTATUS error code right (although I am not sure this WERROR could be mapped to an NTSTATUS without information loss). Oh, forgot to mention -> I am debugging this 'drsuapi_prefixmap_wip' branch merged. CU, Kamen Mazdrashki kamen.mazdrashki@... http://repo.or.cz/w/Samba/kamenim.git ------------------------------------- CISCO SYSTEMS BULGARIA EOOD http://www.cisco.com/global/BG/ |
|
|
Re: prefixMap refactoringKamen Mazdrashki schrieb:
> On Wed, Nov 4, 2009 at 00:23, Andrew Bartlett <abartlet@...> wrote: >> On Tue, 2009-11-03 at 11:56 +0100, Stefan (metze) Metzmacher wrote: >>> Andrew Bartlett schrieb: >>>> On Sat, 2009-10-31 at 00:22 +0200, Kamen Mazdrashki wrote: >>>>> On Thu, Oct 29, 2009 at 23:36, Kamen Mazdrashki <kamen.mazdrashki@...> wrote: >>>>>> Next is to run simple 'net vampire' test against w2k3 with Exchange >>>>>> installed - this test doesn't pass currently as prefixMap contains >>>>>> few partial-OIDs. >>>>> Same thing here too. I've tried it several times - both with my >>>>> dev branch and 'master' -> no success. 'net vampire' fails when it >>>>> comes to apply schema as it seems to me. >>>>> You may find d6 log at: http://pastebin.com/m318670c7 >>>> That error is interesting: >>>> >>>> NT code 0xc00020e0 >>>> (from MS-ERREF): >>>> 0x000020E0 Failed to obtain the required syntax for >>>> the >>>> ERROR_DS_ATT_SCHEMA_REQ_SYNTAX attribute schema. >>> Isn't that a local error? > It is us to return this error. > It happens because > dsdb_attribute_from_drsuapi()->dsdb_schema_setup_ldb_schema_attribute() > fails to find the attribute (attr->syntax->ldb_syntax is NULL). > Attribute is (it is an Exchange attribute): > cn = "ms-Exch-Auth-Orig", > lDAPDisplayName = "authOrig", > attributeID_oid = "1.2.840.113556.1.2.129", > attributeSyntax_oid = "2.5.5.7", > oMSyntax = 127, > > I guess it is because we don't have it described in: > schema_syntax.c: dsdb_syntaxes[] > > Metze, do I just need to add Exchange syntaxes in dsdb_syntaxes[] map? but don't implement all of them. All attributeSyntax 2.5.5.7 and oMSyntax: 127 have a oMObjectClass to identify the exact syntax. Maybe windows sets this automaticly if not given... metze |
| Free embeddable forum powered by Nabble | Forum Help |