[ejabberd] shared roster ldap and search permissions error
nik at naturalnet.de
Sun May 13 18:55:31 MSK 2018
> Here my roster configuration:
First of all, it looks syntactically incorrect, and I wonder why your
ejabberd even starts… every setting should be on a separate line.
Also, please do imemdiately change your LDAP password, in case you didn't
replace it with another random string in your mail…
You do not need the LDAP server configuration there, it uses the global
configuration (which I understand you have in a working state).
Now to several options you seem to have misunderstood:
> > ldap_base: "ou=users, dc=homebox,dc=space"
Leave this out (to use the global base) or set it to the base of the *groups*, not the users.
> > ldap_rfilter:
> > "(objectClass=inetOrgPerson)"
Again, this filter should find the *groups*.
> > ldap_groupattr: "ou" ldap_memberattr: "cn"
I doubt that. If you are using posixGroup or groupOfNames, groupattr is cn
in both cases, and memberattr is either memberUid or member.
> > ldap_memberattr_format: "cn=%u,ou=users, dc=homebox,dc=space"
So, taking that into account, the memberattr seems to be member for you.
> > ldap_filter: "(objectClass=inetOrgPerson)"
I am not sure what you intend here.
Here's my config, tailored to your information:
This finds all groups a user is a member of.
This finds a group by its name.
This finds a specific user by their name.
This finds all groups.
This defines the attribute the group name is stored in.
This is the field the human-readable name of the user is stored in.
This is the field that holds the username.
But, I doubt that this is correct, and I think that there is a
misunderstanding about your LDAP structure on a very basic level. At least,
the fields you intend to use are very uncommon. The username is normally
stored in the uid field, while cn normally holds the friendly name…
You might want to read up on your LDAP schema again and then double-check
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 902 bytes
Desc: not available
More information about the ejabberd