Ldap group filtering

Version 1

    i have installed jabber IM its cool . i have integrate it with postgres and ldap . Now i have make a group in ldap i want if nay member which is part of that group will automatically be in all users list when they login their IM cliet and if a user is not in that group he can not connect to my IM server