]> git.sur5r.net Git - openldap/commitdiff
uid/gid are unsigned
authorHoward Chu <hyc@openldap.org>
Sat, 15 Dec 2007 02:28:45 +0000 (02:28 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 15 Dec 2007 02:28:45 +0000 (02:28 +0000)
libraries/libldap/cyrus.c

index ecde2e5c774d8a386808f8f70c4a455cdb1369a1..6f528f885b9b42b6bafaaef33c59eba1ec884340 100644 (file)
@@ -670,9 +670,9 @@ ldap_int_sasl_bind(
        {
                char authid[sizeof("gidNumber=4294967295+uidNumber=4294967295,"
                        "cn=peercred,cn=external,cn=auth")];
-               sprintf( authid, "gidNumber=%d+uidNumber=%d,"
+               sprintf( authid, "gidNumber=%u+uidNumber=%u,"
                        "cn=peercred,cn=external,cn=auth",
-                       (int) getegid(), (int) geteuid() );
+                       getegid(), geteuid() );
                (void) ldap_int_sasl_external( ld, ld->ld_defconn, authid,
                        LDAP_PVT_SASL_LOCAL_SSF );
        }