From: Kurt Zeilenga Date: Sun, 8 Dec 2002 07:56:49 +0000 (+0000) Subject: expand authid buffer X-Git-Tag: NO_SLAP_OP_BLOCKS~704 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=56ebd53e513e8d6488a32977c109d1271ea997cc;p=openldap expand authid buffer --- diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 9be52bae64..5e7f69f092 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -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", diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index ab9c202f07..94c002d142 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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",