Getting all LDAP users with django

I’m using django-auth-ldap and I’m trying to get all users from LDAP server, I didn’t find a way to do so, the authenticating is working in the backend, here is my code @api_view([‘GET’]) def users(request): l = ldap.initialize(backend.AUTH_LDAP_SERVER_URI) l.simple_bind_s(backend.AUTH_LDAP_BIND_DN, backend.AUTH_LDAP_BIND_PASSWORD) users = LDAPBackend().populate_user(‘*’) #this line is returning None l.unbind_s() print (users) serializer = userSerializer(users, many=True)… Read More Getting all LDAP users with django