Discussion:
[Freerdp-devel] How could I create a file called SAM in "SAM" format?
Yorjing Tsai
2012-10-06 09:04:12 UTC
Permalink
Hi everybody:
I see https://github.com/FreeRDP/FreeRDP/issues/715 these days.
And I've built xfreerdp-server soon.

But when I active xfreerdp-server in Ubuntu 12.04 64-bit,
I access Ubuntu by Win7 RDP Client,
the message shows in Ubuntu's console as follows:

Listening on 0.0.0.0 port 3389.
bind: Address already in use
We've got a client XXX.XXX.XXX.XXX(Win7 IP)
Client Security: NLA:1 TLS:1 RDP:0
Server Security: NLA:1 TLS:0 RDP:0
Negotiated Security: NLA:1 TLS:0 RDP:0
TLS connection accepted
Could not open SAM file!
Could not open SAM file!
Message Integrity Check (MIC) verification failed!
Expected MIC:
0000 7e e5 6c d6 0c 66 71 5b d2 6e e1 3e 51 f3 14 1d ~.l..fq[.n.>Q...
Actual MIC:
0000 b1 6a 39 8c 9d 80 b7 8f ed 5d b3 5d 43 e3 e8 01 .j9......].]C...
AcceptSecurityContext status: 0x8009030F
client authentication failure
Failed to check freerdp file descriptor
Client XXX.XXX.XXX.XXX disconnected.

The message tells me "It can't open SAM file".
However I have no idea about how to create a SAM file and put it in
/etc/winpr.
Who can help me to create a SAM file and let my xfreerdp-server can work
successfully?
Thank you for your help!
Marc-André Moreau
2012-10-06 14:19:12 UTC
Permalink
The server looks for a file called /etc/winpr/SAM

It's a text file with line entries in the same format as samdump. There is
a tool in the sources that gets built:
winpr/tools/hash/winpr-hash

You can call it this way:

winpr-hash -u awakecoding -p password
awakecoding:::8846f7eaee8fb117ad06bdd830b7586c:::

and paste the line that the tool outputs to /etc/winpr/SAM.

Here's the help for the tool:

winpr-hash: NTLM hashing tool
Usage: winpr-hash -u <username> -p <password> [-d <domain>]
Post by Yorjing Tsai
I see https://github.com/FreeRDP/FreeRDP/issues/715 these days.
And I've built xfreerdp-server soon.
But when I active xfreerdp-server in Ubuntu 12.04 64-bit,
I access Ubuntu by Win7 RDP Client,
Listening on 0.0.0.0 port 3389.
bind: Address already in use
We've got a client XXX.XXX.XXX.XXX(Win7 IP)
Client Security: NLA:1 TLS:1 RDP:0
Server Security: NLA:1 TLS:0 RDP:0
Negotiated Security: NLA:1 TLS:0 RDP:0
TLS connection accepted
Could not open SAM file!
Could not open SAM file!
Message Integrity Check (MIC) verification failed!
0000 7e e5 6c d6 0c 66 71 5b d2 6e e1 3e 51 f3 14 1d
~.l..fq[.n.>Q...
0000 b1 6a 39 8c 9d 80 b7 8f ed 5d b3 5d 43 e3 e8 01
.j9......].]C...
AcceptSecurityContext status: 0x8009030F
client authentication failure
Failed to check freerdp file descriptor
Client XXX.XXX.XXX.XXX disconnected.
The message tells me "It can't open SAM file".
However I have no idea about how to create a SAM file and put it in
/etc/winpr.
Who can help me to create a SAM file and let my xfreerdp-server can work
successfully?
Thank you for your help!
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Freerdp-devel mailing list
https://lists.sourceforge.net/lists/listinfo/freerdp-devel
Yorjing Tsai
2012-10-06 14:38:52 UTC
Permalink
Post by Marc-André Moreau
The server looks for a file called /etc/winpr/SAM
It's a text file with line entries in the same format as samdump. There is
winpr/tools/hash/winpr-hash
winpr-hash -u awakecoding -p password
and paste the line that the tool outputs to /etc/winpr/SAM.
winpr-hash: NTLM hashing tool
Usage: winpr-hash -u <username> -p <password> [-d <domain>]
Thank you for your help sincerely
My xfreerdp-server can work successfully

