mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#4750
This commit is contained in:
parent
8423a07e71
commit
bb1567723f
5 changed files with 18 additions and 1 deletions
1
CHANGES
1
CHANGES
|
|
@ -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)
|
||||
|
|
|
|||
4
configure
vendored
4
configure
vendored
|
|
@ -1,5 +1,5 @@
|
|||
#! /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);
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue