Commit 56ebd53e authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

expand authid buffer

parent 08710f80
......@@ -360,7 +360,7 @@ ldap_int_open_connection(
* yet anyway.
*/
if( proto == LDAP_PROTO_IPC ) {
char authid[sizeof("uidNumber=XXXXXX,gidNumber=XXXXXX,"
char authid[sizeof("uidNumber=4294967295,gidNumber=4294967295,"
"cn=peercred,cn=external,cn=auth")];
sprintf( authid, "uidNumber=%d,gidNumber=%d,"
"cn=peercred,cn=external,cn=auth",
......
......@@ -1561,7 +1561,7 @@ slapd_daemon_task(
if( getpeereid( s, &uid, &gid ) == 0 ) {
authid = ch_malloc(
sizeof("uidNumber=XXXXXX+gidNumber=XXXXXX,"
sizeof("uidNumber=4294967295+gidNumber=4294967295,"
"cn=peercred,cn=external,cn=auth"));
sprintf(authid, "uidNumber=%d+gidNumber=%d,"
"cn=peercred,cn=external,cn=auth",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment