]> git.sur5r.net Git - openldap/commitdiff
LDAP_OPERATIONS_ERROR -> LDAP_OTHER
authorKurt Zeilenga <kurt@openldap.org>
Tue, 25 Apr 2000 13:06:22 +0000 (13:06 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 25 Apr 2000 13:06:22 +0000 (13:06 +0000)
and other misc changes

servers/slapd/back-ldbm/backldbm.dsp
servers/slapd/back-ldbm/delete.c
servers/slapd/back-ldbm/modrdn.c
servers/slapd/back-ldbm/passwd.c

index c7d136d3ab77bd33b95e94702776aa093351b69a..bc98271e4cbfa3ea36da37026e6feb4c3cfa147c 100644 (file)
@@ -42,6 +42,7 @@ CPP=cl.exe
 # PROP Output_Dir "..\..\..\Release"
 # PROP Intermediate_Dir "..\..\..\Release\backldbm"
 # PROP Target_Dir ""
+RSC=rc.exe
 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
 # ADD CPP /nologo /MT /W3 /GX /O2 /I "..\\" /I "..\..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
 BSC32=bscmake.exe
@@ -63,6 +64,7 @@ LIB32=link.exe -lib
 # PROP Output_Dir "..\..\..\Debug"
 # PROP Intermediate_Dir "..\..\..\Debug\backldbm"
 # PROP Target_Dir ""
+RSC=rc.exe
 # ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
 # ADD CPP /nologo /MTd /W3 /GX /Z7 /Od /I "..\\" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX /FD /c
 BSC32=bscmake.exe
@@ -84,6 +86,7 @@ LIB32=link.exe -lib
 # PROP Output_Dir "..\..\..\SDebug"
 # PROP Intermediate_Dir "..\..\..\SDebug\backldbm"
 # PROP Target_Dir ""
+RSC=rc.exe
 # ADD BASE CPP /nologo /MTd /W3 /GX /Z7 /Od /I "..\\" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX /FD /c
 # ADD CPP /nologo /W3 /GX /Z7 /Od /I "..\\" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX /FD /c
 BSC32=bscmake.exe
@@ -105,6 +108,7 @@ LIB32=link.exe -lib
 # PROP Output_Dir "..\..\..\SRelease"
 # PROP Intermediate_Dir "..\..\..\SRelease\backldbm"
 # PROP Target_Dir ""
+RSC=rc.exe
 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "..\\" /I "..\..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
 # ADD CPP /nologo /W3 /GX /O2 /I "..\\" /I "..\..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
 BSC32=bscmake.exe
index ab35a12a04a975342cdd907e5c1345769035af25..66dcb8487ca797387432591c54903f9db0b0a83f 100644 (file)
@@ -105,7 +105,7 @@ ldbm_back_delete(
                Debug(LDAP_DEBUG_ARGS, "<=- ldbm_back_delete: non leaf %s\n",
                        dn, 0, 0);
                send_ldap_result( conn, op, LDAP_NOT_ALLOWED_ON_NONLEAF,
-                       NULL, NULL, NULL, NULL );
+                       NULL, "subtree delete not supported", NULL, NULL );
                goto return_results;
        }
 
@@ -115,8 +115,8 @@ ldbm_back_delete(
                        Debug( LDAP_DEBUG_TRACE,
                                "<=- ldbm_back_delete: parent does not exist\n",
                                0, 0, 0);
-                       send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
-                               NULL, NULL, NULL, NULL );
+                       send_ldap_result( conn, op, LDAP_OTHER,
+                               NULL, "could not locate parent of entry", NULL, NULL );
                        goto return_results;
                }
 
@@ -152,8 +152,8 @@ ldbm_back_delete(
                Debug(LDAP_DEBUG_ARGS,
                        "<=- ldbm_back_delete: operations error %s\n",
                        dn, 0, 0);
-               send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
-                       NULL, NULL, NULL, NULL );
+               send_ldap_result( conn, op, LDAP_OTHER,
+                       NULL, "DN index delete failed", NULL, NULL );
                goto return_results;
        }
 
@@ -162,8 +162,8 @@ ldbm_back_delete(
                Debug(LDAP_DEBUG_ARGS,
                        "<=- ldbm_back_delete: operations error %s\n",
                        dn, 0, 0);
-               send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
-                       NULL, NULL, NULL, NULL );
+               send_ldap_result( conn, op, LDAP_OTHER,
+                       NULL, "entry delete failed", NULL, NULL );
                goto return_results;
        }
 
