jelhub/scimgateway

Plugin LDAP not working (Open LDAP)

Closed this issue · 1 comments

Hi there,

I am using a Open LDAP Container image (osixia/openldap:1.5.0) , the initial tree structure is based on:

dc=example,dc=org

I imported the attached LDIF:
democorp (1).ldif.zip

So, I have new users into my ldap tree, when I do configure my ldap plugin, like this:

        "username": "cn=admin,dc=example,dc=org",
        "password": "NGYzYjU3NTE3NjAwYWU0MmNiMTBmNTcxNGI3MjY5NGU6MjM1YWRjODI1M2FkMDljNjQyMTBlOTYxNjA1ZTZlNTY=",
        "ldap": {
          "userBase": "dc=example,dc=org",
          "groupBase": "",
          "userFilter": "",
          "groupFilter": null,
          "userNamingAttr": "cn",
          "groupNamingAttr": "cn",
          "userObjectClasses": [ 
            "person",
            "organizationalPerson",
            "inetOrgPerson",
            "top"
          ],

When I try to execute an HTTP GET, I am getting the following result:

{
    "Resources": [],
    "itemsPerPage": 0,
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:ListResponse"
    ],
    "startIndex": 1,
    "totalResults": 0
}

Any idea of what I might be doing wrong? I've been investigating many ways to solve it, but not success so far.

Thanks in advance

Edgar

I solved that issue. The problem was the mapping attributes from LDAP to the SCIM attributes. Some of the exiting ones are most tight to Active Directory, but I am using LDAP