mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
hardcode normalized instead of funky DN form
This commit is contained in:
parent
671b02f748
commit
5ae22791ab
1 changed files with 7 additions and 4 deletions
|
|
@ -1372,12 +1372,15 @@ slapd_handle_listener(
|
|||
|
||||
if( getpeereid( s, &uid, &gid ) == 0 ) {
|
||||
authid.bv_val = ch_malloc(
|
||||
sizeof("uidnumber=4294967295+gidnumber=4294967295,"
|
||||
"cn=peercred,cn=external,cn=auth"));
|
||||
STRLENOF( "gidNumber=4294967295+uidNumber=4294967295,"
|
||||
"cn=peercred,cn=external,cn=auth" ) + 1 );
|
||||
authid.bv_len = sprintf( authid.bv_val,
|
||||
"uidnumber=%d+gidnumber=%d,"
|
||||
"gidNumber=%d+uidNumber=%d,"
|
||||
"cn=peercred,cn=external,cn=auth",
|
||||
(int) uid, (int) gid);
|
||||
(int) gid, (int) uid );
|
||||
assert( authid.bv_len <=
|
||||
STRLENOF( "gidNumber=4294967295+uidNumber=4294967295,"
|
||||
"cn=peercred,cn=external,cn=auth" ) );
|
||||
}
|
||||
}
|
||||
dnsname = "local";
|
||||
|
|
|
|||
Loading…
Reference in a new issue