1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

added --with-nisplus-home option

(This used to be commit 70000c2190)
This commit is contained in:
Andrew Tridgell 1998-08-08 01:15:14 +00:00
parent c0e709417f
commit 963e96f3a9
7 changed files with 296 additions and 253 deletions

View File

@ -32,10 +32,6 @@ MANDIR = $(BASEDIR)/man
# The permissions to give the executables
INSTALLPERMS = 0755
# Add any optimisation or debugging flags here
# add -DSYSLOG for syslog support
FLAGS1 = -O
# set these to where to find various files
# These can be overridden by command line switches (see smbd(8))
# or in smb.conf (see smb.conf(5))

View File

@ -45,10 +45,10 @@
#undef WITH_SSL
#undef WITH_LDAP
#undef WITH_NISPLUS
#undef WITH_NISPLUS_HOME
#undef WITH_AUTOMOUNT
#undef HAVE_PAM_AUTHENTICATE
#undef HAVE_BROKEN_GETGROUPS
#undef REPLACE_INET_NTOA
#undef HAVE_FILE_MACRO
#undef HAVE_FUNCTION_MACRO

514
source3/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -386,6 +386,24 @@ AC_ARG_WITH(nisplus,
AC_MSG_RESULT(no)
)
#################################################
# check for a NISPLUS_HOME support
AC_MSG_CHECKING(whether to use NISPLUS_HOME)
AC_ARG_WITH(nisplus-home,
[ --with-nisplus-home Include NISPLUS_HOME support
--without-nisplus-home Don't include NISPLUS_HOME support (default)],
[ case "$withval" in
yes)
AC_MSG_RESULT(yes)
AC_DEFINE(WITH_NISPLUS_HOME)
;;
*)
AC_MSG_RESULT(no)
;;
esac ],
AC_MSG_RESULT(no)
)
#################################################
# check for the secure socket layer
AC_MSG_CHECKING(whether to use SSL)

View File

@ -102,6 +102,7 @@
#undef WITH_SSL
#undef WITH_LDAP
#undef WITH_NISPLUS
#undef WITH_NISPLUS_HOME
#undef WITH_AUTOMOUNT
#undef HAVE_PAM_AUTHENTICATE
#undef HAVE_BROKEN_GETGROUPS

View File

@ -22,7 +22,7 @@
#include "includes.h"
#if (defined(HAVE_NETGROUP) && defined (WITH_AUTOMOUNT))
#ifdef NISPLUS_HOME
#ifdef WITH_NISPLUS_HOME
#include <rpcsvc/nis.h>
#else
#include "rpcsvc/ypclnt.h"
@ -3737,7 +3737,7 @@ static void strip_mount_options( pstring *str)
As we may end up doing both, cache the last YP result.
*******************************************************************/
#ifdef NISPLUS_HOME
#ifdef WITH_NISPLUS_HOME
static char *automount_lookup(char *user_name)
{
static fstring last_key = "";
@ -3791,7 +3791,7 @@ static char *automount_lookup(char *user_name)
DEBUG(4, ("NIS+ Lookup: %s resulted in %s\n", user_name, last_value));
return last_value;
}
#else /* NISPLUS_HOME */
#else /* WITH_NISPLUS_HOME */
static char *automount_lookup(char *user_name)
{
static fstring last_key = "";
@ -3840,7 +3840,7 @@ static char *automount_lookup(char *user_name)
DEBUG(4, ("YP Lookup: %s resulted in %s\n", user_name, last_value));
return last_value;
}
#endif /* NISPLUS_HOME */
#endif /* WITH_NISPLUS_HOME */
#endif
/*******************************************************************

View File

@ -828,7 +828,7 @@ static void init_globals(void)
Globals.bUnixRealname = False;
#if (defined(HAVE_NETGROUP) && defined(WITH_AUTOMOUNT))
Globals.bNISHomeMap = False;
#ifdef NISPLUS_HOME
#ifdef WITH_NISPLUS_HOME
string_set(&Globals.szNISHomeMapName, "auto_home.org_dir");
#else
string_set(&Globals.szNISHomeMapName, "auto.home");