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 option to trim full DN #60

Open
GOID1989 opened this issue Nov 2, 2023 · 1 comment
Open

Add option to trim full DN #60

GOID1989 opened this issue Nov 2, 2023 · 1 comment

Comments

@GOID1989
Copy link

GOID1989 commented Nov 2, 2023

Hi!
We using FreeIPA as LDAP Auth Service.
With that line we facing with problem when memberid contains full DN to account

memberid = memberid.decode("utf-8")

For quick hack

memberid = memberid.decode("utf-8")
memberid = memberid.split(',')[0]

Config is

[openldap]
type = posix
filtergroup = (&(objectClass=posixGroup)(cn=%s))
filteruser = (&(objectClass=posixAccount)(%s))
groupattribute = member
userattribute = uid

Maybe add some option to choose cut or not ?

@scoopex
Copy link

scoopex commented Nov 4, 2023

Thanks for investigating.
Probably its a good idea to have a ldap-server-flavour toggle in zabbix-ldap-sync to enable transformations like this.

We are very happy to receive contributions from users who actually use the tool. Would you like to try it out?

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

2 participants