1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

r20176: Info method returns null object if the user is not found.

rafal
(This used to be commit a20b05183d274a3a780ae197dc7014428739cc7a)
This commit is contained in:
Rafal Szczesniak 2006-12-14 22:14:07 +00:00 committed by Gerald (Jerry) Carter
parent 765256d435
commit 89bb9a47de

View File

@ -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) {