summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-06-07 15:53:49 +0200
committerMichael Adam <obnox@samba.org>2011-06-07 19:13:18 +0200
commitcd8dc47bf17d2cdb1558dc6ab49320ba12af8f34 (patch)
tree2f776fba7f704f8dd5cd279b3d5b2b6acfe5595e /source3/winbindd
parent95d35dde9cecac120c0a9bcd06957cd3748b15a0 (diff)
downloadsamba-cd8dc47bf17d2cdb1558dc6ab49320ba12af8f34.tar.gz
samba-cd8dc47bf17d2cdb1558dc6ab49320ba12af8f34.tar.bz2
samba-cd8dc47bf17d2cdb1558dc6ab49320ba12af8f34.zip
s3:idmap_autorid: fail initialization if the domain is not "*"
autorid can only be used as a backend for the default idmap configuration. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Jun 7 19:13:18 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_autorid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c
index 6252c5d946..80d8ed1ec2 100644
--- a/source3/winbindd/idmap_autorid.c
+++ b/source3/winbindd/idmap_autorid.c
@@ -438,6 +438,14 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom)
TALLOC_CTX *frame = talloc_stackframe();
char *config_option = NULL;
+ 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));
+ status = NT_STATUS_INVALID_PARAMETER;
+ goto error;
+ }
+
config = TALLOC_ZERO_P(frame, struct autorid_global_config);
if (!config) {
DEBUG(0, ("Out of memory!\n"));