From: Luke Howard Date: Tue, 19 Jul 2005 06:45:57 +0000 (+0000) Subject: The order of uidNumber and gidNumber was swapped in revision 1.331, X-Git-Tag: OPENLDAP_AC_BP~343 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=979e64d0f06b168d7ac44f8ec32128a93aaa9d30;p=openldap The order of uidNumber and gidNumber was swapped in revision 1.331, which breaks existing ACLs. This patch restores the old behaviour. --- 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" ) ); } }