summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap.c
diff options
context:
space:
mode:
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 325825e2..cc073412 100644
--- a/src/providers/ldap/sdap.c
+++ b/src/providers/ldap/sdap.c
@@ -994,6 +994,11 @@ int sdap_get_server_opts_from_rootdse(TALLOC_CTX *memctx,
talloc_strdup(opts->service_map,
opts->gen_map[SDAP_AT_ENTRY_USN].name);
}
+ if (!opts->sudorule_map[SDAP_AT_SUDO_USN].name) {
+ opts->sudorule_map[SDAP_AT_SUDO_USN].name =
+ talloc_strdup(opts->sudorule_map,
+ opts->gen_map[SDAP_AT_ENTRY_USN].name);
+ }
*srv_opts = so;
return EOK;