operasoftware / dns-ui

Opera's LDAP-authenticated PowerDNS user interface
Apache License 2.0
283 stars 57 forks source link

PHP_AUTH_vars #130

Open rmuehl opened 5 years ago

rmuehl commented 5 years ago

When using

[php_auth] enabled = 1

the apache auth needs to set the specific server vars

PHP_AUTH_NAME, PHP_AUTH_EMAIL and PHP_AUTH_GROUPS

It is possible to tell apache to use PHPAUTH as a prefix. But NAME, EMAIL and GROUPS needs to be fetched from LDAP. But when LDAP object is for e.g mail instead of email, it will not work.

I could not find a way in apache to transform these var-names. So would it be possible to make these configurable in the config.ini?

Otherwise one had to change the LDAP object names...