Ejabber to use both mensia and LDAP

I usign ejabberd1.2 in gentoo with ldap authentication,jwchat are workign fine.Now i have request from my ofiice, when ever our external customer want to chat with our office user they can use jwchat,and should register their user themself. i tried to register through jwchat and jabberclient im getting the error message not-allowed, but im abel to login with ldap user and ldap authentication is for our office employee only.

I tried enable both internal and ldap auth_methode in ejabberd.cfg,also i getting the same error.

{access, register, [{allow, all}]}
i enabled register to all.

could any plz tell me how to enable both database storage.

Thanks
veera

sorry To disturb

i got the answer,by doing virtula host

{host_config, "example.net", [{auth_method, internal}]}.

{host_config, "example.com", [{auth_method, ldap},
                              {ldap_servers, ["localhost"]},
                              {ldap_uidattr, "uid"},
                              {ldap_rootdn, "dc=localdomain"},
                              {ldap_rootdn, "dc=example,dc=com"},
                              {ldap_password, ""}]}.

Thanks
veera

Syndicate content