#1979 Error when listing users with authentication = "ldap"
Reporter
Morgan Willcock
Owner
Nobody
Created
Updated
Stars
★★ (3)
Tags
Priority-Medium
Status-New
Type-Defect
Morgan Willcock
on
What steps will reproduce the problem?
1. Configure authentication to use LDAP by setting 'authentication = "ldap"' in the configuration file (either globally or for a specific host)
2. Restart the Prosody service
3. Run the command `prosodyctl shell user list myhost`
What is the expected output?
A list of existing users followed by "OK".
What do you see instead?
/usr/pkg/lib/prosody/modules/mod_admin_shell.lua:2042: attempt to call a nil value (for iterator 'for iterator')
What version of the product are you using? On what operating system?
Prosody 13.0.3 on NetBSD.
Please provide any additional information below.
Prosody was installed using pkgsrc.
The same issue was present on Prosody version 13.0.2, I have not tried earlier versions.
The LuaLDAP version is 1.4.0.
Christian Weiske
on
I have the same problem with mod_auth_sql on prosody 13.0.7.
Zash wrote in chat:
> probably that the user listing api is not implemented in the auth module
> not all of them have it, or even can have it
And indeed, mod_auth_ldap in prosody core does not have a provider.users() method
What steps will reproduce the problem? 1. Configure authentication to use LDAP by setting 'authentication = "ldap"' in the configuration file (either globally or for a specific host) 2. Restart the Prosody service 3. Run the command `prosodyctl shell user list myhost` What is the expected output? A list of existing users followed by "OK". What do you see instead? /usr/pkg/lib/prosody/modules/mod_admin_shell.lua:2042: attempt to call a nil value (for iterator 'for iterator') What version of the product are you using? On what operating system? Prosody 13.0.3 on NetBSD. Please provide any additional information below. Prosody was installed using pkgsrc. The same issue was present on Prosody version 13.0.2, I have not tried earlier versions. The LuaLDAP version is 1.4.0.
I have the same problem with mod_auth_sql on prosody 13.0.7. Zash wrote in chat: > probably that the user listing api is not implemented in the auth module > not all of them have it, or even can have it And indeed, mod_auth_ldap in prosody core does not have a provider.users() method