fix the closing session bug, even if next user authentication is failed. 86/37386/5
authorSangjung Woo <sangjung.woo@samsung.com>
Wed, 25 Mar 2015 12:27:41 +0000 (21:27 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Fri, 10 Apr 2015 05:36:40 +0000 (14:36 +0900)
commit43680684af032c2d3d202fa692e08a87d6044b7e
tree947fb5ba821dcb05f403f439551a8ad7e87becff
parent7263310cce0fe67af21c63eeecfa776778da8b08
fix the closing session bug, even if next user authentication is failed.

When switching user by calling switchUser method, current opened session
is closed without verifying the next user authentication (i.e. username
and password). Because of this reason, there could be no remains session
in case of failure of user authentication for next user.

This patch checks the next user authentication and immediately return
FALSE when failed so that current session is not terminated. PAM service
name is specified in /etc/tlm.conf to change easily. (Default system-auth)

Change-Id: I794243faa7ebaf47f53bdf9b9368e14dbf8c509a
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
data/tlm.conf.in
src/common/Makefile.am
src/common/tlm-config-general.h
src/common/tlm-utils.c
src/common/tlm-utils.h
src/daemon/tlm-seat.c