Solved problem of certificate’s authentication and add option to give unique name to contact when creating one and hide domain names from PinGu. And also configured ejabberd’s server to work with two authentication systems one internal and other LDAP.