The actual samba-3.0.22 ebuild includes support only for the idmap backend "idmap_rid": (from the ebuild file:) use winbind && myconf="${myconf} $(use_with winbind) --with-shared-modules=idmap_rid" But there are the "ad" and "ldap" backends too. So it should read like this: use winbind && myconf="${myconf} $(use_with winbind) --with-shared-modules=idmap_rid,idmap_ad,idmap_ldap" I tested this with ...=idmap_rid,idmap_ad" and it worked for me. Thanks.
added idmap_ad only. This is mentioned only in few places, while idmap_ldap is never described. Moreover, during compilation there is an error due to an incomplete section in the Makefile.
mentioned only in few places ^^^^^^^^^^ few documents (man pages and upstream howtos)