docs.roxen.comBack to normal mode
DocsRoxenWebServer 4.0Web Developer ManualEmit Tags
Copyright © 2006, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com

<emit source="ldap"></emit>

Provided by module: Tags: LDAP tags

Use this source to search LDAP directory for information. The result will be available in variables named as the LDAP entries attribute.


<emit source="ldap"
  server="ldap://ldap.foo.com/dc=foo,dc=com?cn,sn,mail?sub?(sn=john)">
</emit>

<emit source="ldap"
      server="ldap://ldap.foo.com/?cn,sn,mail"
      basedn="dc=foo,dc=com"
      search-scope="sub"
      search-filter="(sn=john)" >
</emit>


Attributes

server="LDAP URL" (Server URL)

Connection LDAP URL. If omitted the Default server URL will be used.

URLs are written on the format: ldap://hostname[:port]/base_DN[?[attribute_list][?[scope][?[filter][?extensions]]]]. For details, see RFC 2255.


search-filter="search filter"

Filter of an LDAP search operation. This value will override the corresponding part of URL.


basedn="base DN"

Base DN of an LDAP search operation. This value will override the corresponding part of URL.


search-scope="search scope"

Scope of an LDAP search operation. This value will override the corresponding part of URL.


binddn="distinguished name"

Bind DN used for authentication in the directory server.


password="password"

Password for authentication in the directory server. If omitted the empty string will be used.