FW: LDAP Transformer with XSP page?

2003-07-02 Thread Maxime.Gheysen
The only thing that doesn't work are the 

If I replace a value with a variable like :
...

 String MyTest = "(cn=tfrgh*)";

...
MyTest  
...

I get a "java.lang.NullPointerException" error :

java.lang.NullPointerException
at
org.apache.cocoon.webapps.authentication.components.Authenticator.authen
ticate(Authenticator.java:288)
at
org.apache.cocoon.webapps.authentication.components.DefaultAuthenticatio
nManager.login(DefaultAuthenticationManager.java:218)
at
org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAct
ion.java:118)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Ac
tTypeNode.java:133)

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2003 7:23 AM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Transformer with XSP page?


On Tue, 1 Jul 2003 16:20:59 +0200
<[EMAIL PROTECTED]> wrote:

> Is it possible to create the ldap.xml, with the ldap queries in a xsp
> page?
> 
Yes, for example:

http://apache.org/xsp"; 
xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>

  
  
  String cn = request.getParameter("cn");
  if(cn == null) cn = "*";
 
  
 
com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldaphost
  389
  OBJECTS_SCOPE
  cn=Directory Manager
  password
  ou=people,o=company
  cn
  sn
  givenName
  initials
  mobile
  mail
  ou
  uid
  title
  true
 
(&(uid=cn)(mobile=*))
 
  




-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: LDAP Transformer with XSP page?

2003-07-01 Thread Yury Mikhienko
On Tue, 1 Jul 2003 16:20:59 +0200
<[EMAIL PROTECTED]> wrote:

> Is it possible to create the ldap.xml, with the ldap queries in a xsp
> page?
> 
Yes, for example:

http://apache.org/xsp"; 
xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>

  
  
  String cn = request.getParameter("cn");
  if(cn == null) cn = "*";
 
  
  com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldaphost
  389
  OBJECTS_SCOPE
  cn=Directory Manager
  password
  ou=people,o=company
  cn
  sn
  givenName
  initials
  mobile
  mail
  ou
  uid
  title
  true
  (&(uid=cn)(mobile=*))
 
  




-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Antw: RE: LDAP Transformer with XSP page?

2003-07-01 Thread Martin Geissler
Hello Maxime,

it is possible.
the xsp page has to generate the correct xml syntax for the 
LDAP transformer. (example at wiki)

Martin


>>> [EMAIL PROTECTED] Dienstag, 1. Juli 2003 16:20:59 >>>
Is it possible to create the ldap.xml, with the ldap queries in a xsp
page?

-Original Message-
From:
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] .org] 
Sent: Tuesday, July 01, 2003 4:10 PM
To: [EMAIL PROTECTED] 
Subject: RE: LDAP Transformer


I think there must be a way other than set the parameter in the sitemap
like :

from the ldap.xml write something like that :
(&(cn=))

Is that possible?

-Original Message-
From:
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] .org] 
Sent: Tuesday, July 01, 2003 3:59 PM
To: [EMAIL PROTECTED] 
Subject: RE: LDAP Transformer


it doesn't work. As I said the filter cannot be definied as parameter in
the sitemap. It returns the error 
[LDAPTransformer] Error in LDAP-Query:
javax.naming.directory.InvalidSearchFilterException: Empty filter;

It must be a bug or so...
But refering to the original may, with the other way to search why is it
so slow ?

>
>hello,
>I have integrated ldap into my portal as identhification system.
>My problem is that I have to put a filter to search all users from
these
>seven groups :
>DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
>I have to ways, the first would be to set into my filter a parameter in
>the sitemap, like 
> 
>But it seems that the ldap transformer has a lot of bugs. The parameter
>rootdn works, password works, but both filter and serverurl doesn't
>work!!!
>
>So the only way to filter it is to search by the attribute "memberOf"
in
>every user data. But this attribute is a DN (means not substring or
>wildcards search). With a shareware I've found (LDAP Browser) I can
>search all these data, but with the ldap transformer I get the error :
>[LDAPTransformer] Error in LDAP-Query:
>javax.naming.TimeLimitExceededException: [LDAP: error code 3 -
Timelimit
>Exceeded]; remaining name 'DC=corproot,DC=net'
>Is it a bug of the ldap transformer? Is the filter to long/complex?
>
>Here is the filter ()
>
>(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res
,
>OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,
O
>U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-
D
>AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)
(
>memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU
=
>IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=
I
>T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR
_
>A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))
>
>Thanks
>

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 3:44 PM
To: [EMAIL PROTECTED] 
Subject: Re: LDAP Transformer


