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

s3:idmap: make sure that the id mapping system is initialized for first access

This commit is contained in:
Michael Adam 2011-03-10 23:41:17 +01:00
parent 0109604f53
commit f50a25cc8d

View File

@ -273,6 +273,8 @@ static struct idmap_domain *idmap_init_named_domain(TALLOC_CTX *mem_ctx,
char *config_option;
const char *backend;
idmap_init();
config_option = talloc_asprintf(talloc_tos(), "idmap config %s",
domname);
if (config_option == NULL) {
@ -372,6 +374,8 @@ static struct idmap_domain *idmap_find_domain(const char *domname)
DEBUG(10, ("idmap_find_domain called for domain '%s'\n",
domname?domname:"NULL"));
idmap_init();
/*
* Always init the default domain, we can't go without one
*/