Alias /phpMyAdmin /srv/www/html/phpMyAdmin

AddExternalAuth pwauth /usr/sbin/pwauth
SetExternalAuthMethod pwauth pipe

<Location /phpMyAdmin>
  AuthType Basic
  AuthName "phpMyAdmin"
  AuthBasicProvider external
  AuthExternal pwauth
  Require valid-user
</Location>