# Failure in systemd while using auth\_pam\_compat

**URL:** <https://forums.percona.com/t/failure-in-systemd-while-using-auth-pam-compat/13944>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [January 17, 2022, 10:19am UTC](https://forums.percona.com/t/failure-in-systemd-while-using-auth-pam-compat/13944 "2022-01-17T10:19:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Tkachuk](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/alex_tkachuk/32/5603_2.png) [@Alex\_Tkachuk](https://forums.percona.com/u/Alex_Tkachuk)\
**Post date:** [January 17, 2022, 10:19am UTC](https://forums.percona.com/t/failure-in-systemd-while-using-auth-pam-compat/13944/1 "2022-01-17T10:19:47Z")

</div>

There is a piece of code in init.d script that checks if mysql is operational.  
/etc/init.d/mysql  
128 if ! $(mysqladmin --no-defaults --socket=“$socket” --user=UNKNOWN\_MYSQL\_USER ping &\>/dev/null) ;then  
129 ping\_alive=0  
130 fi  
It’s working fine for a check, but if you use auth\_pam\_compat plugin, trying to authenticate with UNKNOWN\_MYSQL\_USER will give non-zero return code, and, thus will fail systemd unit. The reason for that is in client parameters. --enable-cleartext-plugin option should be provided on cli. But, IMO, this behaviour should be reflected in init script.

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [January 17, 2022, 11:08am UTC](https://forums.percona.com/t/failure-in-systemd-while-using-auth-pam-compat/13944/2 "2022-01-17T11:08:51Z")

</div>

Hello Alex, thanks for spotting this. May I ask you to open a bug at [jira.percona.com](http://jira.percona.com) so dev can look into this?

---

<div class="post-metadata">

**Author:** ![Alex\_Tkachuk](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/alex_tkachuk/32/5603_2.png) [@Alex\_Tkachuk](https://forums.percona.com/u/Alex_Tkachuk)\
**Post date:** [January 17, 2022, 2:04pm UTC](https://forums.percona.com/t/failure-in-systemd-while-using-auth-pam-compat/13944/3 "2022-01-17T14:04:52Z")

</div>

Sure, [[PS-8043] Failure in systemd while using auth\_pam\_compat - Percona JIRA](https://jira.percona.com/browse/PS-8043)

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [January 17, 2022, 2:09pm UTC](https://forums.percona.com/t/failure-in-systemd-while-using-auth-pam-compat/13944/4 "2022-01-17T14:09:50Z")

</div>

thank you for the report!
