Quayle, Bill wrote:
Isn't it "utsession -p -t $SUN_SUNRAY_TOKEN"?

While this will work, utsession is pretty expensive (it connects to utauthd and performs a status callback for no good reason in this case) and should be avoided for a simple mapping like this.

But I was wrong - I meant to say that the cheapest way to map the token is "utuser -p $SUN_SUNRAY_TOKEN". It just talks to SRDS and doesn't place any load on utauthd.

A simple test to demonstrate this is:
% truss -tconnect -vconnect utsession -p -t $SUN_SUNRAY_TOKEN

In addition to connecting to port 7012 (SRDS) you can see it connects to port 7010 (which is utauthd) on fd 6. You can add "-w6" to see that it's doing a "status" callback. Using utauthd is an expensive way to do the mapping particularly if you're doing this frequently, e.g. in a Kiosk environment.

Then try it with "utuser -p $SUN_SUNRAY_TOKEN" and you can see it only connects to port 7012, which is SRDS, so it can look up the mapping.

-Bob


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Bob Doolittle
Sent: Wednesday, August 05, 2009 4:42 PM
To: [email protected]; SunRay-Users mailing list
Subject: Re: [SunRay-Users] utbwlist2 not showing token ID

Kent Peacock wrote:
On 08/05/09 13:48, Jacob Grundmeier wrote:
I have someone trying to run utbwlist2 -a and it's not showing the token but rather a user.xxxxxxxxxxxx format. It looks something like this but with the IP as the first column(I left it off).

user.1248091708-8080                   4   0.007      17   2%

Any idea what's going on here? They are all using cards that have been registered.
That's what registered tokens look like.

If you need to map it back to the raw card token you can use "utdesktop -p $SUN_SUNRAY_TOKEN".

-Bob

_______________________________________________
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