]> git.sur5r.net Git - openldap/commitdiff
issue a useful error message
authorPierangelo Masarati <ando@openldap.org>
Tue, 8 Dec 2009 19:49:15 +0000 (19:49 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 8 Dec 2009 19:49:15 +0000 (19:49 +0000)
servers/slapd/back-ldap/config.c

index 5bde983dd501369ef4c0e9bd3d71e7488d9ec291..b81595dfabd11fb9ffc197ee2e8386271ed0c3d0 100644 (file)
@@ -740,6 +740,11 @@ slap_idassert_parse( ConfigArgs *c, slap_idassert_t *si )
                        }
 
                } else if ( bindconf_parse( c->argv[ i ], &si->si_bc ) ) {
+                       snprintf( c->cr_msg, sizeof( c->cr_msg ),
+                               "\"idassert-bind <args>\": "
+                               "unable to parse field \"%s\"",
+                               c->argv[ i ] );
+                       Debug( LDAP_DEBUG_ANY, "%s: %s.\n", c->log, c->cr_msg, 0 );
                        return 1;
                }
        }