Hi Edward,

I found the problem. The problem is in daemon mode, the ldap connection
somehow gets disconnected after the jabber server getting loaded.

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.
Once the connection gets established, somehow the LDAP connection got
terminated while running as a daemon. Since the values are referred as
$self->..., 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.

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.

Thanks,
-Rajesh

On Jan 10, 2008 10:50 PM, Rajesh Dharmalingam <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> #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.
>
> #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.
>
> Thanks and Regards,
> -Rajesh
>
>
> On Jan 10, 2008 9:50 PM, Edward Rudd <[EMAIL PROTECTED]> wrote:
>
> >
> > My firwt guess is the user djabberd is running as when running as a
> > daemon doesn't have access to connect to the ldap server. Are you
> > connecting to a unix socket on the local system or a TCP port?
> >
> > Also turn on logging and log to a file so you can better track what is
> > causing the issue. And try running djabberd in debug mode AS the user
> > you are running djabberd as in daemon mode.
> >
> >
> > Rajesh Dharmalingam wrote:
> > > Hi,
> > >
> > > I am finding a problem with LDAP authentication when running djabberd
> > as
> > > a daemon.
> > >
> > > I have a ldap server and the users are getting authenticated against
> > the
> > > ldap server when i run the djabberd in debug mode. With the same setup
> > > and configuration, i am running the djabberd server in daemon mode,
> > the
> > > error is user not found.
> > >
> > > I thought the connection to ldap server is lost somehow while running
> > as
> > > a daemon. But with the log statements, i could see that binding is
> > also
> > > successful. Only while searching for the user, its not able to find
> > the
> > > user.
> > >
> > > Can you provide some info or anyone has faced similar kind of problem?
> > >
> > > --
> > > Regards,
> > > -Rajesh
> > >
> > > "Stick to our roots and not to forget where we come from"
> >
>
>
>
> --
> Regards,
> -Rajesh
>
> "Stick to our roots and not to forget where we come from"
>



-- 
Regards,
-Rajesh

"Stick to our roots and not to forget where we come from"

Reply via email to