Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap endpoints #48

Open
barodeur opened this issue Apr 25, 2013 · 0 comments
Open

ldap endpoints #48

barodeur opened this issue Apr 25, 2013 · 0 comments

Comments

@barodeur
Copy link
Member

Current specifications

Base url : http://api.iiens.eu/ldap

BIND USERS

request

POST /bind 

parameters

  • username
  • password

response

success

  • status 200
  • no content

failure

  • status 401
  • no content

SEARCH ACCOUNTS

request

GET /accounts

response

  • status 200
[
    {
        "dn": "cn=chobert2010, ou=users, dc=ares",
        "attributes": {
            "cn": "chobert2010",
            "uid": "chobert2010",
            "uidnumber": 1001,
            "gidnumber": 1010,
            "homedirectory": "/home/chobert2010",
            "loginshell": "/bin/sh",
            "objectclass": ["posixaccount"]
        }
    }
]

SEARCH GROUPS

request

GET /groups

response

  • status 200
[
    {
        "dn": "cn=ares, ou=groups, dc=ares",
        "attributes": {
            "gidnumber": 1010,
            "memberuid": ["bee2010", "bertot2010", "chobert2010", "unbekandt2011"],
            "objectclass": ["posixgroup"]
        }
    }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant