The Samba-Bugzilla – Attachment 13680 Details for
Bug 13078
dsdb_search() don't return nCName attribute for trusted domain
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
one-way links for explicitly requested attributes
0001-extended_dn_out-skip-one-way-links-for-explicitly-re.patch (text/plain), 1.41 KB, created by
Evgeny Sinelnikov
on 2017-10-12 07:50:57 UTC
(
hide
)
Description:
one-way links for explicitly requested attributes
Filename:
MIME Type:
Creator:
Evgeny Sinelnikov
Created:
2017-10-12 07:50:57 UTC
Size:
1.41 KB
patch
obsolete
>From 149d9d82db4d030832dcb050e3c4e128820e089d Mon Sep 17 00:00:00 2001 >From: Evgeny Sinelnikov <sin@altlinux.org> >Date: Thu, 12 Oct 2017 07:26:51 +0300 >Subject: [PATCH] extended_dn_out: skip one-way links for explicitly requested > attributes (#13078) > >Signed-off-by: Evgeny Sinelnikov <sin@altlinux.org> >--- > source4/dsdb/samdb/ldb_modules/extended_dn_out.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c >index ad4603f..2664251 100644 >--- a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c >+++ b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c >@@ -601,9 +601,11 @@ static int extended_callback(struct ldb_request *req, struct ldb_reply *ares, > > /* note that we don't fixup objectCategory as > it should not be possible to move >- objectCategory elements in the schema */ >+ objectCategory elements in the schema, >+ also we don't fixup explicitly requested attributes */ > if (attribute->one_way_link && >- strcasecmp(attribute->lDAPDisplayName, "objectCategory") != 0) { >+ strcasecmp(attribute->lDAPDisplayName, "objectCategory") != 0 && >+ (!req->op.search.attrs || !is_attr_in_list(req->op.search.attrs, attribute->lDAPDisplayName))) { > bool remove_value; > ret = fix_one_way_link(ac, dn, is_deleted_objects, &remove_value, > attribute->linkID); >-- >2.10.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
abartlet
:
review-
Actions:
View
Attachments on
bug 13078
: 13680 |
13688