Hi I have made a small patch for samba 1.9.18p1, allowing NIS maps to contain full domain names: *** util.c.FCS Fri Dec 26 11:01:57 1997 --- util.c Wed Jan 21 15:58:28 1998 *************** *** 3724,3734 **** if (!nis_error && lp_nis_home_map()) { ! home_server_len = strcspn(nis_result,":"); ! DEBUG(5, ("NIS lookup succeeded. Home server length: %d\n",home_server_len)); if (home_server_len > sizeof(pstring)) { ! home_server_len = sizeof(pstring); } strncpy(server_name, nis_result, home_server_len); } --- 3724,3738 ---- if (!nis_error && lp_nis_home_map()) { ! home_server_len = strcspn(nis_result,"."); if (home_server_len > sizeof(pstring)) { ! home_server_len = strcspn(nis_result,":"); ! DEBUG(5, ("NIS lookup succeeded. Home server length: %d\n",home_server_len)); ! if (home_server_len > sizeof(pstring)) ! { ! home_server_len = sizeof(pstring); ! } } strncpy(server_name, nis_result, home_server_len); }