|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsunlabs.brazil.template.Template
sunlabs.brazil.ldap.LDAPTemplate (view source)
public class LDAPTemplate
The LDAPTemplate
is invoked to process LDAP tags embedded in
a document. This version requires the "ldap40.jar" file from the
Netscape Navigator distribution.
The LDAPTemplate uses the following special tag:
<ldap>
When an LDAP tag is seen, the LDAP database is searched and the results are used to populate the request properties.
The following configuration parameters are used to perform the search. The parameters may appear either in the request properties (preceded by the prefix of this template as specified in the configuration file) or as named arguments in the LDAP tag.
prefix
dn
<ldap dn="uid=6105,ou=people,o=WebAuth" prefix=name> <property name.dn> <property name.cn> <property name.sn> <property name.objectclass>etc. The property
name.dn
is the DN that was
found. Other properties will be defined as shown, based on the
attributes present in the LDAP record.
search
<ldap search="(givenname=scott)" prefix=name> <property name.rows> <property name.rowcount> <property name.0.dn> <property name.0.cn> <property name.0.mail> <property name.1.dn> <property name.1.cn> <property name.1.pager>etc. The property
name.rows
is set to the list
of record indices found, and can be used by the BSL tag
<foreach name=x property=name.rows>
to
iterate over all records. Other properties will be defined for
each of the records found as shown, based on the attributes present
in the each of the LDAP records.
base
scope
attributes
host
"host"
or "host:port"
if the server is not running on the
standard LDAP port. Defaults to "". This would be a good option to
specify in the configuration file rather than in the LDAP tag.
authenticate
password
limit
timeout
Field Summary |
---|
Fields inherited from class sunlabs.brazil.template.Template |
---|
debug |
Constructor Summary | |
---|---|
LDAPTemplate()
|
Method Summary | |
---|---|
void |
tag_ldap(RewriteContext hr)
Process <ldap> tags. |
Methods inherited from class sunlabs.brazil.template.Template |
---|
done, init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LDAPTemplate()
Method Detail |
---|
public void tag_ldap(RewriteContext hr)
|
Version Kenai-svn-r24, Generated 08/18/09 Copyright (c) 2001-2009, Sun Microsystems. |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |