summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/ejs/smbcalls_ldb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbcalls_ldb.c b/source4/scripting/ejs/smbcalls_ldb.c
index 39698947d7..1a224605ee 100644
--- a/source4/scripting/ejs/smbcalls_ldb.c
+++ b/source4/scripting/ejs/smbcalls_ldb.c
@@ -399,12 +399,12 @@ static int ejs_ldbConnect(MprVarHandle eid, int argc, char **argv)
credentials = mprGetProperty(this, "credentials", NULL);
if (credentials) {
- creds = mprGetPtr(credentials, "creds");
+ creds = talloc_get_type(mprGetPtr(credentials, "creds"), struct cli_credentials);
}
session = mprGetProperty(this, "session_info", NULL);
if (session) {
- session_info = mprGetPtr(session, "session_info");
+ session_info = talloc_get_type(mprGetPtr(session, "session_info"), struct auth_session_info);
}
dbfile = argv[0];