summaryrefslogtreecommitdiff
path: root/package/pam/patches/patch-modules_pam_group_pam_group_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/pam/patches/patch-modules_pam_group_pam_group_c')
-rw-r--r--package/pam/patches/patch-modules_pam_group_pam_group_c12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/pam/patches/patch-modules_pam_group_pam_group_c b/package/pam/patches/patch-modules_pam_group_pam_group_c
new file mode 100644
index 000000000..40c1897d2
--- /dev/null
+++ b/package/pam/patches/patch-modules_pam_group_pam_group_c
@@ -0,0 +1,12 @@
+--- Linux-PAM-1.1.4.orig/modules/pam_group/pam_group.c 2011-06-21 11:04:56.000000000 +0200
++++ Linux-PAM-1.1.4/modules/pam_group/pam_group.c 2011-10-12 14:31:55.693559001 +0200
+@@ -656,7 +656,8 @@ static int check_account(pam_handle_t *p
+ }
+ /* If buffer starts with @, we are using netgroups */
+ if (buffer[0] == '@')
+- good &= innetgr (&buffer[1], NULL, user, NULL);
++ pam_syslog(pamh, LOG_ERR, "%s: no netgroup supported by C library", PAM_GROUP_CONF);
++ //good &= innetgr (&buffer[1], NULL, user, NULL);
+ /* otherwise, if the buffer starts with %, it's a UNIX group */
+ else if (buffer[0] == '%')
+ good &= pam_modutil_user_in_group_nam_nam(pamh, user, &buffer[1]);