summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_users.c
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2016-06-15 17:03:00 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-07-07 10:25:01 +0200
commit7cc19286547260350afed9ef7176712f8fc66652 (patch)
tree4a550e8a090de7025f14765920d94c6230566480 /src/providers/ldap/sdap_async_users.c
parente0243c7f3638c819051b7235097a0bb2d06374fb (diff)
downloadsssd-7cc19286547260350afed9ef7176712f8fc66652.tar.gz
sssd-7cc19286547260350afed9ef7176712f8fc66652.tar.xz
sssd-7cc19286547260350afed9ef7176712f8fc66652.zip
SDAP: Save user and group aliases qualified
When saving users or groups, qualify their names. Otherwise (currently netgroups), store a plain username. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers/ldap/sdap_async_users.c')
-rw-r--r--src/providers/ldap/sdap_async_users.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_users.c b/src/providers/ldap/sdap_async_users.c
index c74d2aa8a..e44c045b3 100644
--- a/src/providers/ldap/sdap_async_users.c
+++ b/src/providers/ldap/sdap_async_users.c
@@ -467,7 +467,8 @@ int sdap_save_user(TALLOC_CTX *memctx,
cache_timeout = dom->user_timeout;
- ret = sdap_save_all_names(user_name, attrs, dom, user_attrs);
+ ret = sdap_save_all_names(user_name, attrs, dom,
+ SYSDB_MEMBER_USER, user_attrs);
if (ret != EOK) {
DEBUG(SSSDBG_CRIT_FAILURE, "Failed to save user names\n");
goto done;