idmap problem

Herb Lewis hlewis at
Wed Feb 21 17:45:51 GMT 2007

There is a problem if you specify idmap domains = DOMA, DOMB
but do not have a idmap config DOMx: default = yes

in idmap.c we try to sort the idmap_domains array so the
default domain is last. If no default was specified then
def_dom_num is set to -1 and we swap memory from outside
the array with the assignment (actually just pointers but
you get the drift):

temp = idmap_domains[def_dom_num]

Should we change the initial

static int def_dom_num = -1;

to initialize to 0 or should we indicate a misconfiguration
in this case?

More information about the samba-technical mailing list