<br><br>



<div bgcolor="#ffffff" text="#000000">
<big><big><small>Dear List <br>
<br>
I have a ejabberd server in set up on Cent OS 5.2 . I  need to connect
to an exertnal Ads server for some users . My ejabberd.cfg file looks
something like this .</small><br>
<br>
</big></big><br>
 <br>
{hosts, [&quot;<a href="http://excads.netstat.com" target="_blank">excads.netstat.com</a>&quot;]}.<br>
{host_config, &quot;<a href="http://excads.netstat.com" target="_blank">excads.netstat.com</a>&quot;, [{auth_method,ldap},<br>
{ldap_servers,[&quot;<a href="http://excads.netstat.com" target="_blank">excads.netstat.com</a>&quot;]},<br>
{ldap_uids, [{&quot;sAMAccountName&quot;,&quot;%u&quot;}]},<br>
{ldap_base,&quot;dc=excads,dc=netstat,dc=com&quot;},<br>
{ldap_rootdn,&quot;cn=Administrator,cn=Users,dc=excads,dc=netstat,dc=com&quot;},<br>
{ldap_password,&quot;qwerasdf&quot;}]}.<br>
<br>
<br>
<br>
<br>
<big>when i try to  login I get  the following error ( i apologies for 
posting  a huge log file )<br>
</big><br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
I(&lt;0.244.0&gt;:ejabberd_listener:112) : (#Port&lt;0.437&gt;)
Accepted connection {{192,168,10,105},44865} -&gt;
{{192,168,50,137},5222}<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.499.0&gt;:ejabberd_receiver:298) : Received XML on stream =
&quot;&lt;?xml version=&#39;1.0&#39; ?&gt;&lt;stream:stream to=&#39;<a href="http://excads.netstat.com" target="_blank">excads.netstat.com</a>&#39;
xmlns=&#39;jabber:client&#39; xmlns:stream=&#39;<a href="http://etherx.jabber.org/streams" target="_blank">http://etherx.jabber.org/streams</a>&#39;
version=&#39;1.0&#39;&gt;&quot;<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.500.0&gt;:ejabberd_c2s:1362) : Send XML on stream = &quot;&lt;?xml
version=&#39;1.0&#39;?&gt;&lt;stream:stream xmlns=&#39;jabber:client&#39;
xmlns:stream=&#39;<a href="http://etherx.jabber.org/streams" target="_blank">http://etherx.jabber.org/streams</a>&#39; id=&#39;3974015530&#39;
from=&#39;<a href="http://excads.netstat.com" target="_blank">excads.netstat.com</a>&#39; version=&#39;1.0&#39; xml:lang=&#39;en&#39;&gt;&quot;<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.500.0&gt;:ejabberd_c2s:1362) : Send XML on stream =
&quot;&lt;stream:features&gt;&lt;mechanisms
xmlns=&#39;urn:ietf:params:xml:ns:xmpp-sasl&#39;&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;register
xmlns=&#39;<a href="http://jabber.org/features/iq-register&#39;/" target="_blank">http://jabber.org/features/iq-register&#39;/</a>&gt;&lt;/stream:features&gt;&quot;<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.499.0&gt;:ejabberd_receiver:298) : Received XML on stream =
&quot;&lt;auth xmlns=&#39;urn:ietf:params:xml:ns:xmpp-sasl&#39;
mechanism=&#39;PLAIN&#39;&gt;AGFnbmVsbG8AMTJxd1FXUVc=&lt;/auth&gt;&quot;<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.499.0&gt;:shaper:61) : State:
{maxrate,1000,0,1243844540317068}, Size=96<br>
M=48.0, I=4.794<br>
<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.251.0&gt;:eldap:587) : {searchRequest,<br>
  {&#39;SearchRequest&#39;,&quot;dc=excads,dc=netstat,dc=com&quot;,<br>
  wholeSubtree,neverDerefAliases,0,0,false,<br>
  {equalityMatch,<br>
  {&#39;AttributeValueAssertion&#39;,&quot;sAMAccountName&quot;,<br>
  &quot;agnello&quot;}},<br>
  []}}<br>
