From 5e416949e0a3662c48083eea2dc68739931e73be Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 17 Oct 2005 12:57:53 +0000 Subject: [PATCH] Fix ldapi DN ordering --- libraries/libldap/cyrus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5