summaryrefslogtreecommitdiff
path: root/testprogs/ejs
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-12-14 22:14:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:18 -0500
commit89bb9a47de00d979f68469b705fb2960142cb0cb (patch)
tree22d0ec958f0b0c85b6d510452af15d722f9e6700 /testprogs/ejs
parent765256d435cdee92d69e1fe8dad591e68bcb08b7 (diff)
downloadsamba-89bb9a47de00d979f68469b705fb2960142cb0cb.tar.gz
samba-89bb9a47de00d979f68469b705fb2960142cb0cb.tar.bz2
samba-89bb9a47de00d979f68469b705fb2960142cb0cb.zip
r20176: Info method returns null object if the user is not found.
rafal (This used to be commit a20b05183d274a3a780ae197dc7014428739cc7a)
Diffstat (limited to 'testprogs/ejs')
-rwxr-xr-xtestprogs/ejs/ejsnet.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/testprogs/ejs/ejsnet.js b/testprogs/ejs/ejsnet.js
index a40406d74e..b39d888c39 100755
--- a/testprogs/ejs/ejsnet.js
+++ b/testprogs/ejs/ejsnet.js
@@ -30,11 +30,17 @@ if (status.is_ok != true) {
return -1;
}
+
var info = usr_ctx.Info(options.ARGV[1]);
-println("UserInfo.AccountName = " + info.AccountName);
-println("UserInfo.Description = " + info.Description);
-println("UserInfo.FullName = " + info.FullName);
-println("UserInfo.AcctExpiry = " + info.AcctExpiry);
+if (info != null) {
+ println("UserInfo.AccountName = " + info.AccountName);
+ println("UserInfo.Description = " + info.Description);
+ println("UserInfo.FullName = " + info.FullName);
+ println("UserInfo.AcctExpiry = " + info.AcctExpiry);
+} else {
+ println("Null UserInfo returned - account unknown");
+}
+
var status = usr_ctx.Delete(options.ARGV[1]);
if (status.is_ok != true) {