wsgidav.dc.simple_dc#

Description

Implementation of a domain controller that uses realm/user_name/password mappings from the configuration file and uses the share path as realm name.

user_mapping is defined a follows:

simple_dc: {
    user_mapping = {
        "realm1": {
            "John Smith": {
                "password": "YouNeverGuessMe",
            },
            "Dan Brown": {
                "password": "DontGuessMeEither",
                "roles": ["editor"]
            }
        },
        "realm2": {
            ...
        }
    },
}

The “*” pseudo-share is used to pass a default definition:

user_mapping = {
    "*": {  // every share except for 'realm2'
        "Dan Brown": {
            "password": "DontGuessMeEither",
            "roles": ["editor"]
        }
    },
    "realm2": {
        ...
    }
},

A share (even the “*” pseudo-share) can be set to True to allow anonymous access:

user_mapping = {
    "*": {
        "Dan Brown": {
            "password": "DontGuessMeEither",
            "roles": ["editor"]
        },
    },
    "realm2": True
},

The SimpleDomainController fulfills the requirements of a DomainController as used for authentication with http_authenticator.HTTPAuthenticator for the WsgiDAV application.

Domain Controllers must provide the methods as described in DomainControllerBase

Classes

SimpleDomainController(wsgidav_app, config)

Other Members