mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#6604 use LUTIL_GETPEEREID()
This commit is contained in:
parent
9434a7d676
commit
d2aac4ef22
1 changed files with 3 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue