Asked this already.

I looked again over my implementation and I noticed something about my function in here.
Wouldn't it be better, to fit in your architecture, to move this into group_ldap.php ?