How to process schemaUpdateNow ldap request

Stefan (metze) Metzmacher metze at samba.org
Wed Jul 2 08:23:46 GMT 2008


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: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20080702/9bc9d549/signature.bin


More information about the samba-technical mailing list