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


--
Jörg Barfurth                        http://blogs.sun.com/joergb

Disclaimer: I am employed by Oracle. The statements and opinions
expressed here are my own and do not necessarily represent those
of Oracle Corporation.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to