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

Add Ldap support #193

Closed
anmol26s opened this issue Jun 30, 2018 · 9 comments · Fixed by #815
Closed

Add Ldap support #193

anmol26s opened this issue Jun 30, 2018 · 9 comments · Fixed by #815
Milestone

Comments

@anmol26s
Copy link

@anmol26s anmol26s commented Jun 30, 2018

Hi
It would be nice to have Ldap support for the app.

@kevinpapst kevinpapst added this to the 0.6 milestone Jul 17, 2018
@kevinpapst

This comment has been minimized.

Copy link
Owner

@kevinpapst kevinpapst commented Jul 21, 2018

Someone could try to configure security to authenticate against LDAP: https://symfony.com/doc/current/security/ldap.html

composer require symfony/ldap

When using this authentication method I believe its enough to create users with the same name in Kimai. Advanced functionality would be to create new users on the fly, I believe there is no built-in functionality for this in symfony/ldap.

@marquesmatheus

This comment has been minimized.

Copy link
Contributor

@marquesmatheus marquesmatheus commented Nov 28, 2018

I

Hi
It would be nice to have Ldap support for the app.

Sure it will be perfect!.

@kevinpapst kevinpapst removed this from the 0.7 - Permissions milestone Jan 21, 2019
@DERanselmus

This comment has been minimized.

Copy link

@DERanselmus DERanselmus commented Feb 13, 2019

Has anyone made progress on this issue?

I've added to config/services.yaml

 Symfony\Component\Ldap\Ldap:
        arguments: ['@Symfony\Component\Ldap\Adapter\ExtLdap\Adapter']
    Symfony\Component\Ldap\Adapter\ExtLdap\Adapter:
        arguments:
                 host: 'ldap.xxxxxxx.de'
                 port: 636
                 encryption: tls
                 options:
                     protocol_version: 3
                     referrals: false

and to config/packages/security.yaml

    providers:
        fos_userbundle:
            id: fos_user.user_provider.username_email
        ldap_users:
            ldap:
                service: Symfony\Component\Ldap\Ldap
                base_dn: 'dc=aoag,dc=local'
                default_roles: 'Users'
                uid_key: 'uid'
                filter: '(&({uid_key}={uid})(objectclass=person))'
        chain_provider:
            chain:
                providers: [fos_userbundle,ldap_users]

But I can't even see a request go out to the ldap server.

I am not familiar with Symfony. Do I have to rebuilt the application upon changing yaml files?
Is there a way to log or debug this request? var/log/prod.log does not show anything, nor stdout or apache log.

@kevinpapst

This comment has been minimized.

Copy link
Owner

@kevinpapst kevinpapst commented Feb 13, 2019

You need to bin/console cache:clear if you are in prod env (check APP_ENV .env file), otherwise changes won't be picked up.
Logging can be configured here for prod.

Even if that works, we still need a bridge that connects a Kimai user to an LDAP user. But its great that you try to work on it! We can collaborate to find a solution.

@ExaMuff

This comment has been minimized.

Copy link

@ExaMuff ExaMuff commented May 4, 2019

Is there any kind of progression on this?

@kevinpapst kevinpapst mentioned this issue May 27, 2019
8 of 8 tasks complete
@kevinpapst

This comment has been minimized.

Copy link
Owner

@kevinpapst kevinpapst commented May 28, 2019

Sorry to everyone for the long time waiting... but I am finally working on the most requested Kimai feature: LDAP support.
Would be great if some of you could help testing and leaving input/ideas in #815.

@kevinpapst

This comment has been minimized.

Copy link
Owner

@kevinpapst kevinpapst commented May 30, 2019

Last call to the 15 people who voted for this feature for a test before I will merge it. Thanks!

@kevinpapst kevinpapst added this to the 1.0 milestone Jun 7, 2019
@kevinpapst

This comment has been minimized.

Copy link
Owner

@kevinpapst kevinpapst commented Jun 7, 2019

Feature now available in master.

@lock

This comment has been minimized.

Copy link

@lock lock bot commented Aug 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@lock lock bot locked and limited conversation to collaborators Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants
You can’t perform that action at this time.