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:
parent
dc461cade5
commit
0f76273423
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user