Closed ggiesen closed 1 month ago
@fernandoGietz Hi, would you find some time to look into this?
I did start working on a PR for this, but haven't had time to complete or test it:
https://github.com/ggiesen/fogproject/compare/dev-branch...ldap_plugin_enhancements
@ggiesen What you have there looks very promising. I am wondering if we can get this revived and merged.
@ggiesen Any news on this. I somehow lost track of this and I wonder if your PR is ready to be merged into the official dev-branch?
Sorry, I've been pulled in a bunch of different directions at work since I did this and haven't used FOG much since then until recently (although now dealing with a bunch of cert/URL issues). I expect it'll probably be at least a couple months before I get back to this.
While more testing will be necessary, I think that can be handled after the testing is performed. As for the feature add, this is already completed.
Closing issue.
Thank you!
I'm attempting to set up LDAP authentication with FOG using the LDAP plugin against our FreeIPA servers, but it looks like the LDAP plugin can only match groups using the "name" attribute which FreeIPA groups do not carry. AD has a name attribute (which as far as I can tell always matches the value in "cn"), not sure about OpenLDAP or other LDAP implementations.
Would it make sense to change the attribute it matches on to be "cn=" rather than "name="? Or alternatively, the ability to specify an attribute to match on?
https://github.com/FOGProject/fogproject/blob/171d63724131c396029992730660497d48410842/packages/web/lib/plugins/ldap/class/ldap.class.php#L622-L623
https://github.com/FOGProject/fogproject/blob/171d63724131c396029992730660497d48410842/packages/web/lib/plugins/ldap/class/ldap.class.php#L646-L647
I was able to patch the file to make it work, but not sure which approach you'd prefer permanently: