+
+ } else if ( strcasecmp( argv[0], "response-callback" ) == 0 ) {
+ /* set to "tail" to put the response callback
+ * at the end of the callback list; this is required
+ * in case other overlays are present, so that the
+ * final entry is cached. */
+
+ if ( argc < 2 ) {
+ Debug( LDAP_DEBUG_ANY,
+ "missing specifier for \"response-callback {head(default)|tail}\" "
+ "callback position\n", 0, 0, 0 );
+ return 1;
+ }
+
+ if ( strcasecmp( argv[1], "head" ) == 0 ) {
+ cm->response_cb = PCACHE_RESPONSE_CB_HEAD;
+
+ } else if ( strcasecmp( argv[1], "tail" ) == 0 ) {
+ cm->response_cb = PCACHE_RESPONSE_CB_TAIL;
+
+ } else {
+ Debug( LDAP_DEBUG_ANY,
+ "unknown specifier %s for \"response-callback {head(default)|tail}\" "
+ "callback position\n", argv[1], 0, 0 );
+ return 1;
+ }