summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-05-02 19:15:17 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-06-03 13:37:03 +0200
commitbd8cf980dc2e7035a8ce893df4a8ccaf9bbf11ad (patch)
treec93e040dba2c6a939f8b3aa116de787a6ff3cb81 /src/db
parent29bd4bedf5ce696e78e98f1dcb54926bbec48350 (diff)
downloadsssd-bd8cf980dc2e7035a8ce893df4a8ccaf9bbf11ad.tar.gz
sssd-bd8cf980dc2e7035a8ce893df4a8ccaf9bbf11ad.tar.xz
sssd-bd8cf980dc2e7035a8ce893df4a8ccaf9bbf11ad.zip
SYSDB: return SYSDB_NAME from sysdb_initgroups
For the GetGroupsList function it would be handy to get the user names as well with a single sysdb_initgroups() call. This patch adds SYSDB_NAME to the default attribute list. Reviewed-by: Pavel Březina <pbrezina@redhat.com> (cherry picked from commit cf2cc44d6293165379d6470b8bf6bb6a87d62b31)
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index 5bd2c50eb..aad641dca 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -195,6 +195,7 @@
SYSDB_DEFAULT_ATTRS, \
SYSDB_ORIG_DN, \
SYSDB_SID_STR, \
+ SYSDB_NAME, \
NULL}
#define SYSDB_TMPL_USER SYSDB_NAME"=%s,"SYSDB_TMPL_USER_BASE