{"action":"created","issue":{"url":"https://api.github.com/repos/operasoftware/dns-ui/issues/54","repository_url":"https://api.github.com/repos/operasoftware/dns-ui","labels_url":"https://api.github.com/repos/operasoftware/dns-ui/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/operasoftware/dns-ui/issues/54/comments","events_url":"https://api.github.com/repos/operasoftware/dns-ui/issues/54/events","html_url":"https://github.com/operasoftware/dns-ui/issues/54","id":303824723,"number":54,"title":"local user authentication","user":{"login":"christianbur","id":14313853,"avatar_url":"https://avatars2.githubusercontent.com/u/14313853?v=4","gravatar_id":"","url":"https://api.github.com/users/christianbur","html_url":"https://github.com/christianbur","followers_url":"https://api.github.com/users/christianbur/followers","following_url":"https://api.github.com/users/christianbur/following{/other_user}","gists_url":"https://api.github.com/users/christianbur/gists{/gist_id}","starred_url":"https://api.github.com/users/christianbur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianbur/subscriptions","organizations_url":"https://api.github.com/users/christianbur/orgs","repos_url":"https://api.github.com/users/christianbur/repos","events_url":"https://api.github.com/users/christianbur/events{/privacy}","received_events_url":"https://api.github.com/users/christianbur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T12:25:08Z","updated_at":"2018-03-09T12:56:34Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nThanks for the nice pdns GUI :-)\r\nI'm going to build pdns and your gui with docker, i almost succeeded. However, I fail at the user authentication in dns-ui. I do not need LDAP authentication for my small project so I would like to use a local user authentication. In the demo I saw that I can create local users (Users -> Create User ->\"You can create users in the local directory here\".) \r\nCurrently I am getting the PHP error \"Not logged in.\", because the varialbe PHP_AUTH_USER is not set.\r\nIn the GUI I am getting the error \"Oops! Something went wrong!\" \r\n\r\nWhat settings (Apache, PHP, dns-ui, dns-ui-db) must be made in a new installation to use local authentication?"},"comment":{"url":"https://api.github.com/repos/operasoftware/dns-ui/issues/comments/371805208","html_url":"https://github.com/operasoftware/dns-ui/issues/54#issuecomment-371805208","issue_url":"https://api.github.com/repos/operasoftware/dns-ui/issues/54","id":371805208,"user":{"login":"thomasp-opera","id":24544307,"avatar_url":"https://avatars2.githubusercontent.com/u/24544307?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasp-opera","html_url":"https://github.com/thomasp-opera","followers_url":"https://api.github.com/users/thomasp-opera/followers","following_url":"https://api.github.com/users/thomasp-opera/following{/other_user}","gists_url":"https://api.github.com/users/thomasp-opera/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasp-opera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasp-opera/subscriptions","organizations_url":"https://api.github.com/users/thomasp-opera/orgs","repos_url":"https://api.github.com/users/thomasp-opera/repos","events_url":"https://api.github.com/users/thomasp-opera/events{/privacy}","received_events_url":"https://api.github.com/users/thomasp-opera/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T12:56:34Z","updated_at":"2018-03-09T12:56:34Z","author_association":"OWNER","body":"DNS UI doesn't handle any authentication[1] (yet), so you need to handle it in Apache. For example using [AuthUserFile](https://httpd.apache.org/docs/2.4/mod/mod_authn_file.html) with a user file that you generate yourself with `htpasswd`. Example config:\r\n\r\n    AuthType Basic\r\n    AuthName \"DNS UI\"\r\n    AuthBasicProvider file\r\n    AuthUserFile /etc/apache2/htpasswd\r\n    Require valid-user\r\n\r\nGenerate the `htpasswd` file with eg. `htpasswd -c /etc/apache2/htpasswd username`\r\n\r\n[1] This may seem like a glaring omission in the tool, but we developed the DNS UI *because* we needed one that integrated with LDAP auth and allowed us to delegate multiple admins for each zone - something that no existing tool provided - so we saw no need to develop any other authentication methods."}}
{"actor":{"display_login":"thomasp-opera"}}