Bläddra i källkod

Ticket 47539 - Disabling DNA plug-in throws error 53

If the DNA plug-in is enabled and any modify is attempted against
the main DNA plug-in config entry (like disabling it), the operation
will be rejected with error 53.

The plug-in config validation function attempts to skip validation
of the main DNA plug-in config entry, but it returns DNA_FAILURE,
which causes the operation to be rejected.  The validation function
needs to return DNA_SUCCESS to allow changes to be made to the main
config entry.
Nathan Kinder 12 år sedan
förälder
incheckning
d8c6e0c5d0
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      ldap/servers/plugins/dna/dna.c

+ 1 - 1
ldap/servers/plugins/dna/dna.c

@@ -758,7 +758,7 @@ dna_parse_config_entry(Slapi_PBlock *pb, Slapi_Entry * e, int apply)
     /* If this is the main DNA plug-in
      * config entry, just bail. */
     if (strcasecmp(getPluginDN(), slapi_entry_get_ndn(e)) == 0) {
-        ret = DNA_FAILURE;
+        ret = DNA_SUCCESS;
         goto bail;
     }