mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
- use more autotools [2] - fixes assertion problems related to openldap 2.4 [3] PR: ports/129445 [1], ports/127675 [2], ports/122750 [3] Submitted by: mm [1], "Eugene M. Kim" <gene@nttmcl.com> [2] Approved by: maintainer (timeout ports/127675, ports/129030, ports/127675)
29 lines
720 B
C
29 lines
720 B
C
--- ldap-pwd.c.orig 2008-10-30 21:50:15.000000000 +0100
|
|
+++ ldap-pwd.c 2008-12-06 00:37:30.216966282 +0100
|
|
@@ -21,7 +21,10 @@
|
|
static char rcsId[] =
|
|
"$Id: ldap-pwd.c,v 2.48 2008/10/30 20:49:47 lukeh Exp $";
|
|
|
|
+#include <sys/types.h>
|
|
+#include <unistd.h>
|
|
#include "config.h"
|
|
+
|
|
|
|
#ifdef HAVE_PORT_BEFORE_H
|
|
#include <port_before.h>
|
|
@@ -90,9 +93,13 @@
|
|
size_t tmplen;
|
|
char *tmp;
|
|
|
|
- if (_nss_ldap_oc_check (e, "shadowAccount") == NSS_SUCCESS)
|
|
- {
|
|
+/* if (_nss_ldap_oc_check (e, "shadowAccount") == NSS_SUCCESS)
|
|
+ * {
|
|
+ */
|
|
/* don't include password for shadowAccount */
|
|
+ if (geteuid() != 0)
|
|
+ {
|
|
+ /* don't include password for non-root users */
|
|
if (buflen < 3)
|
|
return NSS_TRYAGAIN;
|
|
|