fix bug on ldap sync groups
On syncing ldap groups I found a problem, groups were created but no user into it. I digged a bit and I found the problem:
sync_ldap_group comparate a group member (ldap layer) to a user (by its username).
So this is like:
uid=somepeople,ou=people,dc=blabla,dc=com VS somepeople.
It doesn't match so on
array_diff, there wasn't any user to add or user to delete to a group.
I created the function
get_username_from_dn which explode the dn and get the username.