But when I use Win7 default RDP Client to connect to xfreerdp-server,
the error message shows in console are as follows:

Listening on 0.0.0.0 port 3389.
bind: Address already in use
We've got a client 118.167.76.141
Client Security: NLA:1 TLS:1 RDP:0
Server Security: NLA:1 TLS:0 RDP:0
Negotiated Security: NLA:1 TLS:0 RDP:0
TLS connection accepted
SSL_read: I/O error
credssp_recv() error: -1
client authentication failure
Failed to check freerdp file descriptor
Client 118.167.76.141 disconnected.
We've got a client 118.167.76.141
Client Security: NLA:1 TLS:1 RDP:0
Server Security: NLA:1 TLS:0 RDP:0
Negotiated Security: NLA:1 TLS:0 RDP:0
TLS connection accepted
Accepted client: YORJING-PC
Accepted channels: rdpdr rdpsnd drdynvc cliprdr
Client 118.167.76.141 is activated and wants to login automatically as \pc2
Client requested desktop: 1920x1080x16
Client does not support RemoteFX
Failed to check freerdp file descriptor
Client 118.167.76.141 disconnected.

And then I use xfreerdp client to connect to xfreerdp-server,
it works smoothly.

In other words, we can't use Win7 default RDP client to connect to xfreerdp-
server.Is it normal?

It's my first time to contact freerdp.
Thank you for your teaching again.
Post by Marc-André Moreau
Post by Yorjing Tsai
I see https://github.com/FreeRDP/FreeRDP/issues/715 these days.
And I've built xfreerdp-server soon.
But when I active xfreerdp-server in Ubuntu 12.04 64-bit,
I access Ubuntu by Win7 RDP Client,
Listening on 0.0.0.0 port 3389.
bind: Address already in use
We've got a client XXX.XXX.XXX.XXX(Win7 IP)
Client Security: NLA:1 TLS:1 RDP:0
Server Security: NLA:1 TLS:0 RDP:0
Negotiated Security: NLA:1 TLS:0 RDP:0
TLS connection accepted
Could not open SAM file!
Could not open SAM file!
Message Integrity Check (MIC) verification failed!
0000 7e e5 6c d6 0c 66 71 5b d2 6e e1 3e 51 f3 14 1d
~.l..fq[.n.>Q...
0000 b1 6a 39 8c 9d 80 b7 8f ed 5d b3 5d 43 e3 e8 01
.j9......].]C...
AcceptSecurityContext status: 0x8009030F
client authentication failure
Failed to check freerdp file descriptor
Client XXX.XXX.XXX.XXX disconnected.
The message tells me "It can't open SAM file".
However I have no idea about how to create a SAM file and put it in
/etc/winpr.
Who can help me to create a SAM file and let my xfreerdp-server can work
successfully?
Thank you for your help!
----------------------------------------------------------------------------
--
Post by Marc-André Moreau
Post by Yorjing Tsai
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
Marc-André Moreau
2012-10-06 14:53:00 UTC
Permalink
xfreerdp-server only supports RemoteFX, so you need a RemoteFX-capable
client configured to request RemoteFX support from the server. IIRC, you'd
need Windows 7 *SP1*, and put all connection settings to maximum (in the
Experience tab of mstsc, set it LAN)

