{"action":"closed","issue":{"url":"https://api.github.com/repos/nilsteampassnet/TeamPass/issues/253","repository_url":"https://api.github.com/repos/nilsteampassnet/TeamPass","labels_url":"https://api.github.com/repos/nilsteampassnet/TeamPass/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/nilsteampassnet/TeamPass/issues/253/comments","events_url":"https://api.github.com/repos/nilsteampassnet/TeamPass/issues/253/events","html_url":"https://github.com/nilsteampassnet/TeamPass/issues/253","id":10116453,"number":253,"title":"Local authentication override","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars3.githubusercontent.com/u/10137?v=4","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2013-01-18T22:46:40Z","updated_at":"2017-07-29T06:17:59Z","closed_at":"2017-07-29T06:17:59Z","body":"It would be good to have the ability to flag a particular user for local authentication only.  \nThat way one might be able to create multiple local admin accounts which are not in LDAP, since TeamPass prohibits two people from using the same account concurrently.\n\nMy quick hack to solve this was to update main.queries.php and replace code as follows:\n\n```\n $username == \"admin\"    ->   preg_match('/^admin(\\.[\\w]+)?$/',$username)\n $username != \"admin\"    ->   !preg_match('/^admin(\\.[\\w]+)?$/',$username)\n```\n\nThis allows any user created with an \"admin.\" prefix to bypass LDAP authentication.  \nUsing a \"local.\" prefix is an alternative option, but a flag in the user's account would be much cleaner.\n"}}
{"actor":{"display_login":"nilsteampassnet"}}