fix: ldap-authorization should be considered external (#8047)

* fix: ldap-authorization should be considered external

When sso auth type was added (1c6b7a9), some code for getting a username
was moved into HttpAuthAuthorizer. LdapAuthorizationAuthorizer uses the
same process to get the username and needs to be updated as well.

* Use common implementation of getExternalUsername

Authorizers get the default implementation by setting AUTH_IS_EXTERNAL.
ADAuthorizationAuthorizer is another candidate.
This commit is contained in:
Peter McNabb
2018-01-09 17:13:47 -05:00
committed by Tony Murray
parent 803e5419f3
commit 2fb8dd7904
4 changed files with 7 additions and 10 deletions

View File

@@ -8,6 +8,7 @@ use LibreNMS\Exceptions\AuthenticationException;
class ADAuthorizationAuthorizer extends AuthorizerBase
{
protected $ldap_connection;
protected static $AUTH_IS_EXTERNAL = 1;
public function __construct()
{