summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/smartauth/smartauthmon.sh.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/smartauth/smartauthmon.sh.in b/etc/smartauth/smartauthmon.sh.in
index 553cb4d..252aae5 100644
--- a/etc/smartauth/smartauthmon.sh.in
+++ b/etc/smartauth/smartauthmon.sh.in
@@ -376,6 +376,7 @@ while [[ 1 == 1 ]]; do
udisplay=":${index}"
if [[ $lverify == $cverify ]]; then
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface quit"
+ su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface enable false"
/opt/kde3/bin/kdmctl activate $udisplay
else
echo "EUnauthorized SmartCard Inserted" > /tmp/ksocket-global/kdesktoplockcontrol &
@@ -467,6 +468,7 @@ while [[ 1 == 1 ]]; do
while [[ $OUTPUT -eq 0 ]]; do
sleep 1
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface quit"
+ su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface enable false"
echo "exit" | scriptor 2>/dev/null 1>/dev/null
OUTPUT=$?
if [[ $smartcard_slave == "SLAVE" ]]; then
@@ -586,6 +588,7 @@ while [[ 1 == 1 ]]; do
blankresult=""
while [[ $blankresult != "true" ]]; do
/opt/kde3/bin/kdmctl -g activate $udisplay
+ su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface enable true"
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface lock"
blankresult=$(su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface isBlanked")
if [[ $? != 0 ]]; then