]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/bind.c
refuse illegal values for "threads" (ITS#4433)
[openldap] / servers / slapd / back-ldbm / bind.c
index dce317876a1ff38e561713b5a045f244f8f78f0c..5c523a3cb220e80d6f5b74a78f05e73784634358 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2006 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -72,7 +72,7 @@ ldbm_back_bind(
        }
 
        /* check for deleted */
-#ifdef LDBM_SUBENTRIES
+
        if ( is_entry_subentry( e ) ) {
                /* entry is an subentry, don't allow bind */
                Debug( LDAP_DEBUG_TRACE,
@@ -80,7 +80,6 @@ ldbm_back_bind(
                rc = LDAP_INVALID_CREDENTIALS;
                goto return_results;
        }
-#endif
 
        if ( is_entry_alias( e ) ) {
                /* entry is an alias, don't allow bind */