<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.251.0&gt;:eldap:648) : {searchResEntry,<br>
  {&#39;SearchResultEntry&#39;,<br>
  &quot;CN=agnello,CN=Users,DC=excads,DC=netstat,DC=com&quot;,<br>
  [{&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;objectClass&quot;,<br>
  [&quot;top&quot;,&quot;person&quot;,&quot;organizationalPerson&quot;,<br>
  &quot;user&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;cn&quot;,<br>
  [&quot;agnello&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;givenName&quot;,<br>
  [&quot;agnello&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;distinguishedName&quot;,<br>
  [&quot;CN=agnello,CN=Users,DC=excads,DC=netstat,DC=com&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;instanceType&quot;,<br>
  [&quot;4&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;whenCreated&quot;,<br>
  [&quot;20090529134023.0Z&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;whenChanged&quot;,<br>
  [&quot;20090529134023.0Z&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;displayName&quot;,<br>
  [&quot;agnello&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;uSNCreated&quot;,<br>
  [&quot;69678&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;uSNChanged&quot;,<br>
  [&quot;69684&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;name&quot;,<br>
  [&quot;agnello&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;objectGUID&quot;,<br>
  [[140,74,186,186,206,216,118,72,159,124,<br>
  136,45,152,67,18,199]]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;userAccountControl&quot;,<br>
  [&quot;512&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;badPwdCount&quot;,<br>
  [&quot;0&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;codePage&quot;,<br>
  [&quot;0&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;countryCode&quot;,<br>
  [&quot;0&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;badPasswordTime&quot;,<br>
  [&quot;0&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;lastLogoff&quot;,<br>
  [&quot;0&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;lastLogon&quot;,<br>
  [&quot;0&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;pwdLastSet&quot;,<br>
  [&quot;0&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;primaryGroupID&quot;,<br>
  [&quot;513&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;objectSid&quot;,<br>
  [[1,5,0,0,0,0,0,5,21,0,0,0,49,14,213,<br>
  216,110,128,202,165,151,137,68,35,104,<br>
  4,0,0]]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;accountExpires&quot;,<br>
  [&quot;9223372036854775807&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,&quot;logonCount&quot;,<br>
  [&quot;0&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;sAMAccountName&quot;,<br>
  [&quot;agnello&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;sAMAccountType&quot;,<br>
  [&quot;805306368&quot;]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;userPrincipalName&quot;,<br>
  [<a href="mailto:agnello@excads.netstat.com" target="_blank">&quot;agnello@excads.netstat.com&quot;</a>]},<br>
  {&#39;PartialAttributeList_SEQOF&#39;,<br>
  &quot;objectCategory&quot;,<br>
 
[&quot;CN=Person,CN=Schema,CN=Configuration,DC=excads,DC=netstat,DC=com&quot;]}]}}<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.251.0&gt;:eldap:648) : {searchResRef,<br>
 
[&quot;ldap://<a href="http://ForestDnsZones.excads.netstat.com/DC=ForestDnsZones,DC=excads,DC=netstat,DC=com" target="_blank">ForestDnsZones.excads.netstat.com/DC=ForestDnsZones,DC=excads,DC=netstat,DC=com</a>&quot;]}<br>

<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.251.0&gt;:eldap:648) : {searchResRef,<br>
 
[&quot;ldap://<a href="http://DomainDnsZones.excads.netstat.com/DC=DomainDnsZones,DC=excads,DC=netstat,DC=com" target="_blank">DomainDnsZones.excads.netstat.com/DC=DomainDnsZones,DC=excads,DC=netstat,DC=com</a>&quot;]}<br>

<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.251.0&gt;:eldap:648) : {searchResRef,<br>
 
[&quot;ldap://<a href="http://excads.netstat.com/CN=Configuration,DC=excads,DC=netstat,DC=com" target="_blank">excads.netstat.com/CN=Configuration,DC=excads,DC=netstat,DC=com</a>&quot;]}<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.251.0&gt;:eldap:648) : {searchResDone,<br>
  {&#39;LDAPResult&#39;,success,[],[],asn1_NOVALUE}}<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.254.0&gt;:eldap:587) : {bindRequest,<br>
  {&#39;BindRequest&#39;,3,<br>
  &quot;CN=agnello,CN=Users,DC=excads,DC=netstat,DC=com&quot;,<br>
  {simple,&quot;12qwQWQW&quot;}}}<br>
<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.254.0&gt;:eldap:648) : {bindResponse,<br>
  {&#39;BindResponse&#39;,invalidCredentials,[],<br>
  [56,48,48,57,48,51,48,56,58,32,76,100,97,112,<br>
  69,114,114,58,32,68,83,73,68,45,48,67,48,57,<br>
  48,51,51,52,44,32,99,111,109,109,101,110,<br>
  116,58,32,65,99,99,101,112,116,83,101,99,<br>
  117,114,105,116,121,67,111,110,116,101,120,<br>
  116,32,101,114,114,111,114,44,32,100,97,116,<br>
  97,32,55,55,51,44,32,118,101,99,101,0],<br>
  asn1_NOVALUE,asn1_NOVALUE}}<br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
I(&lt;0.500.0&gt;:ejabberd_c2s:577) :
({socket_state,gen_tcp,#Port&lt;0.437&gt;,&lt;0.499.0&gt;}) Failed
authentication for <a href="mailto:agnello@excads.netstat.com" target="_blank">agnello@excads.netstat.com</a><br>
<br>
=INFO REPORT==== 2009-06-01 13:52:20 ===<br>
D(&lt;0.500.0&gt;:ejabberd_c2s:1362) : Send XML on stream =
&quot;&lt;failure
xmlns=&#39;urn:ietf:params:xml:ns:xmpp-sasl&#39;&gt;&lt;not-authorized/&gt;&lt;/failure&gt;&quot;<br>
 <br>
I<big> cant see the issue here , my cfg file looks proper ... and i am
able to query the external windows ads server. <br>
<br>
Can some one help me in guiding me where exactly i am going wrong .<br>
<br>
<br>
Thanks </big><br>
<pre cols="72">-- <br></pre></div>Regards <br>Agnello D&#39;souza<br><br><br>