/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2000-2004 The OpenLDAP Foundation.
+ * Copyright 2000-2005 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
LDAP_CONTROL_SUBENTRIES,
#endif
LDAP_CONTROL_VALUESRETURNFILTER,
+#ifdef LDAP_CONTROL_X_PERMISSIVE_MODIFY
+ LDAP_CONTROL_X_PERMISSIVE_MODIFY,
+#endif
NULL
};
bi->bi_controls = controls;
{ /* version check */
- int major, minor, patch;
+ int major, minor, patch, ver;
char *version = db_version( &major, &minor, &patch );
#ifdef HAVE_EBCDIC
char v2[1024];
version = v2;
#endif
- if( major != DB_VERSION_MAJOR ||
- minor != DB_VERSION_MINOR ||
- patch < DB_VERSION_PATCH )
+ ver = (major << 24) | (minor << 16) | patch;
+ if( ver < DB_VERSION_FULL )
{
Debug( LDAP_DEBUG_ANY,
LDAP_XSTRING(bdb_back_initialize) ": "
" got %s\n", version, 0, 0 );
}
- Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_back_initialize)
+ Debug( LDAP_DEBUG_TRACE, LDAP_XSTRING(bdb_back_initialize)
": %s\n", version, 0, 0 );
}
bi->bi_op_unbind = 0;
bi->bi_op_abandon = bdb_abandon;
- bi->bi_op_cancel = bdb_cancel;
+ bi->bi_op_cancel = bdb_abandon;
bi->bi_extended = bdb_extended;