summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-06-07 15:53:49 +0200
committerMichael Adam <obnox@samba.org>2011-06-20 13:46:27 +0200
commit0f762734230e85fbc08d4343181ed061f78e053b (patch)
tree8a430084b52f04018363e1f185840861fdbace2b /source3
parentdc461cade5becec21f8d1f2bb74fcf1a977a5ec2 (diff)
downloadsamba-0f762734230e85fbc08d4343181ed061f78e053b.tar.gz
samba-0f762734230e85fbc08d4343181ed061f78e053b.tar.bz2
samba-0f762734230e85fbc08d4343181ed061f78e053b.zip
s3:idmap_autorid: fail initialization if the domain is not "*"
autorid can only be used as a backend for the default idmap configuration.
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/idmap_autorid.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c
index e9048d8484..f4ab754654 100644
--- a/source3/winbindd/idmap_autorid.c
+++ b/source3/winbindd/idmap_autorid.c
@@ -436,6 +436,13 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom)
NTSTATUS status;
uint32_t hwm;
+ if (!strequal(dom->name, "*")) {
+ DEBUG(0, ("idmap_autorid_initialize: Error: autorid configured "
+ "for domain '%s'. But autorid can only be used for "
+ "the default idmap configuration.\n", dom->name));
+ return NT_STATUS_INVALID_PARAMETER;
+ }
+
config = talloc_zero(dom, struct autorid_global_config);
if (!config) {
DEBUG(0, ("Out of memory!\n"));