summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db/sysdb_ops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 3cf9d903f..4d7b2abd8 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -1422,6 +1422,12 @@ int sysdb_get_new_id(struct sss_domain_info *domain,
return ENOMEM;
}
+ if (strcasecmp(domain->provider, "local") != 0) {
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ "Generating new ID is only supported in the local domain!\n");
+ return ENOTSUP;
+ }
+
base_dn = sysdb_domain_dn(tmp_ctx, domain);
if (!base_dn) {
talloc_zfree(tmp_ctx);