How to process schemaUpdateNow ldap request

Anatoliy Atanasov anatoliy.atanasov at postpath.com
Mon Jul 7 09:15:06 GMT 2008


Hi metze,

I implemented the dsdb_create_prefix_mapping function and added code to handle schemaUpdateNow in rootdse (attachment). I used ldb_extended() and added new operation for it. 
The call to ldb_extended() never reached the schema_fsmo_extended(). 
The returned error is "Unable to find backend operation for extended". And the module variable in rootdse_modify() doesn't contain in its list the schema_fsmo module.

Regards, 
Anatoliy

----- Original Message -----
> From: Stefan (metze) Metzmacher <metze at samba.org>
> To: Anatoliy Atanasov <anatoliy.atanasov at postpath.com>
> Cc: abartlet at samba.org, idra at samba.org, samba-technical at lists.samba.org
> Sent: Wednesday, July 2, 2008 11:23:57 AM GMT+0200 Europe;Athens
> Subject: Re: How to process schemaUpdateNow ldap request

> > Anatoliy Atanasov schrieb:
> > I did the patch for the dn, and no problem with that now
> > --------------------------------------------------------
> > diff --git a/source/ldap_server/ldap_backend.c 
> b/source/ldap_server/ldap_backend.c
> > index 9047773..2193c98 100644
> > --- a/source/ldap_server/ldap_backend.c
> > +++ b/source/ldap_server/ldap_backend.c
> > @@ -348,7 +348,7 @@ static NTSTATUS ldapsrv_ModifyRequest(struct 
> ldapsrv_call *call)
> >         NT_STATUS_HAVE_NO_MEMORY(local_ctx);
> > 
> >         dn = ldb_dn_new(local_ctx, samdb, req->dn);
> > -       VALID_DN_SYNTAX(dn, 1);
> > +       VALID_DN_SYNTAX(dn, 0);
> > 
> >         DEBUG(10, ("ModifyRequest: dn: [%s]\n", req->dn));
> > ---------------------------------------------------------
> > There is another error now:
> >      "additional info: attribute schemaUpdateNow is not a valid 
> attribute in schema"
> > That happens in dsdb\samdb\ldb_modules\objectclass.c: fix_attributes 
> function
> 
> you need to catch this in the rootdse module and pass down a special
> extented operation request down to the schema_fsmo module, so that the
> checks are bypassed.
> 
> metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.prefix_mapping+schemaUpdateNow
Type: application/octet-stream
Size: 7393 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080707/2806ead9/patch.obj


More information about the samba-technical mailing list