Yes, I’m using another plugin for logging users in so wp_get_current_user() returns an user id from my LDAP server.
Actually Im using 2 plugins since I also have to migrate from OpenLDAP to samba4 in the meantime (yeah…)
so,
https://wordpress.org/plugins/authldap/
this one for OpenLDAP (current)
and this one (disabled)
https://wordpress.org/plugins/active-directory-integration/
currently in tests with new samba4 environment
Huge mistake: I forgot to mention I’m using OpenLDAP, not AD.
Could this be the reason why my queries never work?
I just tried this one you posted here and got nothing again.