It works with displayname. Just edited the code above.
Hi Marc,thanks for your help, it works now.I looked for the field I have to use at phpLDAPadmin, there it's displayName with a big "N", that doesn't work, also I used cn instead of givenname.
@alefattorini I will update my howto next days.
Yes you are right, I'll have a look at it
Edit: It has to be member not memberuid at
After changing this it works for me.
The new howto is at
Thanks for your help and interest.