diff options
author | Luke Leighton <lkcl@samba.org> | 1998-10-16 23:40:59 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-10-16 23:40:59 +0000 |
commit | 29434f496c18e816d864060d68f357aea6ef5de8 (patch) | |
tree | 7e38590e55adf56e3c7033315179702a41b77466 /source/rpcclient | |
parent | 710027a88a62565fbbe9eb5787e924d019906841 (diff) | |
download | samba-29434f496c18e816d864060d68f357aea6ef5de8.tar.gz samba-29434f496c18e816d864060d68f357aea6ef5de8.tar.xz samba-29434f496c18e816d864060d68f357aea6ef5de8.zip |
dce/rpc
Diffstat (limited to 'source/rpcclient')
-rw-r--r-- | source/rpcclient/cmd_samr.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/source/rpcclient/cmd_samr.c b/source/rpcclient/cmd_samr.c index 877abce66ee..a3fd5790954 100644 --- a/source/rpcclient/cmd_samr.c +++ b/source/rpcclient/cmd_samr.c @@ -141,6 +141,17 @@ void cmd_sam_test(struct client_info *info) fprintf(out_hnd, "SAM Encryption Test\n"); + cli_nt_set_ntlmssp_flgs(smb_cli, + NTLMSSP_NEGOTIATE_UNICODE | + NTLMSSP_NEGOTIATE_OEM | + NTLMSSP_NEGOTIATE_SIGN | + NTLMSSP_NEGOTIATE_SEAL | + NTLMSSP_NEGOTIATE_LM_KEY | + NTLMSSP_NEGOTIATE_NTLM | + NTLMSSP_NEGOTIATE_ALWAYS_SIGN | + NTLMSSP_NEGOTIATE_00001000 | + NTLMSSP_NEGOTIATE_00002000); + /* open SAMR session. */ res = res ? cli_nt_session_open(smb_cli, PIPE_SAMR) : False; @@ -527,9 +538,11 @@ void cmd_sam_enum_aliases(struct client_info *info) fstring alias_names [3]; uint32 num_als_usrs[3]; - fstrcpy(sid , info->dom.level5_sid); - fstrcpy(domain, info->dom.level5_dom); - + fstrcpy(sid , info->dom.level3_sid); + fstrcpy(domain, info->dom.level3_dom); +#if 0 + fstrcpy(sid , "S-1-5-20"); +#endif if (strlen(sid) == 0) { fprintf(out_hnd, "please use 'lsaquery' first, to ascertain the SID\n"); |