Here's the issue:
When setting up a Jabber IM community for use in a corporate environment, you will find that certain procedural restraints that exist for good reasons in the public Jabber or AIM domain are contrary to the expectations and needs of a closed community.
In a closed community, there is no need to follow the protocol that establishes IM "buddy" relationships. The invite/accept procedure is redundant.
Moreover, the expectation in a private Jabber/IM community is that, upon signing on, everyone sees everyone else who is online without the need for further user intervention.
Below is a script that populates the Jabber database with pre-approved buddy relationships.
This has been tested on Mac OS X 10.6 Server OpenDIrectory Master with iChat Server enabled.
The script is available for download here below.
For implementation and help with the code, contact MacTech
Please edit the variables accordingly to adapt to your particular setup.
Download the entire script below.