Hi Edward,<br><br>I found the problem. The problem is in daemon mode, the ldap connection somehow gets disconnected after the jabber server getting loaded. <br><br>When the jabber server is started in daemon, it gets loaded and checks for the LDAP connection in the finalize function of LDAP plug in. 
<br>Once the connection gets established, somehow the LDAP connection got terminated while running as a daemon. Since the values are referred as $self-&gt;..., the server thinks the connection is still in established state and tries to search for the user. But actually the ldap connection got terminated before this itself. 
<br><br>So, i was getting the account not found. A quick workaround is open a new connection while calling the ldap search function for authenticating the users. <br><br>Thanks,<br>-Rajesh<br><br><div class="gmail_quote">
On Jan 10, 2008 10:50 PM, Rajesh Dharmalingam &lt;<a href="mailto:rajesh.dharmalingam@gmail.com">rajesh.dharmalingam@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>#1 I am using ldap that is deployed in a different box. I am giving the connection url as ldaps://ip:port. Is it what you are asking for? If not could you please brief me more. I start the daemon as root user and i am able to telnet to the ldap server.
<br><br>#2 Yes. I enabled logging and when running in daemon mode i get user account not found while doing ldap search but when i run in debug mode, i get the register even after the successful search for user. <br><br>Thanks and Regards,
<br><font color="#888888">-Rajesh</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Jan 10, 2008 9:50 PM, Edward Rudd &lt;<a href="mailto:erudd@netfor.com" target="_blank">erudd@netfor.com</a>
&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>My firwt guess is the user djabberd is running as when running as a<br>daemon doesn&#39;t have access to connect to the ldap server. Are you<br>connecting to a unix socket on the local system or a TCP port?<br><br>Also turn on logging and log to a file so you can better track what is
<br>causing the issue. And try running djabberd in debug mode AS the user<br>you are running djabberd as in daemon mode.<br><div><div></div><div><br><br>Rajesh Dharmalingam wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I am finding a problem with LDAP authentication when running djabberd as
<br>&gt; a daemon.<br>&gt;<br>&gt; I have a ldap server and the users are getting authenticated against the<br>&gt; ldap server when i run the djabberd in debug mode. With the same setup<br>&gt; and configuration, i am running the djabberd server in daemon mode, the
<br>&gt; error is user not found.<br>&gt;<br>&gt; I thought the connection to ldap server is lost somehow while running as<br>&gt; a daemon. But with the log statements, i could see that binding is also<br>&gt; successful. Only while searching for the user, its not able to find the
<br>&gt; user.<br>&gt;<br>&gt; Can you provide some info or anyone has faced similar kind of problem?<br>&gt;<br>&gt; --<br>&gt; Regards,<br>&gt; -Rajesh<br>&gt;<br>&gt; &quot;Stick to our roots and not to forget where we come from&quot;
<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>-Rajesh<br><br>&quot;Stick to our roots and not to forget where we come from&quot;
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>-Rajesh<br><br>&quot;Stick to our roots and not to forget where we come from&quot;