summaryrefslogtreecommitdiff
path: root/lib/ldb-samba/samba_extensions.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ldb-samba/samba_extensions.c')
-rw-r--r--lib/ldb-samba/samba_extensions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ldb-samba/samba_extensions.c b/lib/ldb-samba/samba_extensions.c
index be9f36a5a7d..28c820ecbee 100644
--- a/lib/ldb-samba/samba_extensions.c
+++ b/lib/ldb-samba/samba_extensions.c
@@ -87,7 +87,8 @@ static int extensions_hook(struct ldb_context *ldb, enum ldb_module_hook_type t)
if (ldb_set_opaque(ldb, "sessionInfo", system_session(cmdline_lp_ctx))) {
return ldb_operr(ldb);
}
- if (ldb_set_opaque(ldb, "credentials", cmdline_credentials)) {
+ if (ldb_set_opaque(ldb, "credentials",
+ popt_get_cmdline_credentials())) {
return ldb_operr(ldb);
}
if (ldb_set_opaque(ldb, "loadparm", cmdline_lp_ctx)) {