Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[LDAP] Retrive additional fields into a user #19329

Closed
@ofbeaton

Description

@ofbeaton

I was using https://github.com/BorisMorel/LdapBundle before Symfony 2.8, but now with Symfony 3.1 I am using the built-in LDAP mechanism.

One of the things I miss is the ability to pull in custom user fields from LDAP. For example I was pulling in email and fullname.

Is there a way to do this with Symfony's LDAP component already? I looked at the documentation:
http://symfony.com/blog/new-in-symfony-2-8-ldap-component
http://symfony.com/components/Ldap (this is blank!!! linked to from the above)
http://symfony.com/doc/current/cookbook/security/ldap.html

and couldn't find either an easy way to do it, or a guide on how to implement this myself if that is the desired way to do it.

I propose two things:
a) that the ldap component provide an easy way to configure additional fields to pull in
b) that the documentation reflect this, or a cookbook is made on how to do it ourselves

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions