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

mod_shared_roster_ldap doesn't work #4165

Open
emoxam opened this issue Feb 23, 2024 · 1 comment
Open

mod_shared_roster_ldap doesn't work #4165

emoxam opened this issue Feb 23, 2024 · 1 comment

Comments

@emoxam
Copy link

emoxam commented Feb 23, 2024

Hello!

Environment

  • ejabberd version: 23.10-1
  • Erlang version: Command 'erl' not found,
  • OS: Linux (Ubuntu)
  • Installed from: distro package (https://repo.process-one.net/)

Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml

  mod_shared_roster_ldap:
    ldap_base: "ou=people,dc=example,dc=com"
    ldap_servers: [172.16.10.86]
    ldap_port: 389
    ldap_rootdn: "cn=username,dc=example,dc=com"
    ldap_password: "password"
    ldap_filter: "(objectClass=*)"
...

Errors from error.log/crash.log

No errors

Bug description

If i understand correctly i should see all my ldap users at the roster. But no users from LDAP is there.
Thats what i see at the ldap server logs when ejabberd starts

Feb 23 16:16:43 ldap-mail slapd[48147]: conn=1018 fd=12 ACCEPT from IP=172.16.10.202:58480 (IP=0.0.0.0:389)
Feb 23 16:16:43 ldap-mail slapd[48147]: conn=1018 op=0 BIND dn="cn=username,dc=example,dc=com" method=128
Feb 23 16:16:43 ldap-mail slapd[48147]: conn=1018 op=0 BIND dn="cn=username,dc=example,dc=com" mech=SIMPLE ssf=0
Feb 23 16:16:43 ldap-mail slapd[48147]: conn=1018 op=0 RESULT tag=97 err=0 text=

But thats what i see at the LDAP server log when i run
ldapsearch -x -H ldap://172.16.10.86:389 -b "ou=people,dc=integris,dc=ru" -D "cn=username,dc=example,dc=com" -w "password" "(objectClass=*)"

Feb 23 16:19:06 ldap-mail slapd[48147]: conn=1019 fd=15 ACCEPT from IP=172.16.10.202:42710 (IP=0.0.0.0:389)
Feb 23 16:19:06 ldap-mail slapd[48147]: conn=1019 op=0 BIND dn="cn=username,dc=example,dc=com" method=128
Feb 23 16:19:06 ldap-mail slapd[48147]: conn=1019 op=0 BIND dn="cn=username,dc=example,dc=com" mech=SIMPLE ssf=0
Feb 23 16:19:06 ldap-mail slapd[48147]: conn=1019 op=0 RESULT tag=97 err=0 text=
Feb 23 16:19:06 ldap-mail slapd[48147]: conn=1019 op=1 SRCH base="ou=people,dc=example,dc=com" scope=2 deref=0 filter="(objectClass=*)"
Feb 23 16:19:06 ldap-mail slapd[48147]: conn=1019 op=1 SEARCH RESULT tag=101 err=0 nentries=16 text=
Feb 23 16:19:06 ldap-mail slapd[48147]: conn=1019 op=2 UNBIND
Feb 23 16:19:06 ldap-mail slapd[48147]: conn=1019 fd=15 closed

Why there is SRCH base at the log and no such strings when i start ejabberd ?

Thanks

@Neustradamus
Copy link
Contributor

To follow this ticket

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