LDAP methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
replaced, so any manual edits will be lost. You've been warned. --> | replaced, so any manual edits will be lost. You've been warned. --> | ||
{{Template:Syntax list header|class=LDAP}} | {{Template:Syntax list header|class=LDAP}} | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="squareb">[</span><span class="term">%number</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">ldap</span><span class="literal">:[[Bind (LDAP function)|Bind]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">JanusPort=</span> <span class="term" title="String"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="squareb">[</span><span class="term">%number</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">ldap</span><span class="literal">:[[Bind (LDAP function)|Bind]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">JanusPort=</span> <span class="term" title="String">name</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">LDAPServer=</span> <span class="term" title="String">hostid</span><span class="squareb">]</span><span class="comma">,</span> - | ||
<span class="squareb">[</span><span class="literal" title="Number">PortNumber=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">UserID=</span> <span class="term" title="String"> | <span class="squareb">[</span><span class="literal" title="Number">PortNumber=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">UserID=</span> <span class="term" title="String">login</span><span class="squareb">]</span><span class="comma">,</span> - | ||
<span class="squareb">[</span><span class="literal" title="String">Password=</span> <span class="term" title="String"> | <span class="squareb">[</span><span class="literal" title="String">Password=</span> <span class="term" title="String">pwd</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Options=</span> <span class="term" title="String">sslvalue</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">ldap</span><span class="literal">:[[ErrorNumber (LDAP function)|ErrorNumber]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">ldap</span><span class="literal">:[[ErrorNumber (LDAP function)|ErrorNumber]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">ldap</span><span class="literal">:[[ErrorText (LDAP function)|ErrorText]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">ldap</span><span class="literal">:[[ErrorText (LDAP function)|ErrorText]]</span></p> | ||
Line 21: | Line 21: | ||
<span class="squareb">[</span><span class="literal" title="Stringlist">ReturnAttributes=</span> <span class="term" title="Stringlist">stringlist</span><span class="squareb">]</span><span class="comma">,</span> - | <span class="squareb">[</span><span class="literal" title="Stringlist">ReturnAttributes=</span> <span class="term" title="Stringlist">stringlist</span><span class="squareb">]</span><span class="comma">,</span> - | ||
<span class="squareb">[</span><span class="literal" title="String">BaseObject=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span></p> | <span class="squareb">[</span><span class="literal" title="String">BaseObject=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%ldap</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(LDAP)</span><span class="squareb">]</span><span class="literal"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%ldap</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(LDAP):</span><span class="squareb">]</span><span class="literal">[[New (LDAP constructor)|New]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%number</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">ldap</span><span class="literal">:[[Unbind (LDAP function)|Unbind]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%number</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">ldap</span><span class="literal">:[[Unbind (LDAP function)|Unbind]]</span></p> |
Latest revision as of 19:26, 8 February 2012
The syntax for each of the LDAP class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of LDAP methods.
[%number =] ldap:Bind[( [JanusPort= name], [LDAPServer= hostid], - [PortNumber= number], [UserID= login], - [Password= pwd], [Options= sslvalue])]
%number = ldap:ErrorNumber
%string = ldap:ErrorText
[%number =] ldap:FindApprox( string, string, doc, [AttributesOnly= boolean], - [ReturnAttributes= stringlist], - [BaseObject= string])
[%number =] ldap:FindEQ( attrib, searchString, doc, - [AttributesOnly= boolean], - [ReturnAttributes= stringlist], [BaseObject= string])
[%number =] ldap:FindGE( string, string, doc, [AttributesOnly= boolean], - [ReturnAttributes= stringlist], [BaseObject= string])
[%number =] ldap:FindLE( string, string, doc, [AttributesOnly= boolean], - [ReturnAttributes= stringlist], [BaseObject= string])
[%number =] ldap:FindStringInCommonName( string, doc, - [AttributesOnly= boolean], - [ReturnAttributes= stringlist], - [BaseObject= string])
%ldap = [%(LDAP):]New
[%number =] ldap:Unbind