NOTE: Newlines in the return value is acceptible in search entries (ie.
when returning base64 encoded binary entries).
+
-------------------------------------
Synopsis of Builtin Commands and Vars
-------------------------------------
Allows you to send debug messages through OpenLDAP's native debuging
system, this is sent as a LDAP_DEBUG_ANY and will be logged. Useful for
debugging scripts or logging bind failures.
-
/* abandon.c - tcl abandon routine
*
- * $Id: tcl_abandon.c,v 1.3 1999/02/18 01:18:39 bcollins Exp $
+ * $Id: tcl_abandon.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
if (code != TCL_OK) {
err = LDAP_OPERATIONS_ERROR;
- Debug (LDAP_DEBUG_ANY, "tcl_abandon_error: %s\n", results,
+ Debug (LDAP_DEBUG_SHELL, "tcl_abandon_error: %s\n", results,
0, 0);
}
/* add.c - tcl add routine
*
- * $Id: tcl_add.c,v 1.3 1999/02/18 01:18:39 bcollins Exp $
+ * $Id: tcl_add.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
if (code != TCL_OK) {
err = LDAP_OPERATIONS_ERROR;
- Debug (LDAP_DEBUG_ANY, "tcl_add_error: %s\n", results, 0, 0);
+ Debug (LDAP_DEBUG_SHELL, "tcl_add_error: %s\n", results, 0, 0);
} else {
interp_send_results (be, conn, op, results, NULL, 0);
}
/* bind.c - tcl bind routines
*
- * $Id: tcl_bind.c,v 1.3 1999/02/18 01:18:39 bcollins Exp $
+ * $Id: tcl_bind.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
if (code != TCL_OK) {
err = LDAP_OPERATIONS_ERROR;
- Debug (LDAP_DEBUG_ANY, "tcl_bind_error: %s\n", results, 0, 0);
+ Debug (LDAP_DEBUG_SHELL, "tcl_bind_error: %s\n", results, 0, 0);
} else {
err = interp_send_results (be, conn, op, results, NULL, 0);
}
/* compare.c - tcl compare routines
*
- * $Id: tcl_compare.c,v 1.3 1999/02/18 01:18:39 bcollins Exp $
+ * $Id: tcl_compare.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
if (code != TCL_OK) {
err = LDAP_OPERATIONS_ERROR;
- Debug (LDAP_DEBUG_ANY, "tcl_compare_error: %s\n", results,
+ Debug (LDAP_DEBUG_SHELL, "tcl_compare_error: %s\n", results,
0, 0);
} else {
interp_send_results (be, conn, op, results, NULL, 0);
/* delete.c - tcl delete routines
*
- * $Id: tcl_delete.c,v 1.3 1999/02/18 01:18:39 bcollins Exp $
+ * $Id: tcl_delete.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
if (code != TCL_OK) {
err = LDAP_OPERATIONS_ERROR;
- Debug (LDAP_DEBUG_ANY, "tcl_delete_error: %s\n", results,
+ Debug (LDAP_DEBUG_SHELL, "tcl_delete_error: %s\n", results,
0, 0);
} else {
interp_send_results (be, conn, op, results, NULL, 0);
/* modify.c - tcl modify routines
*
- * $Id: tcl_modify.c,v 1.3 1999/02/18 01:18:39 bcollins Exp $
+ * $Id: tcl_modify.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
if (code != TCL_OK) {
err = LDAP_OPERATIONS_ERROR;
- Debug (LDAP_DEBUG_ANY, "tcl_modify_error: %s\n", results,
+ Debug (LDAP_DEBUG_SHELL, "tcl_modify_error: %s\n", results,
0, 0);
} else {
interp_send_results (be, conn, op, results, NULL, 0);
/* modrdn.c - tcl modify rdn routines
*
- * $Id: tcl_modrdn.c,v 1.3 1999/02/18 01:18:39 bcollins Exp $
+ * $Id: tcl_modrdn.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
if (code != TCL_OK) {
err = LDAP_OPERATIONS_ERROR;
- Debug (LDAP_DEBUG_ANY, "tcl_modrdn_error: %s\n", results,
+ Debug (LDAP_DEBUG_SHELL, "tcl_modrdn_error: %s\n", results,
0, 0);
} else {
interp_send_results (be, conn, op, results, NULL, 0);
/* search.c - tcl search routines
*
- * $Id: tcl_search.c,v 1.3 1999/02/18 01:18:39 bcollins Exp $
+ * $Id: tcl_search.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
if (code != TCL_OK) {
err = LDAP_OPERATIONS_ERROR;
- Debug (LDAP_DEBUG_ANY, "tcl_search_error: %s\n", results,
+ Debug (LDAP_DEBUG_SHELL, "tcl_search_error: %s\n", results,
0, 0);
} else {
interp_send_results (be, conn, op, results, NULL, 0);
/* unbind.c - tcl unbind routines
*
- * $Id: tcl_unbind.c,v 1.3 1999/02/18 01:18:39 bcollins Exp $
+ * $Id: tcl_unbind.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
free (command);
if (code != TCL_OK) {
- Debug (LDAP_DEBUG_ANY, "tcl_unbind_error: %s\n", results,
+ Debug (LDAP_DEBUG_SHELL, "tcl_unbind_error: %s\n", results,
0, 0);
}
/* result.c - tcl backend utility functions
*
- * $Id: tcl_util.c,v 1.3 1999/02/18 01:18:39 bcollins Exp $
+ * $Id: tcl_util.c,v 1.4 1999/02/19 06:55:20 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
break;
}
if ((e = str2entry (buf)) == NULL) {
- Debug (LDAP_DEBUG_ANY,
+ Debug (LDAP_DEBUG_SHELL,
"str2entry(%s) failed\n",
buf, 0, 0);
} else {
)
{
if (argv[1] != NULL) {
- Debug (LDAP_DEBUG_ANY, "tcl_debug: %s\n", argv[1], 0, 0);
+ Debug (LDAP_DEBUG_SHELL, "tcl_debug: %s\n", argv[1], 0, 0);
}
return TCL_OK;
}
f = fopen (script, "r");
if (f == NULL) {
- Debug (LDAP_DEBUG_ANY, "Could not open scriptpath %s\n", script,
+ Debug (LDAP_DEBUG_SHELL, "Could not open scriptpath %s\n", script,
0, 0);
return;
}
fclose (f);
code = Tcl_EvalFile (my_tcl, script);
if (code != TCL_OK) {
- Debug (LDAP_DEBUG_ANY, "%s: %s\n", script,
+ Debug (LDAP_DEBUG_SHELL, "%s: %s\n", script,
Tcl_GetVar (my_tcl, "errorInfo", TCL_GLOBAL_ONLY), 0);
- Debug (LDAP_DEBUG_ANY, "%s: error at line\n", script,
+ Debug (LDAP_DEBUG_SHELL, "%s: error at line\n", script,
my_tcl->errorLine, 0);
return;
}