index 0d8a3114a42dfb70e36ad214f2a65dc149ac6f06..1a5894796741daca172683c450ec3c944780aa15 100644 (file)
@@ -296,7 +296,7 @@ ldbm_back_modrdn(
                       "ldbm_back_modrdn: can't figure out type of newrdn\n",
                       0, 0, 0 );
                send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
-                       NULL, NULL, NULL, NULL );
+                       NULL, "unknown type used in RDN", NULL, NULL );
                goto return_results;            
 
        }
@@ -307,7 +307,7 @@ ldbm_back_modrdn(
                       "ldbm_back_modrdn: can't figure out val of newrdn\n",
                       0, 0, 0 );
                send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
-                       NULL, NULL, NULL, NULL );
+                       NULL, "could not parse RDN value", NULL, NULL );
                goto return_results;            
 
        }
@@ -323,8 +323,8 @@ ldbm_back_modrdn(
                Debug( LDAP_DEBUG_TRACE,
                       "ldbm_back_modrdn: can't figure out old_rdn from dn\n",
                       0, 0, 0 );
-               send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
-                       NULL, NULL, NULL, NULL );
+               send_ldap_result( conn, op, LDAP_OTHER,
+                       NULL, "could not parse old DN", NULL, NULL );
                goto return_results;            
 
        }
@@ -334,8 +334,8 @@ ldbm_back_modrdn(
                Debug( LDAP_DEBUG_TRACE,
                       "ldbm_back_modrdn: can't figure out the old_rdn type\n",
                       0, 0, 0 );
-               send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
-                       NULL, NULL, NULL, NULL );
+               send_ldap_result( conn, op, LDAP_OTHER,
+                       NULL, "count parse RDN from old DN", NULL, NULL );
                goto return_results;            
                
        }
@@ -381,8 +381,8 @@ ldbm_back_modrdn(
                                Debug( LDAP_DEBUG_TRACE,
                                       "ldbm_back_modrdn: can't figure out old_rdn_val from old_rdn\n",
                                       0, 0, 0 );
-                               send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR,
-                                       NULL, NULL, NULL, NULL );
+                               send_ldap_result( conn, op, LDAP_OTHER,
+                                       NULL, "cound not parse value from old RDN", NULL, NULL );
                                goto return_results;            
                        }
 
@@ -423,7 +423,7 @@ ldbm_back_modrdn(
        /* delete old one */
        if ( dn2id_delete( be, e->e_ndn, e->e_id ) != 0 ) {
                send_ldap_result( conn, op, LDAP_OTHER,
-                       NULL, NULL, NULL, NULL );
+                       NULL, "DN index delete fail", NULL, NULL );
                goto return_results;
        }
 
@@ -441,7 +441,7 @@ ldbm_back_modrdn(
        /* add new one */
        if ( dn2id_add( be, e->e_ndn, e->e_id ) != 0 ) {
                send_ldap_result( conn, op, LDAP_OTHER,
-                       NULL, NULL, NULL, NULL );
+                       NULL, "DN index add failed", NULL, NULL );
                goto return_results;
        }
 
@@ -467,7 +467,7 @@ ldbm_back_modrdn(
        if ( id2entry_add( be, e ) != 0 ) {
                entry_free( e );
                send_ldap_result( conn, op, LDAP_OTHER,
-                       NULL, NULL, NULL, NULL );
+                       NULL, "entry update failed", NULL, NULL );
                goto return_results;
        }
 
index bafe00d6af79aae162cc9ca782d7172df88da1be..849ec5dbe83f4802835126a218b9a85697859dfb 100644 (file)
@@ -64,7 +64,7 @@ ldbm_back_exop_passwd(
 
                if( new == NULL || new->bv_len == 0 ) {
                        *text = "password generation failed.";
-                       rc = LDAP_OPERATIONS_ERROR;
+                       rc = LDAP_OTHER;
                        goto done;
                }
                
@@ -75,7 +75,7 @@ ldbm_back_exop_passwd(
 
        if( hash == NULL || hash->bv_len == 0 ) {
                *text = "password hash failed";
-               rc = LDAP_OPERATIONS_ERROR;
+               rc = LDAP_OTHER;
                goto done;
        }
 
@@ -148,7 +148,8 @@ ldbm_back_exop_passwd(
        if( rc == LDAP_SUCCESS ) {
                /* change the entry itself */
                if( id2entry_add( be, e ) != 0 ) {
-                       rc = LDAP_OPERATIONS_ERROR;
+                       *text = "entry update failed";
+                       rc = LDAP_OTHER;
                }
        }