next up previous contents
Next: AACLS Schema Up: AACLS Syntax Previous: "description"   Contents

"relation"

To be able to describe relations between entries, we have created a simple langage. You can use functions, get attribute values, use either the DN or the RDN of either the author or the target, and a litteral string. When severeals choices are available, take successively each of them.

List of available functions :

All these functions accept two operands. The functions are used in the following way :

$function(a,b)$ or $function.(a,b)$

where function can be replaced be any available function, and a and b are expressions.

List of available variables :

All these variables can be used with the following syntax :

$''\$variable''$

and finally you can get the value(s) of an attribute :

$(expression).attribute$

where attribute can be any of the available attributes on the destination LDAP server

So just give a look at the following examples :

1) $list(''ou=People,dc=upmc,dc=fr'', ''(\&(uid=\$authorRDN)(uid=\$targetRDN))'')$

Check if the author and the target are the same person.

2) $search.(sup.(search.(''ou=Administrative Registration, dc=upmc, dc=fr'',''uid=\$targetRDN''),2),''uid=\$authorRDN'')$

Check if the author and the target are in the same subtree "two level up".

This is an mandatory mono-value attribute.


next up previous contents
Next: AACLS Schema Up: AACLS Syntax Previous: "description"   Contents
root 2004-01-21