mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
expand authid buffer
This commit is contained in:
parent
08710f80cd
commit
56ebd53e51
2 changed files with 2 additions and 2 deletions
|
|
@ -360,7 +360,7 @@ ldap_int_open_connection(
|
||||||
* yet anyway.
|
* yet anyway.
|
||||||
*/
|
*/
|
||||||
if( proto == LDAP_PROTO_IPC ) {
|
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")];
|
"cn=peercred,cn=external,cn=auth")];
|
||||||
sprintf( authid, "uidNumber=%d,gidNumber=%d,"
|
sprintf( authid, "uidNumber=%d,gidNumber=%d,"
|
||||||
"cn=peercred,cn=external,cn=auth",
|
"cn=peercred,cn=external,cn=auth",
|
||||||
|
|
|
||||||
|
|
@ -1561,7 +1561,7 @@ slapd_daemon_task(
|
||||||
|
|
||||||
if( getpeereid( s, &uid, &gid ) == 0 ) {
|
if( getpeereid( s, &uid, &gid ) == 0 ) {
|
||||||
authid = ch_malloc(
|
authid = ch_malloc(
|
||||||
sizeof("uidNumber=XXXXXX+gidNumber=XXXXXX,"
|
sizeof("uidNumber=4294967295+gidNumber=4294967295,"
|
||||||
"cn=peercred,cn=external,cn=auth"));
|
"cn=peercred,cn=external,cn=auth"));
|
||||||
sprintf(authid, "uidNumber=%d+gidNumber=%d,"
|
sprintf(authid, "uidNumber=%d+gidNumber=%d,"
|
||||||
"cn=peercred,cn=external,cn=auth",
|
"cn=peercred,cn=external,cn=auth",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue