Hello
I have created a directory on /etc/dt/config/Xsession.d (it didn't exist
before)
i created a file : 2000.logout with the following in:
case "${SUN_SUNRAY_TOKEN:-x}" in
pseudo.*)
# Pseudo token - no action
;;
*.*)
# Every other token is a card token
# Set up to kill this session on card remove
/opt/SUNWut/bin/utaction -i -d "kill $$" &
;;
*)
# No (valid) token set - no action
;;
esac
it seems to work the pseudo session doesn't get killed. but there's no
possibily to log in
the output of the utsession -p without card
Token ID Registered Name Unix ID Disp State
------------------------------ -------------------- ---------- ---- -----
Payflex.5012898700130100 user2 ??? 6 DI
the output od utsession -p with card:
Token ID Registered Name Unix ID Disp State
------------------------------ -------------------- ---------- ---- -----
Payflex.5012898700130100 user2 ??? 2 IC
the unix id that i log is never opens a session in the sunray..
and after introducing the username and password, i get black screen with
only mouse coursor.
yet again,
thank you for your assistance
Mario
On 09/09/2010 11:46 PM, Jörg Barfurth wrote:
Mario Garcia Ortiz schrieb:
@Jörg
does your method also kill the pseudo. section... when I retire the
smartcard there's a pseudo.[mac] that gets connected? that's also a
dtlogin session.. I think that if I add a script to Xsession.d it
will also kill the pseudo session and i end up with nothing.
My method as proposed would affect each session when it is
disconnected. That means:
- When you remove a smartcard from the reader, the session bound to
that smartcard is stopped and the 'pseudo' session shows a new login.
- When you insert a smartcard, the session running under the 'pseudo'
token is killed and a new login is offered under the smartcard token
i just need to have the payflex session (smartcard) stopped, logged
out when the smartcard is removed. without messing everything else up.
If you want the pseudo session to 'survive' while a card is inserted,
so it can be resumed (after unlocking) when the smartcard is removed
again, then you just need to adjust the Xsession.d scriptlet to filter
things accordingly:
# This will be sourced by the sessions script
case "${SUN_SUNRAY_TOKEN:-x}" in
pseudo.*)
# Pseudo token - no action
;;
*.*)
# Every other token is a card token
# Set up to kill this session on card remove
/opt/SUNWut/bin/utaction -i -d "kill $$" &
;;
*)
# No (valid) token set - no action
;;
esac
- Jörg
--
Mario GARCIA ORTIZ
System Engineer
Neerstalsestwg. 42 chée. de Neerstalle
B-1190 Brussels
Tel.: +32(0)2 333 40 00
[email protected]
http://www.absi.be
The information contained in or attached to this email is confidential and
may be privileged. If you have received it by mistake,please notify the
sender by return e-mail and delete it from your system.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users