1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r20163: Return null object if no user is found.

rafal
This commit is contained in:
Rafal Szczesniak 2006-12-13 23:37:22 +00:00 committed by Gerald (Jerry) Carter
parent 0c37360577
commit af539fec4a

View File

@ -367,11 +367,15 @@ static int ejs_net_userinfo(MprVarHandle eid, int argc, char **argv)
status = libnet_UserInfo(ctx, mem_ctx, &req);
if (!NT_STATUS_IS_OK(status)) {
ejsSetErrorMsg(eid, "%s", req.out.error_string);
/* create null object to return */
mprUserInfo = mprCreateNullVar();
goto done;
}
/* create UserInfo object */
mprUserInfo = mprObject("UserInfo");
mprAccountName = mprString(req.out.account_name);
mprFullName = mprString(req.out.full_name);
mprDescription = mprString(req.out.description);