1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3:idmap_autorid: fail initialization if the domain is not "*"

autorid can only be used as a backend for the default idmap configuration.
This commit is contained in:
Michael Adam 2011-06-07 15:53:49 +02:00
parent dc461cade5
commit 0f76273423

View File

@ -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"));