summaryrefslogtreecommitdiff
path: root/src/providers/ldap/sdap.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-01-28 13:32:32 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-01-31 09:37:41 -0500
commite2925c2d7d10cbb51098402233784044168f1a77 (patch)
tree989510288246bb597b308b695c131cc270fe9f6e /src/providers/ldap/sdap.c
parent796463906a54e259bd5b582ce84af4297a58eafc (diff)
downloadsssd-e2925c2d7d10cbb51098402233784044168f1a77.tar.gz
sssd-e2925c2d7d10cbb51098402233784044168f1a77.tar.bz2
sssd-e2925c2d7d10cbb51098402233784044168f1a77.zip
LDAP: Add enumeration support for services
Diffstat (limited to 'src/providers/ldap/sdap.c')
-rw-r--r--src/providers/ldap/sdap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c
index ba1c7911..8a118150 100644
--- a/src/providers/ldap/sdap.c
+++ b/src/providers/ldap/sdap.c
@@ -925,6 +925,11 @@ int sdap_get_server_opts_from_rootdse(TALLOC_CTX *memctx,
talloc_strdup(opts->group_map,
opts->gen_map[SDAP_AT_ENTRY_USN].name);
}
+ if (!opts->service_map[SDAP_AT_SERVICE_USN].name) {
+ opts->service_map[SDAP_AT_SERVICE_USN].name =
+ talloc_strdup(opts->service_map,
+ opts->gen_map[SDAP_AT_ENTRY_USN].name);
+ }
*srv_opts = so;
return EOK;