r12057: fixed authentication in ldb client tools
authorAndrew Tridgell <tridge@samba.org>
Mon, 5 Dec 2005 00:43:50 +0000 (00:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:47:02 +0000 (13:47 -0500)
source/lib/ldb/tools/cmdline.c

index 0be8951b9f0b0fe16dd3a5c2b319de54d8f42aa5..78dc84d01cf3f7e5e69e13cfd5972c0d36c652d7 100644 (file)
@@ -170,6 +170,9 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const
                if (ldb_set_opaque(ldb, "sessionInfo", system_session(ldb))) {
                        goto failed;
                }
+               if (ldb_set_opaque(ldb, "credentials", cmdline_credentials)) {
+                       goto failed;
+               }
 #endif
                if (ldb_connect(ldb, ret->url, flags, ret->options) != 0) {
                        fprintf(stderr, "Failed to connect to %s - %s\n",