From: Howard Chu Date: Mon, 17 Oct 2005 12:57:53 +0000 (+0000) Subject: Fix ldapi DN ordering X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~217 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5e416949e0a3662c48083eea2dc68739931e73be;p=openldap Fix ldapi DN ordering --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 99893b285d..751d1dac7a 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -638,11 +638,11 @@ ldap_int_sasl_bind( #if !defined(_WIN32) /* Check for local */ if ( ldap_pvt_url_scheme2proto( ld->ld_defconn->lconn_server->lud_scheme ) == LDAP_PROTO_IPC ) { - char authid[sizeof("uidNumber=4294967295+gidNumber=4294967295," + char authid[sizeof("gidNumber=4294967295+uidNumber=4294967295," "cn=peercred,cn=external,cn=auth")]; - sprintf( authid, "uidNumber=%d+gidNumber=%d," + sprintf( authid, "gidNumber=%d+uidNumber=%d," "cn=peercred,cn=external,cn=auth", - (int) geteuid(), (int) getegid() ); + (int) getegid(), (int) geteuid() ); (void) ldap_int_sasl_external( ld, ld->ld_defconn, authid, LDAP_PVT_SASL_LOCAL_SSF ); } #endif