You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Simon Dutil <s....@gmail.com> on 2004/09/27 15:07:41 UTC

LDAPUser.java

In Lenya 1.2 sources > LDAPUser.java

For the method existUser, there is this advice within the javadoc comments :

 FIXME: This method does not work.

Is there a working version in the CVS?  

Thanks,

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: LDAPUser.java

Posted by Simon Dutil <s....@gmail.com>.
Sorry about that, i should have take a deeper look at user-admin.js
before posting...i found my answers

Simon


On Mon, 27 Sep 2004 09:59:40 -0400, Simon Dutil <s....@gmail.com> wrote:
> I should receive a "Could not read properties" when my LDAP server
> adress is wrong?  But the exception is still catched by
> existsUser...Exception during search:
> 
> Any idea?
> 
> Simon
> 
> 
> On Mon, 27 Sep 2004 09:51:28 -0400, Simon Dutil <s....@gmail.com> wrote:
> > >And in methods bind, arent we supposed to provide the >PROVIDER_URL for
> 
> 
> > >the principal parameter ?
> >
> > forget about this question...
> >
> > Simon
> >
> >
> >
> >
> > On Mon, 27 Sep 2004 09:48:11 -0400, Simon Dutil <s....@gmail.com> wrote:
> > > I dont know much about LDAP, and i think i need some help to
> > > understand few things in LDAPUser.java ! :)
> > >
> > > In Ldap.properties, even if my ldap server adress is corrupted, the
> > > exception is still catched by existsUser... ( should be catched
> > > before...when the connection is inistialized first ? )
> > >
> > > In method Initialize, there is no try/catch around the context
> > > (connection) line...
> > >
> > > context = bind(defaultProperties.getProperty(MGR_DN),
> > > defaultProperties.getProperty(MGR_PW));
> > >
> > > If there's a Naming Exception (if connection failed) it wont be
> > > catched in initialize() but in existUser where there is a try/catch
> > > for naming exceptions...
> > >
> > > And in methods bind, arent we supposed to provide the PROVIDER_URL for
> > > the principal parameter ?
> > >
> > > Thanks in advance!
> > >
> > > Simon
> > >
> > >
> > >
> > >
> > > On Mon, 27 Sep 2004 15:11:46 +0200, Andreas Hartmann <an...@apache.org> wrote:
> > > >
> > > >
> > > > Simon Dutil wrote:
> > > > > In Lenya 1.2 sources > LDAPUser.java
> > > > >
> > > > > For the method existUser, there is this advice within the javadoc comments :
> > > > >
> > > > >  FIXME: This method does not work.
> > > > >
> > > > > Is there a working version in the CVS?
> > > >
> > > > I don't think so, 1.4-dev still contains the FIXME message.
> > > >
> > > > Andreas
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> > > > For additional commands, e-mail: lenya-user-help@cocoon.apache.org
> > > >
> > > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: LDAPUser.java

Posted by Simon Dutil <s....@gmail.com>.
I should receive a "Could not read properties" when my LDAP server
adress is wrong?  But the exception is still catched by
existsUser...Exception during search:

Any idea?

Simon


On Mon, 27 Sep 2004 09:51:28 -0400, Simon Dutil <s....@gmail.com> wrote:
> >And in methods bind, arent we supposed to provide the >PROVIDER_URL for
> >the principal parameter ?
> 
> forget about this question...
> 
> Simon
> 
> 
> 
> 
> On Mon, 27 Sep 2004 09:48:11 -0400, Simon Dutil <s....@gmail.com> wrote:
> > I dont know much about LDAP, and i think i need some help to
> > understand few things in LDAPUser.java ! :)
> >
> > In Ldap.properties, even if my ldap server adress is corrupted, the
> > exception is still catched by existsUser... ( should be catched
> > before...when the connection is inistialized first ? )
> >
> > In method Initialize, there is no try/catch around the context
> > (connection) line...
> >
> > context = bind(defaultProperties.getProperty(MGR_DN),
> > defaultProperties.getProperty(MGR_PW));
> >
> > If there's a Naming Exception (if connection failed) it wont be
> > catched in initialize() but in existUser where there is a try/catch
> > for naming exceptions...
> >
> > And in methods bind, arent we supposed to provide the PROVIDER_URL for
> > the principal parameter ?
> >
> > Thanks in advance!
> >
> > Simon
> >
> >
> >
> >
> > On Mon, 27 Sep 2004 15:11:46 +0200, Andreas Hartmann <an...@apache.org> wrote:
> > >
> > >
> > > Simon Dutil wrote:
> > > > In Lenya 1.2 sources > LDAPUser.java
> > > >
> > > > For the method existUser, there is this advice within the javadoc comments :
> > > >
> > > >  FIXME: This method does not work.
> > > >
> > > > Is there a working version in the CVS?
> > >
> > > I don't think so, 1.4-dev still contains the FIXME message.
> > >
> > > Andreas
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: lenya-user-help@cocoon.apache.org
> > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: LDAPUser.java

