I resolved. Now each user can connect to one windows.
I´ll copy you my solution, Thanks!!!

theUTTSCExec="/usr/bin/rdesktop"

DSK=`/opt/SUNWut/bin/utwho -c | grep $USER | awk '{print $5}' | cut -f2 -d
'.'`
TOKEN=`/opt/SUNWut/sbin/utdesktop -p $DSK | grep "Current User" | cut -f2 -d
'=' | cut -f2 -d ' '`
INFO=`/opt/SUNWut/sbin/utuser -p $TOKEN | grep Other | cut -f2 -d=`
theUTTSCArgs="-f $INFO"

date=`date +'%F %H:%M:%S'`
echo -e "$date\tDesktop $DSK used token $TOKEN and got $INFO" >>
/tmp/sunray.log





On 7/27/07, Craig Bender <[EMAIL PROTECTED]> wrote:
>
> What versions are you using.  utk* was part of the new kiosk preview,
> there may be some things missing.  It's changed somewhat but I'm not
> sure what is in the beta as I am running much later builds.  There would
> have been issues running the preview and upgrading the beta.
>
> Launch a terminal as an application and run set and send the list of
> variables that you see.
>
> There are other ways to get the token, but let's make sure we are on the
> right versions of everything.
>
>
>
> Martin Parodi wrote:
> > I haven´t this env variable $SUN_SUNRAY_TOKEN
> > I need get token ID because One smartcard connect to one windows and
> > other smartcard connect to other windows and so on.
> > So If I get this token ID then I´ll be able to associate it with one
> > windows session.
> > The problem is that I can´t gat the token ID as a normal user, I haven´t
> > $SUN_SUNRAY_TOKEN env, and utwho don´t bring me the token id.
> >
> > On 7/27/07, *Craig Bender * <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >     Why do you *need* to run utsession?  What are you trying to do?
> >
> >     echo $SUN_SUNRAY_TOKEN and a few other ways like utwho.  To get
> >     information associated with that token once you have it, you can run
> >     utuser as a normal user.
> >
> >
> >
> >     Martin Parodi wrote:
> >      > Hi all.
> >      > I want to configure the script for autologgin to windows using
> kiosk
> >      > mode and rdestop only inserting smartcard.
> >      > When I insert the smartcard, sunray server assing me a random
> user ID
> >      > like "utku2".
> >      > I need to execute /opt/SUNWut/sbin/./utsession to read the token
> ID.
> >      > My problem is that the logged user ( utku2 ) can´t access to this
> >      > command ( utsession ), so I need to find any other way to read
> >     the token ID.
> >      > Any idea?
> >      >
> >      > Thanks
> >      > MP
> >      >
> >      >
> >      >
> >
> ------------------------------------------------------------------------
> >      >
> >      > _______________________________________________
> >      > SunRay-Users mailing list
> >      > [email protected] <mailto:[email protected]>
> >      > http://www.filibeto.org/mailman/listinfo/sunray-users
> >     _______________________________________________
> >     SunRay-Users mailing list
> >     [email protected] <mailto:[email protected]>
> >     http://www.filibeto.org/mailman/listinfo/sunray-users
> >     <http://www.filibeto.org/mailman/listinfo/sunray-users>
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > SunRay-Users mailing list
> > [email protected]
> > http://www.filibeto.org/mailman/listinfo/sunray-users
> _______________________________________________
> SunRay-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/sunray-users
>
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to