Roxen.git / server / modules / ldap / ldaptag.pike

version» Context lines:

Roxen.git/server/modules/ldap/ldaptag.pike:1:   // This is a roxen module. Copyright © 2000, Roxen IS   //   // Module code updated to new 2.0 API    - constant cvs_version="$Id: ldaptag.pike,v 2.5 2000/12/19 23:59:03 hop Exp $"; + constant cvs_version="$Id: ldaptag.pike,v 2.6 2001/03/07 13:40:46 kuntri Exp $";   constant thread_safe=1;   #include <module.h>   #include <config.h>      inherit "module";      Configuration conf;      #define LDAP_DEBUG 1   #ifdef LDAP_DEBUG
Roxen.git/server/modules/ldap/ldaptag.pike:24:   //constant module_type=MODULE_TAG|MODULE_PROVIDER;   constant module_type=MODULE_TAG;   constant module_name="LDAP tags";   constant module_doc = "This module gives the tag <tt>&lt;ldap&gt;</tt> and "    "<tt>&lt;emit&gt;</tt> plugin (<tt>&lt;emit source=\"ldap\" ... &gt;</tt>).\n";         TAGDOCUMENTATION;   #ifdef manual   constant tagdoc=([ -  -  "ldap":#"<desc tag><short> +  "ldap":#"<desc tag='tag'><p><short>    Executes a LDAP operation, but doesn't do anything with the    result.</short>The <tag>ldap</tag> tag is mostly used for LDAP    operation that change the contents of the directory, for example -  <i>add</i> or<i>modify</i>.</desc> +  <i>add</i> or <i>modify</i>.</p> + </desc>    - <attr name='server' value='LDAP URL'> + <attr name='server' value='LDAP URL' default='Server URL'><p>    Connection LDAP URL. If omitted the <i>Default server URL</i> -  will be used. +  will be used.</p>   </attr>    - <attr name='password' value='password'> + <attr name='password' value='password'><p>    User password for connection to the directory server. If omitted the -  default will be used. +  default will be used.</p>    </attr>    - <attr name='dn' value='distinguished name'> -  Distinguished name of object. Required. + <attr name='dn' value='distinguished name' required='required'><p> +  Distinguished name of object.</p>   </attr>    - <attr name='op' value=add,delete,modify,replace> -  The actual LDAP operation. Required. -  <p>Note that <tt>op='modify'</tt> will change only the attributes -  given by the <i>attr</i> attribute. + <attr name='op' value='add,delete,modify,replace' required='required'><p> +  The actual LDAP operation.</p> +  +  <p>Note that <att>op='modify'</att> will change only the attributes +  given by the <att>attr</att> attribute.</p>   </attr>    - <attr name='attr' value=''attribute_name1':[('attribute_value1'[,... ])][,'attribute_name2',...]'> -  The actual values of attributes. -  <p> for example: -  (sn:'Zappa'),(mail:'hello@nowhere.org','athell@pandemonium.com')</p> + <attr name='attr' value=''attribute_name1':[('attribute_value1'[,... ])][,'attribute_name2',...]'><p> +  The actual values of attributes.</p> +  <p> for example:</p> +  <ex type='box'> +  (sn:'Zappa'),(mail:'hello@nowhere.org','athell@pandemonium.com') +  </ex>   </attr>    - <attr name='parser'> -  If specified, the query will be parsed by the RXML parser. This is useful if the operation is to be built dynamically. + <attr name='parser'><p> +  If specified, the query will be parsed by the RXML parser. This is +  useful if the operation is to be built dynamically.</p>   </attr>",    - "emit#ldap":#"<desc plugin>Use this source to search LDAP directory -  for information. The result will be available in -  variables named as the LDAP entries attribute.</desc> + "emit#ldap":#"<desc plugin='plugin'><p><short> +  Use this source to search LDAP directory for information.</short> The +  result will be available in variables named as the LDAP entries +  attribute.</p> + </desc>    - <attr name='server' value='LDAP URL'> + <attr name='server' value='LDAP URL' default='Server URL'><p>    Connection LDAP URL. If omitted the <i>Default server URL</i> -  will be used. +  will be used.</p>   </attr>    - <attr name='password' value='user password'> + <attr name='password' value='user password'><p>    User password for connection to the directory server. If omitted the -  default will be used. +  default will be used.</p>   </attr>    - <attr name='split' value='separator character'> -  Separator character used for distinguish multiple values inside attribute. -  If ommited the default null separator will be used - </attr> -  +    "   ]);   #endif      // Internal helpers      mapping(string:array(mixed))|int read_attrs(string attrs, int op) {   // from string: (attname1:'val1','val2'...)(attname2:'val1',...) to   // ADD: (["attname1":({"val1","val2"...}), ...   // REPLACE|MODIFY: (["attname1":({op, "val1","val2"...}), ...