DF 2.0 LDAP Authentication returning additional attributes in response


#1

Has anyone had any experience or know if it is possible to return additional user attributes in the JSON response when you authenticate using Active Directory/LDAP?
Currently when I authenticate the response is

{
    "session_token": “abc.123abc.efg”,
    "session_id": “abc.123abc.efg”,
    "id": 1,
    "name": "John",
    "first_name": "John",
    "last_name": "Doe",
    "email": "jdoe@gmail.com",
    "is_sys_admin": false,
    "last_login_date": "2015-06-30 16:46:59",
    "host": "your-url"
}

I would like to return a few more attributes such as employeeID, division, employeeType.

Any help or suggestions is greatly appreciated.


#2

It is possible to return more attributes but for now we only return the minimum information needed to create a DreamFactory shadow user. AD/LDAP auth is a new feature in DreamFactory 2.0 and to start out we kept it as simple as possible. We do have plans to expand it (carefully) in the near future with lot more features.