mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
The order of uidNumber and gidNumber was swapped in revision 1.331,
which breaks existing ACLs. This patch restores the old behaviour.
This commit is contained in:
parent
9d5308163c
commit
979e64d0f0
@ -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" ) );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user