ejabberd not permitted to subscribe to presence information

Hello i'm new to ejabberd. I configured the ejabberd server to authenticate to AD but when i try to log in using AD credentials my client says"authentication error: ejabberd not permitted to subscribe to presence information"
This is my log file when i restart and try to connect using PSI client

015-08-18 19:34:27.783 [info] <0.7.0> Application lager started on node ejabberd@jabbber
2015-08-18 19:34:27.788 [info] <0.7.0> Application sasl started on node ejabberd@jabbber
2015-08-18 19:34:27.791 [info] <0.7.0> Application crypto started on node ejabberd@jabbber
2015-08-18 19:34:27.793 [info] <0.7.0> Application asn1 started on node ejabberd@jabbber
2015-08-18 19:34:27.793 [info] <0.7.0> Application public_key started on node ejabberd@jabbber
2015-08-18 19:34:27.798 [info] <0.7.0> Application ssl started on node ejabberd@jabbber
2015-08-18 19:34:27.889 [info] <0.7.0> Application p1_yaml started on node ejabberd@jabbber
2015-08-18 19:34:27.927 [info] <0.7.0> Application p1_tls started on node ejabberd@jabbber
2015-08-18 19:34:27.949 [info] <0.7.0> Application p1_xml started on node ejabberd@jabbber
2015-08-18 19:34:27.953 [info] <0.7.0> Application p1_stringprep started on node ejabberd@jabbber
2015-08-18 19:34:27.956 [info] <0.7.0> Application p1_zlib started on node ejabberd@jabbber
2015-08-18 19:34:27.959 [info] <0.7.0> Application p1_cache_tab started on node ejabberd@jabbber
2015-08-18 19:34:28.071 [info] <0.7.0> Application mnesia started on node ejabberd@jabbber
2015-08-18 19:34:28.708 [info] <0.342.0>@ejabberd_config:prepare_opt_val:582 Configuration problem:
** Option: {ldap_uids,global}
** Invalid value: '-"sAMAccountName"'
** Using as fallback: [{"uid","%u"}]
2015-08-18 19:34:28.719 [info] <0.342.0>@ejabberd_config:prepare_opt_val:582 Configuration problem:
** Option: {ldap_filter,global}
** Invalid value: ""
** Using as fallback: ""
2015-08-18 19:34:28.743 [info] <0.343.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.743 [info] <0.344.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.744 [info] <0.345.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.745 [info] <0.348.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.745 [info] <0.349.0>@ejabberd_config:prepare_opt_val:582 Configuration problem:
** Option: {ldap_uids,global}
** Invalid value: '-"sAMAccountName"'
** Using as fallback: [{"uid","%u"}]
2015-08-18 19:34:28.745 [info] <0.349.0>@ejabberd_config:prepare_opt_val:582 Configuration problem:
** Option: {ldap_filter,global}
** Invalid value: ""
** Using as fallback: ""
2015-08-18 19:34:28.745 [info] <0.350.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.745 [info] <0.351.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.746 [info] <0.352.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.746 [info] <0.353.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.746 [info] <0.354.0>@ejabberd_config:prepare_opt_val:582 Configuration problem:
** Option: {ldap_uids,global}
** Invalid value: '-"sAMAccountName"'
** Using as fallback: [{"uid","%u"}]
2015-08-18 19:34:28.746 [info] <0.354.0>@ejabberd_config:prepare_opt_val:582 Configuration problem:
** Option: {ldap_filter,global}
** Invalid value: ""
** Using as fallback: ""
2015-08-18 19:34:28.746 [info] <0.355.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.746 [info] <0.356.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.746 [info] <0.357.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.746 [info] <0.358.0>@eldap:connect_bind:1106 LDAP connection on x.x.x.x:389
2015-08-18 19:34:28.753 [info] <0.38.0>@cyrsasl_digest:start:57 FQDN used to check DIGEST-MD5 SASL authentication: jabbber.puhit.local
2015-08-18 19:34:28.803 [info] <0.7.0> Application p1_iconv started on node ejabberd@jabbber
2015-08-18 19:34:28.852 [info] <0.642.0>@ejabberd_listener:listen_tcp:194 Reusing listening port for 5222
2015-08-18 19:34:28.852 [info] <0.643.0>@ejabberd_listener:listen_tcp:194 Reusing listening port for 5269
2015-08-18 19:34:28.852 [info] <0.644.0>@ejabberd_listener:listen_tcp:194 Reusing listening port for 5280
2015-08-18 19:34:28.853 [info] <0.38.0>@ejabberd_app:start:69 ejabberd 14.07 is started in the node ejabberd@jabbber
2015-08-18 19:34:28.853 [info] <0.7.0> Application ejabberd started on node ejabberd@jabbber
2015-08-18 19:34:45.300 [info] <0.642.0>@ejabberd_listener:accept:313 (#Port<0.6742>) Accepted connection ::FFFF:x.x.x.x:63104 -> ::FFFF:x.x.x.x:5222
2015-08-18 19:34:47.568 [info] <0.649.0>@ejabberd_c2s:wait_for_feature_request:757 ({socket_state,p1_tls,{tlssock,#Port<0.6742>,#Port<0.6770>},<0.648.0>}) Failed authentication for contet@puhit.local from IP ::FFFF:x.x.x.x

Can anyone help me?

Problem resolved

Problem resolved

What was your issue ? It may

What was your issue ?
It may be useful for future readers.

Syndicate content