It should work, but be aware that xfreerdp-server is still considered
experimental so don't be surprised to find glitches
Post by Yorjing Tsai
Post by Marc-André Moreau
The server looks for a file called /etc/winpr/SAM
It's a text file with line entries in the same format as samdump. There
is
Post by Marc-André Moreau
winpr/tools/hash/winpr-hash
winpr-hash -u awakecoding -p password
and paste the line that the tool outputs to /etc/winpr/SAM.
winpr-hash: NTLM hashing tool
Usage: winpr-hash -u <username> -p <password> [-d <domain>]
Thank you for your help sincerely
My xfreerdp-server can work successfully
But when I use Win7 default RDP Client to connect to xfreerdp-server,
Listening on 0.0.0.0 port 3389.
bind: Address already in use
We've got a client 118.167.76.141
Client Security: NLA:1 TLS:1 RDP:0
Server Security: NLA:1 TLS:0 RDP:0
Negotiated Security: NLA:1 TLS:0 RDP:0
TLS connection accepted
SSL_read: I/O error
credssp_recv() error: -1
client authentication failure
Failed to check freerdp file descriptor
Client 118.167.76.141 disconnected.
We've got a client 118.167.76.141
Client Security: NLA:1 TLS:1 RDP:0
Server Security: NLA:1 TLS:0 RDP:0
Negotiated Security: NLA:1 TLS:0 RDP:0
TLS connection accepted
Accepted client: YORJING-PC
Accepted channels: rdpdr rdpsnd drdynvc cliprdr
Client 118.167.76.141 is activated and wants to login automatically as \pc2
Client requested desktop: 1920x1080x16
Client does not support RemoteFX
Failed to check freerdp file descriptor
Client 118.167.76.141 disconnected.
And then I use xfreerdp client to connect to xfreerdp-server,
it works smoothly.
In other words, we can't use Win7 default RDP client to connect to xfreerdp-
server.Is it normal?
It's my first time to contact freerdp.
Thank you for your teaching again.
Post by Marc-André Moreau
On Sat, Oct 6, 2012 at 5:04 AM, Yorjing Tsai <yorjing <at> gmail.com>
Post by Yorjing Tsai
I see https://github.com/FreeRDP/FreeRDP/issues/715 these days.
And I've built xfreerdp-server soon.
But when I active xfreerdp-server in Ubuntu 12.04 64-bit,
I access Ubuntu by Win7 RDP Client,
Listening on 0.0.0.0 port 3389.
bind: Address already in use
We've got a client XXX.XXX.XXX.XXX(Win7 IP)
Client Security: NLA:1 TLS:1 RDP:0
Server Security: NLA:1 TLS:0 RDP:0
Negotiated Security: NLA:1 TLS:0 RDP:0
TLS connection accepted
Could not open SAM file!
Could not open SAM file!
Message Integrity Check (MIC) verification failed!
0000 7e e5 6c d6 0c 66 71 5b d2 6e e1 3e 51 f3 14 1d ~.l..fq[.n.>Q...
0000 b1 6a 39 8c 9d 80 b7 8f ed 5d b3 5d 43 e3 e8 01 .j9......].]C...
AcceptSecurityContext status: 0x8009030F
client authentication failure
Failed to check freerdp file descriptor
Client XXX.XXX.XXX.XXX disconnected.
The message tells me "It can't open SAM file".
However I have no idea about how to create a SAM file and put it
in
Post by Marc-André Moreau
Post by Yorjing Tsai
/etc/winpr.
Who can help me to create a SAM file and let my xfreerdp-server
can
Post by Marc-André Moreau
Post by Yorjing Tsai
work
successfully?
Thank you for your help!
----------------------------------------------------------------------------
--
Post by Marc-André Moreau
Post by Yorjing Tsai
Don't let slow site performance ruin your business. Deploy New Relic
APM
Post by Marc-André Moreau
Post by Yorjing Tsai
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel
------------------------------------------------------------------------------
Post by Marc-André Moreau
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Freerdp-devel mailing list
https://lists.sourceforge.net/lists/listinfo/freerdp-devel
Yorjing Tsai
2012-10-06 15:12:42 UTC
Permalink
Post by Marc-André Moreau
xfreerdp-server only supports RemoteFX, so you need a RemoteFX-capable
client configured to request RemoteFX support from the server. IIRC, you'd
need Windows 7 *SP1*, and put all connection settings to maximum (in the
Experience tab of mstsc, set it LAN)
It should work, but be aware that xfreerdp-server is still considered
experimental so don't be surprised to find glitches
Can I disable RemoteFX in xfreerdp-server?
I'd like to comparison the performance between with RemoteFX and without
RemoteFX.
Thank you for your help sincerely
Bernhard Miklautz
2012-10-08 08:36:40 UTC
Permalink
Hi,
Post by Yorjing Tsai
Can I disable RemoteFX in xfreerdp-server?
I'd like to comparison the performance between with RemoteFX and without
RemoteFX.
xfreerdp-server currently only supports RemoteFX. So disabling it is not
possible at the moment.

Best regard,
Bernhard

Continue reading on narkive:
Loading...