[FreeNX-kNX] Problem connecting with nxclient to nxserver [SOLVED]

chris at ccburton.com chris at ccburton.com
Tue Jul 6 07:56:00 UTC 2010


chris at ccburton.com wrote on 05/07/2010 21:34:21:

oops, missed the other MD5SUM in passdb  !
I hate working late . . . then early.

Watch the line wrapping.


--- nxserver    2009-12-08 20:06:13.000000000 +0000
+++ nxserver.mod        2009-12-09 08:47:18.000000000 +0000
@@ -105,7 +105,7 @@

 passdb_get_crypt_pass()
 {
-       echo "$@" | $COMMAND_MD5SUM | cut -d" " -f1
+       echo "$@" | $COMMAND_MD5SUM | tr " " "\n" | egrep "^.{32}$"
 }

 passdb_get_pass()
@@ -352,7 +352,7 @@
                export DESKTOP_SHARING_IDS=""
                for i in $(LC_ALL=C netstat -ln --protocol=unix | egrep 
'X11-unix/X[0-9]$' | sed 's/.*X\(.*\)/\1/g')
                do
-                       uniqueid=$(echo $[$RANDOM*$RANDOM] | 
$COMMAND_MD5SUM | cut -d" " -f1 | tr "[a-z]" "[A-Z]")
+                       uniqueid=$(echo $[$RANDOM*$RANDOM] | 
$COMMAND_MD5SUM | tr " " "\n" | egrep "^.{32}$" | tr "[a-z]" "[A-Z]")
                        DESKTOP_SHARING_IDS="$DESKTOP_SHARING_IDS 
$uniqueid=$i"
                        printf "%-7s %-16s %32s %8s %5s %-14s %-11s %s\n" 
"$i" "vnc-local" "$uniqueid" "--------" "$udepth" "$(echo $3 | cut -d'x' 
-f1,2)" "Running" "X$i (Local)" >> $TMPFILE
                done
@@ -1489,7 +1489,7 @@
                        return
                fi

-               uniqueid=$(echo $[$RANDOM*$RANDOM] | $COMMAND_MD5SUM | cut 
-d" " -f1 | tr "[a-z]" "[A-Z]")
+               uniqueid=$(echo $[$RANDOM*$RANDOM] | $COMMAND_MD5SUM | tr 
" " "\n" | egrep "^.{32}$" | tr "[a-z]" "[A-Z]")

 
FULL_PARAMS="$PARAMS&user=$USER&userip=$USERIP&uniqueid=$uniqueid&display=$SESS_DISPLAY&host=$SERVER_HOST"
                log_secure "6" "$FULL_PARAMS"



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20100706/63f578ac/attachment.html>


More information about the FreeNX-kNX mailing list