Configuring Openfire server to read dynamic group info from openldap

I’m no great hand at ldap syntax and I’m having some trouble configuring my openfire server to populate members for dynamically configured ldap groups. Static groups are working just fine but I’d like to save myself the trouble of having to scrub my list as users come and go. I assume I need to use memberurl as the attribute? Can anyone provide an example of what the syntax would look like?