On Tue, 1 Jul 2003 14:55:52 +0200
<[EMAIL PROTECTED]> wrote:

> hello,
> I have integrated ldap into my portal as identhification system.
> My problem is that I have to put a filter to search all users from
these
> seven groups :
> DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
> I have to ways, the first would be to set into my filter a parameter
in
> the sitemap, like 
>  
> But it seems that the ldap transformer has a lot of bugs. The
parameter
> rootdn works, password works, but both filter and serverurl doesn't
> work!!!
> 
try the following filter syntax: (&(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: LDAP Transformer with XSP page?

2003-07-01 Thread Maxime.Gheysen
Is it possible to create the ldap.xml, with the ldap queries in a xsp
page?

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Tuesday, July 01, 2003 4:10 PM
To: [EMAIL PROTECTED]
Subject: RE: LDAP Transformer


I think there must be a way other than set the parameter in the sitemap
like :

from the ldap.xml write something like that :
(&(cn=))

Is that possible?

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Tuesday, July 01, 2003 3:59 PM
To: [EMAIL PROTECTED]
Subject: RE: LDAP Transformer


it doesn't work. As I said the filter cannot be definied as parameter in
the sitemap. It returns the error 
[LDAPTransformer] Error in LDAP-Query:
javax.naming.directory.InvalidSearchFilterException: Empty filter;

It must be a bug or so...
But refering to the original may, with the other way to search why is it
so slow ?

>
>hello,
>I have integrated ldap into my portal as identhification system.
>My problem is that I have to put a filter to search all users from
these
>seven groups :
>DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
>I have to ways, the first would be to set into my filter a parameter in
>the sitemap, like 
> 
>But it seems that the ldap transformer has a lot of bugs. The parameter
>rootdn works, password works, but both filter and serverurl doesn't
>work!!!
>
>So the only way to filter it is to search by the attribute "memberOf"
in
>every user data. But this attribute is a DN (means not substring or
>wildcards search). With a shareware I've found (LDAP Browser) I can
>search all these data, but with the ldap transformer I get the error :
>[LDAPTransformer] Error in LDAP-Query:
>javax.naming.TimeLimitExceededException: [LDAP: error code 3 -
Timelimit
>Exceeded]; remaining name 'DC=corproot,DC=net'
>Is it a bug of the ldap transformer? Is the filter to long/complex?
>
>Here is the filter ()
>
>(|(memberOf=CN=DG_IT-CLI-DAR_A_00,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res
,
>OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_01,OU=IT_CLI-DAR,
O
>U=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-
D
>AR_A_03,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)
(
>memberOf=CN=DG_IT-CLI-DAR_A_04,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU
=
>IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR_A_05,OU=IT_CLI-DAR,OU=
I
>T_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net)(memberOf=CN=DG_IT-CLI-DAR
_
>A_06,OU=IT_CLI-DAR,OU=IT_Generic,OU=IT_Res,OU=IT,DC=corproot,DC=net))
>
>Thanks
>

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: LDAP Transformer


On Tue, 1 Jul 2003 14:55:52 +0200
<[EMAIL PROTECTED]> wrote:

> hello,
> I have integrated ldap into my portal as identhification system.
> My problem is that I have to put a filter to search all users from
these
> seven groups :
> DG_IT-CLI-DAR_A_00 to DG_IT-CLI-DAR_A_06
> I have to ways, the first would be to set into my filter a parameter
in
> the sitemap, like 
>  
> But it seems that the ldap transformer has a lot of bugs. The
parameter
> rootdn works, password works, but both filter and serverurl doesn't
> work!!!
> 
try the following filter syntax: (&(uid={request-param:name}))





-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]