Skip to content
Snippets Groups Projects
Commit 78e5c7ee authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

uid/gid are unsigned

parent 861b13e9
No related branches found
No related tags found
No related merge requests found
...@@ -670,9 +670,9 @@ ldap_int_sasl_bind( ...@@ -670,9 +670,9 @@ ldap_int_sasl_bind(
{ {
char authid[sizeof("gidNumber=4294967295+uidNumber=4294967295," char authid[sizeof("gidNumber=4294967295+uidNumber=4294967295,"
"cn=peercred,cn=external,cn=auth")]; "cn=peercred,cn=external,cn=auth")];
sprintf( authid, "gidNumber=%d+uidNumber=%d," sprintf( authid, "gidNumber=%u+uidNumber=%u,"
"cn=peercred,cn=external,cn=auth", "cn=peercred,cn=external,cn=auth",
(int) getegid(), (int) geteuid() ); getegid(), geteuid() );
(void) ldap_int_sasl_external( ld, ld->ld_defconn, authid, (void) ldap_int_sasl_external( ld, ld->ld_defconn, authid,
LDAP_PVT_SASL_LOCAL_SSF ); LDAP_PVT_SASL_LOCAL_SSF );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment