Need help reporting on group membership

I’m interested in querying our OpenFire server for a list of all the “groups” we have configured with the “Enable Group Contact list sharing” option turned on, and I need the “report” to produce the AD Group name, “Contact list group name” and who the group is shared with if the “share group with additional users” option is enabled.

We are currently running OpenFire v3.7.1 within a “mixed” 2003/2008 Windows Domain environment.

I have no experience running queries against SQL etc, but I can’t imagine there’s not a script or query statement out there to get this data into a CSV/Delimited file etc.

Any help would be greatly appreciated.