mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
We don't need this auth madness anymore
This commit is contained in:
parent
06e02de548
commit
1105b7d943
1 changed files with 1 additions and 7 deletions
|
@ -3,17 +3,11 @@
|
|||
import os
|
||||
|
||||
from moulinette.utils.network import download_text
|
||||
from moulinette.core import init_authenticator
|
||||
from moulinette.utils.process import check_output
|
||||
|
||||
from yunohost.diagnosis import Diagnoser
|
||||
from yunohost.domain import domain_list, _build_dns_conf, _get_maindomain
|
||||
|
||||
# Instantiate LDAP Authenticator
|
||||
auth_identifier = ('ldap', 'ldap-anonymous')
|
||||
auth_parameters = {'uri': 'ldap://localhost:389', 'base_dn': 'dc=yunohost,dc=org'}
|
||||
auth = init_authenticator(auth_identifier, auth_parameters)
|
||||
|
||||
class DNSDiagnoser(Diagnoser):
|
||||
|
||||
id_ = os.path.splitext(os.path.basename(__file__))[0].split("-")[1]
|
||||
|
@ -21,7 +15,7 @@ class DNSDiagnoser(Diagnoser):
|
|||
cache_duration = 3600*24
|
||||
|
||||
def validate_args(self, args):
|
||||
all_domains = domain_list(auth)["domains"]
|
||||
all_domains = domain_list()["domains"]
|
||||
if "domain" not in args.keys():
|
||||
return { "domains" : all_domains }
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue