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:
parent
765256d435
commit
89bb9a47de
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user