Comments (8)
You can choose between 2 options. Users managed by FOS or managed by LDAP Directory.
If you're not using FOS for user management (Roles, etc) then remove it from the user provider chain so always the user is retrieved from the LDAP Directory.
from fr3dldapbundle.
Sorry for my poor english. This is not the problem I adressed : While using LDAP authetication, user fields are correctly initiated depending on the mapping defined in the configuration but, il the mapped user's LDAPs attributes change afterwards, the fields are not updated when the users connects again.
from fr3dldapbundle.
Yea I understand that part. If you don't need FOSUserBundle you can remove it from the "user provider" and always the user data will be retrieved from the LDAP Directory in each login.
from fr3dldapbundle.
Do you mean that if FOS is activated, users are created in fos at the first login and this is the reason why mapped attributes are not updated any more ?
from fr3dldapbundle.
User data is retrieved from the first user provider present in the user provider chain. If FOS is the first then the data is retrieved from the BD, if not user is present in FOS then SF will check for the next user provider (fr3d_user_provider) and the data will be retrieved from the LDAP.
from fr3dldapbundle.
I understand but when I use fr3dldapbundle before fosuser in the provider chain, the first login with an LDAP account is OK and the second fails because the plugin creates a new user object that cannot be persisted because it already exists whith the username. so that i still need the same hack
from fr3dldapbundle.
Sorry but is out of the scope of this bundle copy ldap attributes with database attributes. Instead you merge the fields that you want making a function listening the login event.
from fr3dldapbundle.
Finally, you shouldn't need patch LdapManager, just extending it in your own bundle and setup the new manager to use in the ldap config
from fr3dldapbundle.
Related Issues (20)
- Drop Zend LDAP in favor of Symfony LDAP HOT 1
- Set user Role depending Ldap group membership HOT 2
- How to set "Username" and "Password" fields from config.yml in the login page HOT 1
- accountCanonicalForm does not appear to be appending correctly HOT 1
- Error when installing the bundle HOT 1
- Retrieve user's list from ldap HOT 1
- Sync mailaddress form ldap after login HOT 2
- override FR3DLdapBundle HOT 1
- Symfony authentication API HOT 1
- New Documentation for LDAP Bundle? HOT 1
- Building symfony container will error if Fosuserbundle is not installed. HOT 1
- Symfony 3.4 deprecation HOT 1
- LdapManager
- Usage of user's LDAP/AD password HOT 4
- Support of Symfony 3 HOT 2
- SECURITY: password logged when exception thrown HOT 1
- Fatal error on login with invalid credentials HOT 1
- v2.0 -> v3.0: handling of empty passwords has changed? HOT 5
- Try using fos_userbundle and fr3d_ldapbundle HOT 1
- Security Hole? Allows anonymous bind if no password submitted by frontend
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fr3dldapbundle.