Posted by Simon Dutil <s....@gmail.com>.
>And in methods bind, arent we supposed to provide the >PROVIDER_URL for
>the principal parameter ?

forget about this question...

Simon




On Mon, 27 Sep 2004 09:48:11 -0400, Simon Dutil <s....@gmail.com> wrote:
> I dont know much about LDAP, and i think i need some help to
> understand few things in LDAPUser.java ! :)
> 
> In Ldap.properties, even if my ldap server adress is corrupted, the
> exception is still catched by existsUser... ( should be catched
> before...when the connection is inistialized first ? )
> 
> In method Initialize, there is no try/catch around the context
> (connection) line...
> 
> context = bind(defaultProperties.getProperty(MGR_DN),
> defaultProperties.getProperty(MGR_PW));
> 
> If there's a Naming Exception (if connection failed) it wont be
> catched in initialize() but in existUser where there is a try/catch
> for naming exceptions...
> 
> And in methods bind, arent we supposed to provide the PROVIDER_URL for
> the principal parameter ?
> 
> Thanks in advance!
> 
> Simon
> 
> 
> 
> 
> On Mon, 27 Sep 2004 15:11:46 +0200, Andreas Hartmann <an...@apache.org> wrote:
> >
> >
> > Simon Dutil wrote:
> > > In Lenya 1.2 sources > LDAPUser.java
> > >
> > > For the method existUser, there is this advice within the javadoc comments :
> > >
> > >  FIXME: This method does not work.
> > >
> > > Is there a working version in the CVS?
> >
> > I don't think so, 1.4-dev still contains the FIXME message.
> >
> > Andreas
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: lenya-user-help@cocoon.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: LDAPUser.java

Posted by Simon Dutil <s....@gmail.com>.
I dont know much about LDAP, and i think i need some help to
understand few things in LDAPUser.java ! :)

In Ldap.properties, even if my ldap server adress is corrupted, the
exception is still catched by existsUser... ( should be catched
before...when the connection is inistialized first ? )

In method Initialize, there is no try/catch around the context
(connection) line...

context = bind(defaultProperties.getProperty(MGR_DN),
defaultProperties.getProperty(MGR_PW));

If there's a Naming Exception (if connection failed) it wont be
catched in initialize() but in existUser where there is a try/catch
for naming exceptions...

And in methods bind, arent we supposed to provide the PROVIDER_URL for
the principal parameter ?

Thanks in advance!

Simon
 

On Mon, 27 Sep 2004 15:11:46 +0200, Andreas Hartmann <an...@apache.org> wrote:
> 
> 
> Simon Dutil wrote:
> > In Lenya 1.2 sources > LDAPUser.java
> >
> > For the method existUser, there is this advice within the javadoc comments :
> >
> >  FIXME: This method does not work.
> >
> > Is there a working version in the CVS?
> 
> I don't think so, 1.4-dev still contains the FIXME message.
> 
> Andreas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: LDAPUser.java

Posted by Andreas Hartmann <an...@apache.org>.
Simon Dutil wrote:
> In Lenya 1.2 sources > LDAPUser.java
> 
> For the method existUser, there is this advice within the javadoc comments :
> 
>  FIXME: This method does not work.
> 
> Is there a working version in the CVS?  

I don't think so, 1.4-dev still contains the FIXME message.

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org