2amigos / yii2-usuario

Highly customizable and extensible user management, authentication, and authorization Yii2 extension
https://github.com/2amigos/yii2-usuario
Other
294 stars 142 forks source link

LDAP authentication #226

Open schmunk42 opened 6 years ago

schmunk42 commented 6 years ago

What steps will reproduce the problem?

Try to enable LDAP authentication for usuario

What is the expected result?

There's no plugin or similar

What do you get instead?

Also nothing in the docs :)

I know this might be a documentation issue or it could be done in some custom code, but I think it should at least be covered with some docs here.

Related issue: https://github.com/dektrium/yii2-user/issues/714

maxxer commented 6 years ago

@liviuk2 😉

maxxer commented 6 years ago

We've used LDAP for a project with Usuario, I'll try to document how to do that.

BTW we used yii2-adldap

tonydspaniard commented 6 years ago

@maxxer do you think it could be a good addition? I think, we really need to think of #236

maxxer commented 6 years ago

what do you mean? of course LDAP auth is often useful

maxxer commented 6 years ago

hi everyone. We need LDAP implementation for a couple of our project based on usuario, so in the next one or two weeks we should deliver the plugin.

Our idea is to create a new extension which hooks to usuario events to validate LDAP password, create users from LDAP and so on. There will be some options, i.e. to use both internal and ldap auth or auto creation of users from ldap, and also password sync to ldap.

@Eseperio @tonydspaniard is this a good approach, also in light of #236?

tonydspaniard commented 5 years ago

@maxxer do you mind providing the link to your extension once again?

maxxer commented 5 years ago

https://www.yiiframework.com/extension/yetopen/yii2-usuario-ldap

https://gitlab.com/yetopen/yii2-usuario-ldap

tonydspaniard commented 5 years ago

Thank you @maxxer