]> git.sur5r.net Git - openldap/commitdiff
#ifdef LDAP_PF_LOCAL needed.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 20 Jan 2003 20:10:03 +0000 (20:10 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 20 Jan 2003 20:10:03 +0000 (20:10 +0000)
libraries/libldap/open.c

index 630f8ae9e489b66b08f85d9dfa92f2ab70c36742..149ac4a31a972c30d380cee96dabd8724c540b7a 100644 (file)
@@ -342,8 +342,7 @@ ldap_int_open_connection(
 #endif
 
 #ifdef LDAP_CONNECTIONLESS
-       if( proto == LDAP_PROTO_UDP )
-               return 0;
+       if( proto == LDAP_PROTO_UDP ) return 0;
 #endif
 
 #ifdef HAVE_CYRUS_SASL
@@ -353,15 +352,17 @@ ldap_int_open_connection(
                ldap_int_sasl_open( ld, conn, sasl_host );
                LDAP_FREE( sasl_host );
        }
+#ifdef LDAP_PF_LOCAL
        if( proto == LDAP_PROTO_IPC ) {
                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",
                        (int) geteuid(), (int) getegid() );
-               ldap_int_sasl_external( ld, conn, authid, LDAP_PVT_SASL_LOCAL_SSF);
+               ldap_int_sasl_external( ld, conn, authid, LDAP_PVT_SASL_LOCAL_SSF );
        }
 #endif
+#endif
 
 #ifdef HAVE_TLS
        if (ld->ld_options.ldo_tls_mode == LDAP_OPT_X_TLS_HARD ||