Technically, since the authid is expected to be a normalized DN, uidNumber

and gidNumber should be all lower case: uidnumber,gidnumber. Is it too late
to fix this, would it break compatibility for anything major?
This commit is contained in:
Howard Chu 2003-03-06 12:08:39 +00:00
parent e906747d51
commit aa84264fc2

View file

@ -1561,9 +1561,9 @@ slapd_daemon_task(
if( getpeereid( s, &uid, &gid ) == 0 ) {
authid = ch_malloc(
sizeof("uidNumber=4294967295+gidNumber=4294967295,"
sizeof("uidnumber=4294967295+gidnumber=4294967295,"
"cn=peercred,cn=external,cn=auth"));
sprintf(authid, "uidNumber=%d+gidNumber=%d,"
sprintf(authid, "uidnumber=%d+gidnumber=%d,"
"cn=peercred,cn=external,cn=auth",
(int) uid, (int) gid);
}