Hi, I would like to us a line like hosts allow = @specialgroup in the smb.conf file. If I declare a lot of hosts at the 'hosts allow' line, I get a "string overflow" error. That's one of the reasons for using netgroups. If I use the netgroup in "host allow", I get an error "access: netgroup support is not configured". Then I found a macro "HAVE_NETGROUP" in some of the files of the samba source code. If I manualy add "-DHAVE_NETGROUP!" and "-lnss_nis" to the Makefile I get a samba which supports netgroups. The question is, how to enable this feature with the standard configuration: ./configure, make, ... . My System: SuSE 7.0 with samba-2.0.7-49 on i386. YP/NIS is working (login, nfs, ...). -- Rupert Kolb
Rupert Kolb writes:> I would like to us a line like > hosts allow = @specialgroup > in the smb.conf file. > > If I declare a lot of hosts at the 'hosts allow' line, I get a > "string overflow" error. That's one of the reasons for using netgroups. > If I use the netgroup in "host allow", I get an error > "access: netgroup support is not configured". > > Then I found a macro "HAVE_NETGROUP" in some of the files of the > samba source code. If I manualy add "-DHAVE_NETGROUP!" and "-lnss_nis" > to the Makefile I get a samba which supports netgroups. > > The question is, how to enable this feature with the > standard configuration: ./configure, make, ... .The test for getting this working is the following (from include/includes.h): #if defined(HAVE_YP_GET_DEFAULT_DOMAIN) && \ defined(HAVE_SETNETGRENT) && defined(HAVE_ENDNETGRENT) && \ defined(HAVE_GETNETGRENT) #define HAVE_NETGROUP 1 #endif For some reason one or more of the functions above are not being detected by the configure script. Check through the config.log file for clues. Regards, Tim.
On Mon, 16 Oct 2000, Rupert Kolb wrote:> The question is, how to enable this feature with the > standard configuration: ./configure, make, ... . > > My System: > SuSE 7.0 with samba-2.0.7-49 on i386. > YP/NIS is working (login, nfs, ...).Samba's ./configure script fails to find yp_get_default_domain() on systems where this function isin libnsl and where libnsl is not needed for anything else. I wrote a patch[1] to address this, and I recently had an acknowledgement from Jeremy, so I think that this fix will be in future releases (note that the patch is for configure.in - if you want to use this with 2.0.7 then you'll need to patch configure.in, then run autoconf to generate a new configure, then run the new configure). [1] http://samba.org/samba-patches?findid=106 Regards, -- Neil Hoggarth Departmental Computer Officer <neil.hoggarth@physiol.ox.ac.uk> Laboratory of Physiology http://www.physiol.ox.ac.uk/~njh/ University of Oxford, UK