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

don't work with idm or freeipa #29

Open
es-x opened this issue Aug 9, 2022 · 5 comments
Open

don't work with idm or freeipa #29

es-x opened this issue Aug 9, 2022 · 5 comments

Comments

@es-x
Copy link

es-x commented Aug 9, 2022

Hey,
i have a problem with auth when i'm using freeipa ldap auth.

Freeipa uses binddn for users like this:

cn=users,cn=accounts,dc=idm,dc=local

but when analyzing the code, I found the following: in the file CUser.php string number 2240

if (preg_match('/CN=(.+?),OU=/i', $adgroup, $matches)) {

if I change OU to CN then authorization starts working and users are created using groups.

best regards

@BGmot
Copy link
Owner

BGmot commented Aug 9, 2022

Hi,
that would be a new feature request so we have a special field to compare what we receive from LDAP server with. Current solution works well with OpenLDAP and Microsoft Active Directory.
I think for now you'll be better off just changing the code since you already know how to do it and I hope to completely deprecate this feature when 6.4 is coming out because 6.4 should already have this functionality "out of the box".
Or we could change the code to
if (preg_match('/^CN=(.+?),/i', $adgroup, $matches)) {
that should work for all use cases, need to test it.

@es-x
Copy link
Author

es-x commented Aug 10, 2022

Hello
it work too, thanks
if (preg_match('/^CN=(.+?),/i', $adgroup, $matches)) {

@aphroditae
Copy link

hello
I have a question.
I am using zabbix server 5.0.24 version.
I installed version 5.0.27 from https://github.com/BGmot/zabbix/tree/release/5.0-bg, but Google Authenticator does not work.
What should I do?

@BGmot
Copy link
Owner

BGmot commented Aug 31, 2022

@aphroditae please create new issue and report what exactly happens. In what way it "does not work"?

@aphroditae
Copy link

aphroditae commented Sep 1, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants