HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //etc/pam_pkcs11/pkcs11_eventmgr.conf
# Sample pkcs11_eventmgr configuration file
#
pkcs11_eventmgr {

	# Run in background? Implies debug=false if true
	daemon = true;

	# show debug messages?
	debug = false;
	
	# polling time in seconds
	polling_time = 1;

	# expire time in seconds
	# default = 0 ( no expire )
	expire_time = 0;
	
	# pkcs11 module to use
	pkcs11_module = /usr/$LIB/libcoolkeypk11.so;

	#
	# list of events and actions

	# Card inserted
	event card_insert {
		# what to do if an action fail?
		# ignore  : continue to next action
		# return  : end action sequence
		# quit    : end program
		on_error = ignore ;

		# You can enter several, comma-separated action entries
		# they will be executed in turn
		#action = "/usr/sbin/gdm-safe-restart",
		#         "/usr/X11R6/bin/xscreensaveer-command -deactivate";
		action = "/usr/sbin/gdm-safe-restart";
	}

	# Card has been removed
	event card_remove { 
		on_error = ignore;
		#action = "/usr/sbin/gdm-safe-restart",
		#         "/usr/X11R6/bin/xscreensaveer-command -lock";
		action = "/usr/sbin/gdm-safe-restart";
	}

	# Too much time card removed
	event expire_time { 
		on_error = ignore;
		action = "/bin/false";
	}
}