summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-18 23:15:45 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-18 23:15:45 +0000
commitda517a3ff4c133a1475e8e63054201551d132436 (patch)
treea135ac5704692397cd99a230d01db1549ad552fb /source3/rpc_server
parent4245278ca3fea4a6b79daf58a8712a2774811c58 (diff)
downloadsamba-da517a3ff4c133a1475e8e63054201551d132436.tar.gz
samba-da517a3ff4c133a1475e8e63054201551d132436.tar.bz2
samba-da517a3ff4c133a1475e8e63054201551d132436.zip
responses to UDP samquery go back to SERVER<00> not DOMAIN<1c>, the
request name. modified createuser rpcclient command to examine name being added. if it ends in a $, assume that a workstation trust account is being added. (This used to be commit 4aea261cb0e5f34255ff83271eb5cadb0eb78bc9)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c
index 4761ceb014..a220e38b07 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -2750,8 +2750,9 @@ static void samr_reply_create_user(SAMR_Q_CREATE_USER *q_u,
SAMR_R_CREATE_USER r_u;
POLICY_HND pol;
uint32 status = 0x0;
- uint32 user_rid = 0xffffffff;
+ uint32 user_rid = 0x0;
BOOL pol_open = False;
+ uint32 unk_0 = 0x30;
/* find the machine account: tell the caller if it exists.
lkclXXXX i have *no* idea if this is a problem or not
@@ -2786,7 +2787,7 @@ static void samr_reply_create_user(SAMR_Q_CREATE_USER *q_u,
pstring msg_str;
if (!local_password_change(user_name, True,
- q_u->acb_info | ACB_DISABLED, 0xffff,
+ q_u->acb_info | ACB_DISABLED | ACB_PWNOTREQ, 0xffff,
NULL,
err_str, sizeof(err_str),
msg_str, sizeof(msg_str)))
@@ -2805,6 +2806,7 @@ static void samr_reply_create_user(SAMR_Q_CREATE_USER *q_u,
else
{
user_rid = sam_pass->user_rid;
+ unk_0 = 0x000703ff;
}
}
}
@@ -2823,7 +2825,7 @@ static void samr_reply_create_user(SAMR_Q_CREATE_USER *q_u,
DEBUG(5,("samr_create_user: %d\n", __LINE__));
- make_samr_r_create_user(&r_u, &pol, 0x000703ff, user_rid, status);
+ make_samr_r_create_user(&r_u, &pol, unk_0, user_rid, status);
/* store the response in the SMB stream */
samr_io_r_create_user("", &r_u, rdata, 0);