Skip to content
Snippets Groups Projects
Forked from uffd / uffd
246 commits behind the upstream repository.
  • Julian's avatar
    17892c4b
    basic ldap mocking · 17892c4b
    Julian authored and nd's avatar nd committed
    LDAP_SERVICE_MOCK must be set to True to enable ldap mocking. As a
    security measure, mocking is only allowed in debug mode. Also changed
    ACL_ADMIN_GROUP and ACL_SELFSERVICE_GROUP in default_config.cfg to more
    distinguishable values and removed the unused ACL_LDAP_GROUP_USEREDIT
    entry.
    
    The sample entries in ldap_server_entries.json are the bare minimum
    required for mocking and most likely won't suffice on a real LDAP server.
    Also ldap3's mocked server is very limited and does not correctly verify
    hashed password, update group memberships or implement ldap
    overlays/extentions correctly.
    
    Closes #20
    17892c4b
    History
    basic ldap mocking
    Julian authored and nd's avatar nd committed
    LDAP_SERVICE_MOCK must be set to True to enable ldap mocking. As a
    security measure, mocking is only allowed in debug mode. Also changed
    ACL_ADMIN_GROUP and ACL_SELFSERVICE_GROUP in default_config.cfg to more
    distinguishable values and removed the unused ACL_LDAP_GROUP_USEREDIT
    entry.
    
    The sample entries in ldap_server_entries.json are the bare minimum
    required for mocking and most likely won't suffice on a real LDAP server.
    Also ldap3's mocked server is very limited and does not correctly verify
    hashed password, update group memberships or implement ldap
    overlays/extentions correctly.
    
    Closes #20
ldap_server_info.json 1.51 KiB
{
    "raw": {
        "altServer": [],
        "configContext": [
            "cn=config"
        ],
        "entryDN": [
            ""
        ],
        "namingContexts": [
            "dc=example,dc=com"
        ],
        "objectClass": [
            "top",
            "OpenLDAProotDSE"
        ],
        "structuralObjectClass": [
            "OpenLDAProotDSE"
        ],
        "subschemaSubentry": [
            "cn=Subschema"
        ],
        "supportedCapabilities": [],
        "supportedControl": [
            "2.16.840.1.113730.3.4.18",
            "2.16.840.1.113730.3.4.2",
            "1.3.6.1.4.1.4203.1.10.1",
            "1.3.6.1.1.22",
            "1.2.840.113556.1.4.319",
            "1.2.826.0.1.3344810.2.3",
            "1.3.6.1.1.13.2",
            "1.3.6.1.1.13.1",
            "1.3.6.1.1.12"
        ],
        "supportedExtension": [
            "1.3.6.1.4.1.1466.20037",
            "1.3.6.1.4.1.4203.1.11.1",
            "1.3.6.1.4.1.4203.1.11.3",
            "1.3.6.1.1.8"
        ],
        "supportedFeatures": [
            "1.3.6.1.1.14",
            "1.3.6.1.4.1.4203.1.5.1",
            "1.3.6.1.4.1.4203.1.5.2",
            "1.3.6.1.4.1.4203.1.5.3",
            "1.3.6.1.4.1.4203.1.5.4",
            "1.3.6.1.4.1.4203.1.5.5"
        ],
        "supportedLDAPVersion": [
            "3"
        ],
        "supportedSASLMechanisms": [
            "DIGEST-MD5",
            "CRAM-MD5",
            "NTLM"
        ],
        "vendorName": [],
        "vendorVersion": []
    },
    "type": "DsaInfo"
}