mirror of
https://github.com/samba-team/samba.git
synced 2025-10-25 19:33:18 +03:00
r8256: - allow rpc calls from non-command line ejs contexts by creating a set
of null credentials to use if cmdline_credentials is not setup - hide the length and size elements of a lsa_String from js scripts, so you can use a lsa_String just as an ordinary string without knowing its a structure. We won't do this with all structures, just a few core ones that are used often enough to warrant it. - make sure returned ldb arrays have a length property
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
354cdf893d
commit
12d2092dd8
@@ -90,6 +90,7 @@ NTSTATUS ejs_push_dom_sid(struct ejs_rpc *ejs,
|
||||
NTSTATUS ejs_push_null(struct ejs_rpc *ejs, struct MprVar *v, const char *name);
|
||||
BOOL ejs_pull_null(struct ejs_rpc *ejs, struct MprVar *v, const char *name);
|
||||
|
||||
|
||||
#define EJS_ALLOC_SIZE(ejs, s, size) do { \
|
||||
(s) = talloc_size(ejs, size); \
|
||||
if (!(s)) return ejs_panic(ejs, "out of memory"); \
|
||||
|
||||
Reference in New Issue
Block a user