diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-23 02:00:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:22 -0500 |
commit | f5f18f2d1821c0edb4486c32555ed4a56daf6920 (patch) | |
tree | 4ce084be738a47763f0792fbc95680c0fe7221dc | |
parent | 60eb9f87a0a0c96cf67a33516b34ea8cd14dd5e9 (diff) | |
download | samba-f5f18f2d1821c0edb4486c32555ed4a56daf6920.tar.gz samba-f5f18f2d1821c0edb4486c32555ed4a56daf6920.tar.bz2 samba-f5f18f2d1821c0edb4486c32555ed4a56daf6920.zip |
r9498: converted the SWAT regedit backend code to use the OO calls
(This used to be commit c22baee5aafb2937ddfb71942eef5c69544e823c)
-rw-r--r-- | swat/scripting/server/regedit.esp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/swat/scripting/server/regedit.esp b/swat/scripting/server/regedit.esp index a13ad8afe5..58ba695c47 100644 --- a/swat/scripting/server/regedit.esp +++ b/swat/scripting/server/regedit.esp @@ -12,8 +12,7 @@ libinclude("server_call.js"); */ function enum_keys(binding, path) { printf("enum_keys(%s, %s)\n", binding, path); - var reg = winreg_init(); - security_init(reg); + var reg = winregObj(); reg.credentials = session.authinfo.credentials; @@ -22,7 +21,7 @@ function enum_keys(binding, path) { printVars(status); return undefined; } - return winreg_enum_path(reg, path); + return reg.enum_path(path); } /* @@ -30,8 +29,7 @@ function enum_keys(binding, path) { */ function enum_values(binding, path) { printf("enum_values(%s, %s)\n", binding, path); - var reg = winreg_init(); - security_init(reg); + var reg = winregObj(); reg.credentials = session.authinfo.credentials; @@ -40,7 +38,7 @@ function enum_values(binding, path) { printVars(status); return undefined; } - return winreg_enum_values(reg, path); + return reg.enum_values(path); } /* register a call for clients to make */ |