diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-09-14 14:22:39 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-09-14 14:22:39 +0000 |
commit | 0b3e58307f210514609115544899ebe42d57a5c9 (patch) | |
tree | d511eb5579416af602bafbef406f0041991d3c6a /modules/pam_access | |
parent | ff883e0d18e0c274da4689b6efa7064408d8c74b (diff) | |
download | pam-0b3e58307f210514609115544899ebe42d57a5c9.tar.gz pam-0b3e58307f210514609115544899ebe42d57a5c9.tar.bz2 pam-0b3e58307f210514609115544899ebe42d57a5c9.zip |
Relevant BUGIDs:
Purpose of commit:
Commit summary:
---------------
bugfix: merge with BerliOS
Diffstat (limited to 'modules/pam_access')
-rw-r--r-- | modules/pam_access/pam_access.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/pam_access/pam_access.c b/modules/pam_access/pam_access.c index 4005c93b..854b1506 100644 --- a/modules/pam_access/pam_access.c +++ b/modules/pam_access/pam_access.c @@ -41,6 +41,7 @@ #include <errno.h> #include <ctype.h> #include <sys/utsname.h> +#include <rpcsvc/ypclnt.h> #ifndef BROKEN_NETWORK_MATCH # include <netdb.h> @@ -262,16 +263,11 @@ static char * myhostname(void) static int netgroup_match(char *group, char *machine, char *user) { -#ifdef NIS - static char *mydomain = 0; + static char *mydomain = NULL; if (mydomain == 0) yp_get_default_domain(&mydomain); return (innetgr(group, machine, user, mydomain)); -#else - _log_err("NIS netgroup support not configured"); - return (NO); -#endif } /* user_match - match a username against one token */ |