# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../uclibc/pkg_patch/pam-no_nis.patch # Copyright (C) 2006 - 2008 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- SDE-COPYRIGHT-NOTE-END --- --- ./modules/pam_access/pam_access.c.orig 2007-12-07 17:40:01.000000000 +0200 +++ ./modules/pam_access/pam_access.c 2008-07-22 19:47:47.000000000 +0300 @@ -41,7 +41,6 @@ #include #include #include -#include #include #include #include --- ./modules/pam_unix/yppasswd_xdr.c.orig 2005-01-19 22:34:53.000000000 -0300 +++ ./modules/pam_unix/yppasswd_xdr.c 2005-01-19 22:35:08.000000000 -0300 @@ -13,8 +13,6 @@ #include #include -#include -#include #include "yppasswd.h" bool_t --- ./modules/pam_unix/pam_unix_passwd.c.orig 2005-01-19 22:37:28.000000000 -0300 +++ ./modules/pam_unix/pam_unix_passwd.c 2005-01-19 22:37:49.000000000 -0300 @@ -54,8 +54,6 @@ #include #include #include -#include -#include #ifdef USE_CRACKLIB #include --- Linux-PAM-0.99.2.1/modules/pam_unix/support.c.orig 2005-11-29 10:22:06.000000000 +0100 +++ Linux-PAM-0.99.2.1/modules/pam_unix/support.c 2006-02-01 20:59:06.000000000 +0100 @@ -21,7 +21,6 @@ #include #include #include -#include #include #include @@ -257,25 +256,6 @@ } } - if (!matched && nis) { - char *userinfo = NULL, *domain = NULL; - int len = 0, i; - len = yp_get_default_domain(&domain); - if (len == YPERR_SUCCESS) { - len = yp_bind(domain); - } - if (len == YPERR_SUCCESS) { - i = yp_match(domain, "passwd.byname", name, - strlen(name), &userinfo, &len); - yp_unbind(domain); - if ((i == YPERR_SUCCESS) && ((size_t)len < sizeof(buf))) { - strncpy(buf, userinfo, sizeof(buf) - 1); - buf[sizeof(buf) - 1] = '\0'; - matched = 1; - } - } - } - if (matched && (ret != NULL)) { *ret = NULL;