synchronisation with ldap

Hi,

i installed ejabberd succesfully and can now authenticate with ldap but i have two question about this.

How can I keep the internal authentication available...because when i put authentication on internal and the line after on ldap the interal authentication doesn't work anymore and that way i can't administrate my pages anymore.

Another question is the following:
is it possible to automatically synchronize groups in ldap...so that your client's buddy list automatically gets updated when a user joins the LDAP and automatically leaves when it gets deleted.

Kind regards

Syndicate content