]> git.sur5r.net Git - openldap/commitdiff
ITS#6604
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 17 Dec 2010 18:19:03 +0000 (18:19 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 17 Dec 2010 18:19:03 +0000 (18:19 +0000)
CHANGES
contrib/slapd-modules/nssov/nssov.c

diff --git a/CHANGES b/CHANGES
index eaa6ea62bf2cee1a0706a345ec89b5bb98211386..c8777654917342392b2f0ca7672469882e34295e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -30,6 +30,7 @@ OpenLDAP 2.4.24 Engineering
        Fixed slapo-syncprov filter race condition (ITS#6708)
        Fixed slapo-syncprov active mod race (ITS#6709)
        Fixed contrib/nssov to only close socket on shutdown (ITS#6676)
+       Fixed contrib/nssov multi platform support (ITS#6604)
        Documentation
                admin24 guide typo fixes (ITS#6609)
                ldap_open(3) document ldap_set_urllist_proc (ITS#6601)
index 0687e98d0741e6d8d399fe5763e50973300a3690..fa054792706d23f5b2cb3216b2ec37e2f9f41685 100644 (file)
@@ -260,9 +260,11 @@ static void handleconnection(nssov_info *ni,int sock,Operation *op)
   uid_t uid;
   gid_t gid;
   char authid[sizeof("gidNumber=4294967295+uidNumber=424967295,cn=peercred,cn=external,cn=auth")];
+  char peerbuf[8];
+  struct berval peerbv = { sizeof(peerbuf), peerbuf };
 
   /* log connection */
-  if (lutil_getpeereid(sock,&uid,&gid))
+  if (LUTIL_GETPEEREID(sock,&uid,&gid,&peerbv))
     Debug( LDAP_DEBUG_TRACE,"nssov: connection from unknown client: %s\n",strerror(errno),0,0);
   else
     Debug( LDAP_DEBUG_TRACE,"nssov: connection from uid=%d gid=%d\n",