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 :
ldap:filter(amp;(cn=request:get-query-string/))/ldap:filter

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 
map:parameter name=filter value=(cn={request-param:name})/ 
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 (ldap: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 
 map:parameter name=filter value=(cn={request-param:name})/ 
 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: (amp;(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]



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 :
ldap:filter(amp;(cn=request:get-query-string/))/ldap:filter

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 
map:parameter name=filter value=(cn={request-param:name})/ 
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 (ldap: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 
 map:parameter name=filter value=(cn={request-param:name})/ 
 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: (amp;(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 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:

xsp:page
language=java
xmlns:xsp=http://apache.org/xsp; 
xmlns:ldap=http://apache.org/cocoon/LDAP/1.0;

  page
  xsp:logic
  String cn = request.getParameter(cn);
  if(cn == null) cn = *;
 /xsp:logic
  ldap:execute-query
  ldap:initializercom.sun.jndi.ldap.LdapCtxFactory/ldap:initializer
  ldap:serverurlldap://ldaphost/ldap:serverurl
  ldap:port389/ldap:port
  ldap:scopeOBJECTS_SCOPE/ldap:scope
  ldap:rootdncn=Directory Manager/ldap:rootdn
  ldap:passwordpassword/ldap:password
  ldap:searchbaseou=people,o=company/ldap:searchbase
  ldap:attributecn/ldap:attribute
  ldap:attributesn/ldap:attribute
  ldap:attributegivenName/ldap:attribute
  ldap:attributeinitials/ldap:attribute
  ldap:attributemobile/ldap:attribute
  ldap:attributemail/ldap:attribute
  ldap:attributeou/ldap:attribute
  ldap:attributeuid/ldap:attribute
  ldap:attributetitle/ldap:attribute
  ldap:show-attributetrue/ldap:show-attribute
  ldap:filter(amp;(uid=xsp:exprcn/xsp:expr)(mobile=*))/ldap:filter
 /ldap:execute-query
  /page
/xsp:page



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

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