Commit bb156772 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#4750

parent 8423a07e
......@@ -9,6 +9,7 @@ OpenLDAP 2.4.13 Release (2008/11/20)
Fixed libldap interaction with GnuTLS CN IP-based matches (ITS#5789)
Fixed libldap MAXHOSTNAMELEN typo (ITS#5815)
Fixed libldap Ipv6 detection (ITS#5739)
Fixed libldap setuid usage with .ldaprc (ITS#4750)
Fixed slapacl crasher (ITS#5820)
Fixed slapd acl checks on ADD (ITS#4556,ITS#5723)
Fixed slapd acl application to newly created backends (ITS#5572)
......
#! /bin/sh
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.15 2008/11/08 00:14:44 quanah Exp .
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.16 2008/11/10 19:15:16 quanah Exp .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.
#
......@@ -37109,6 +37109,7 @@ fi
 
 
 
 
 
for ac_func in \
......@@ -37121,6 +37122,7 @@ for ac_func in \
flock \
fstat \
getdtablesize \
geteuid \
getgrgid \
gethostname \
getpass \
......@@ -2423,6 +2423,7 @@ AC_CHECK_FUNCS( \
flock \
fstat \
getdtablesize \
geteuid \
getgrgid \
gethostname \
getpass \
......
......@@ -190,6 +190,9 @@
/* Define to 1 if you have the `getdtablesize' function. */
#undef HAVE_GETDTABLESIZE
/* Define to 1 if you have the `geteuid' function. */
#undef HAVE_GETEUID
/* Define to 1 if you have the `getgrgid' function. */
#undef HAVE_GETGRGID
......
......@@ -18,6 +18,10 @@
#include <stdio.h>
#include <ac/stdlib.h>
#ifdef HAVE_GETEUID
#include <ac/unistd.h>
#endif
#include <ac/socket.h>
#include <ac/string.h>
#include <ac/ctype.h>
......@@ -629,6 +633,12 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl )
#endif
openldap_ldap_init_w_sysconf(LDAP_CONF_FILE);
#ifdef HAVE_GETEUID
if ( geteuid() != getuid() )
return;
#endif
openldap_ldap_init_w_userconf(LDAP_USERRC_FILE);
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment