summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-10-02 18:10:39 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-10-20 16:15:26 +0200
commita983272f1afa8dbae3ecd4425b04649601732a71 (patch)
tree7a7d49377fd903e202718a5c76c43e0c1154b0a7 /src/db
parentafbe298d8d99c037056c1d3878812d98783309b0 (diff)
downloadsssd-a983272f1afa8dbae3ecd4425b04649601732a71.tar.gz
sssd-a983272f1afa8dbae3ecd4425b04649601732a71.tar.xz
sssd-a983272f1afa8dbae3ecd4425b04649601732a71.zip
sid2name: return name without views applied
Make sure that the original name of an object without any overrides applied is returned by sid2name requests. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb_ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 1d51119d7..c88ff9b4b 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -3507,6 +3507,7 @@ errno_t sysdb_search_object_by_sid(TALLOC_CTX *mem_ctx,
{
TALLOC_CTX *tmp_ctx;
const char *def_attrs[] = { SYSDB_NAME, SYSDB_UIDNUM, SYSDB_GIDNUM,
+ ORIGINALAD_PREFIX SYSDB_NAME,
SYSDB_OBJECTCLASS, NULL };
struct ldb_dn *basedn;
int ret;