]> git.sur5r.net Git - openldap/commitdiff
ITS#2324: Allow extended operation plugin to override default
authorKurt Zeilenga <kurt@openldap.org>
Fri, 28 Feb 2003 19:21:38 +0000 (19:21 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 28 Feb 2003 19:21:38 +0000 (19:21 +0000)
from jenarusa@us.ibm.com

servers/slapd/extended.c

index 5b39e217074cce7f526cf66420a3c630b002ea4d..f7de88b6941e44742c568e5e0a367b86971eb690 100644 (file)
@@ -157,16 +157,13 @@ do_extended(
                goto done;
        }
 
-       if( !(ext = find_extop(supp_ext_list, &reqoid))
 #ifdef LDAP_SLAPI
-               && !(funcAddr)
-#endif
-       ) {
-#ifdef LDAP_SLAPI
-               /* Netscape extended operation */
-               getPluginFunc( &reqoid, &funcAddr );
+       getPluginFunc( &reqoid, &funcAddr ); /* NS-SLAPI extended operation */
+       if( !funcAddr && !(ext = find_extop(supp_ext_list, &reqoid )))
+#else
+       if( !(ext = find_extop(supp_ext_list, &reqoid )))
 #endif
-
+       {
 #ifdef NEW_LOGGING
                LDAP_LOG( OPERATION, ERR, 
                        "do_extended: conn %d  unsupported operation \"%s\"\n",