diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-13 10:15:09 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-13 17:01:59 +0200 |
commit | 392dce02615e446b3c73dfb8b4e0a19ebb86f914 (patch) | |
tree | 67b19ae7e9e79f6aae71287f538741d11cb4c1e2 | |
parent | 31c1f3a2e699fad82258aab83d756e1e7ca923a2 (diff) | |
download | sssd-392dce02615e446b3c73dfb8b4e0a19ebb86f914.tar.gz sssd-392dce02615e446b3c73dfb8b4e0a19ebb86f914.tar.bz2 sssd-392dce02615e446b3c73dfb8b4e0a19ebb86f914.zip |
LDAP: Always initialize idmap object
https://fedorahosted.org/sssd/ticket/1922
Since we always store the SID now, we need to always initialize the ID
mapping object in LDAP provider as well. Some users might want to
configure the LDAP provider with ID mapping, not the AD provider itself.
-rw-r--r-- | src/providers/ldap/ldap_init.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/providers/ldap/ldap_init.c b/src/providers/ldap/ldap_init.c index 2e30c37e..0884a85c 100644 --- a/src/providers/ldap/ldap_init.c +++ b/src/providers/ldap/ldap_init.c @@ -155,11 +155,9 @@ int sssm_ldap_id_init(struct be_ctx *bectx, goto done; } - if (dp_opt_get_bool(ctx->opts->basic, SDAP_ID_MAPPING)) { - /* Set up the ID mapping object */ - ret = sdap_idmap_init(ctx, ctx, &ctx->opts->idmap_ctx); - if (ret != EOK) goto done; - } + /* Set up the ID mapping object */ + ret = sdap_idmap_init(ctx, ctx, &ctx->opts->idmap_ctx); + if (ret != EOK) goto done; ret = sdap_id_setup_tasks(ctx); if (ret != EOK) { |