If you define a realm in smb.conf but not a workgroup, then net ads join fails to find a DC (in most cases). reported by Axel Suppantschitsch > [2003/08/19 14:39:56, 6] libads/ldap.c:ads_find_dc(147) > ads_find_dc: looking for domain 'WORKGROUP' > [2003/08/19 14:39:56, 8] libsmb/namequery.c:get_sorted_dc_list(1215) > get_sorted_dc_list: attempting lookup using [lmhosts wins host bcast] > [2003/08/19 14:39:56, 10] libsmb/namequery.c:internal_resolve_name(989) > internal_resolve_name: looking up WORKGROUP#1c
fixed by always using lp_realm() from smb.conf.
originally reported against one of the 3.0.0rc[1-4] releases. Cleaning up non-production versions.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.