From 979e64d0f06b168d7ac44f8ec32128a93aaa9d30 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 19 Jul 2005 06:45:57 +0000 Subject: [PATCH] The order of uidNumber and gidNumber was swapped in revision 1.331, which breaks existing ACLs. This patch restores the old behaviour. --- servers/slapd/daemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index f84cdddaa6..716123f73b 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1362,14 +1362,14 @@ slapd_handle_listener( if( getpeereid( s, &uid, &gid ) == 0 ) { authid.bv_val = ch_malloc( - STRLENOF( "gidNumber=4294967295+uidNumber=4294967295," + STRLENOF( "uidNumber=4294967295+gidNumber=4294967295," "cn=peercred,cn=external,cn=auth" ) + 1 ); authid.bv_len = sprintf( authid.bv_val, - "gidNumber=%d+uidNumber=%d," + "uidNumber=%d+gidNumber=%d," "cn=peercred,cn=external,cn=auth", (int) gid, (int) uid ); assert( authid.bv_len <= - STRLENOF( "gidNumber=4294967295+uidNumber=4294967295," + STRLENOF( "uidNumber=4294967295+gidNumber=4294967295," "cn=peercred,cn=external,cn=auth" ) ); } } -- 2.39.5