]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/add.c
Round two of referrals/aliases: WORK IN PROGRESS, may not compile!
[openldap] / servers / slapd / add.c
index 962374c32a0061a06def30825ede34f0f105eab9..2c7905a046ae721d1cc90dc09322c3804389a5bd 100644 (file)
@@ -38,7 +38,7 @@ do_add( Connection *conn, Operation *op )
        if( op->o_bind_in_progress ) {
                Debug( LDAP_DEBUG_ANY, "do_add: SASL bind in progress.\n", 0, 0, 0 );
                send_ldap_result( conn, op, LDAP_SASL_BIND_IN_PROGRESS, NULL,
-                   "SASL bind in progress", NULL );
+                   "SASL bind in progress", NULL, NULL );
                return LDAP_SASL_BIND_IN_PROGRESS;
        }
 
@@ -90,7 +90,7 @@ do_add( Connection *conn, Operation *op )
                        Debug( LDAP_DEBUG_ANY, "no values for type %s\n", type,
                            0, 0 );
                        send_ldap_result( conn, op, LDAP_PROTOCOL_ERROR,
-                               NULL, "no values for type", NULL );
+                               NULL, "no values for type", NULL, NULL );
                        free( type );
                        entry_free( e );
                        return LDAP_PROTOCOL_ERROR;
@@ -128,7 +128,7 @@ do_add( Connection *conn, Operation *op )
        if ( be == NULL ) {
                entry_free( e );
                send_ldap_result( conn, op, LDAP_REFERRAL, NULL,
-                   NULL, default_referral );
+                   NULL, default_referral, NULL );
                return rc;
        }
 
@@ -156,13 +156,13 @@ do_add( Connection *conn, Operation *op )
                } else {
                        entry_free( e );
                        send_ldap_result( conn, op, rc = LDAP_REFERRAL, NULL,
-                               NULL, default_referral );
+                               NULL, default_referral, NULL );
                }
        } else {
            Debug( LDAP_DEBUG_ARGS, "    do_add: HHH\n", 0, 0, 0 );
                entry_free( e );
                send_ldap_result( conn, op, rc = LDAP_UNWILLING_TO_PERFORM,
-                       NULL, "Function not implemented", NULL );
+                       NULL, "Function not implemented", NULL, NULL );
        }
 
        return rc;