How to configure Samba 2.0.7 to support NETGROUP?

Tim Potter tpot at linuxcare.com.au
Mon Oct 16 23:11:19 GMT 2000


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.





More information about the samba mailing list