mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
r26540: Revert my previous commit after concerns raised by Andrew.
(This used to be commit 6ac86f8be7
)
This commit is contained in:
committed by
Stefan Metzmacher
parent
3e75f222bc
commit
0500b87092
@ -197,7 +197,7 @@ static int ejs_net_deleteuser(MprVarHandle eid, int argc, char **argv)
|
||||
}
|
||||
|
||||
/* domain where the account is to be deleted */
|
||||
userman_domain = (const char*)mprGetThisPtr(eid, "domain");
|
||||
userman_domain = (struct libnet_context *)mprGetThisPtr(eid, "domain");
|
||||
if (!userman_domain) {
|
||||
ejsSetErrorMsg(eid, "domain property returns null pointer");
|
||||
goto done;
|
||||
@ -260,7 +260,7 @@ static int ejs_net_userinfo(MprVarHandle eid, int argc, char **argv)
|
||||
}
|
||||
|
||||
/* domain where the user account is to be queried */
|
||||
userman_domain = (const char *)mprGetThisPtr(eid, "domain");
|
||||
userman_domain = (struct libnet_context *)mprGetThisPtr(eid, "domain");
|
||||
if (userman_domain == NULL) {
|
||||
ejsSetErrorMsg(eid, "domain property returns null pointer");
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user