%st
| A float variable to contain the operational status result of the method. A zero indicates that the method operation succeeded; a negative value indicates an error, which may or may not be in the client code. More specific information about the
If the client is the source of the error, or no server error information is available, ErrorNumber may be the same as %st, or it may be set harmlessly to 0, and ErrorText is likely to contain explanatory information for the
If the server reports an error, the ErrorNumber property is set to that number, which is likely to differ from %st, and the ErrorText value will contain whatever information about the server error is available.
Possible %st values are:
0 | Operation succeeded |
-1 | Connection lost | -3 | Other communication failure |
-4 | Response message contains ill-formed (unexpected) data |
%ld | An Ldap object variable. |
attrib | The name (sometimes called “type”) of the entry attribute you want to key the directory search. You use the searchString argument to specify the attribute value, and FindEQ searches the directory for entries that satisfy the attrib=searchString condition.
Some traditionally supported attribute names include the following, but note that servers are not required to support them. For more about the standard attribute names, see "RFC 2256".
cn | Common Name |
sn | Surname |
l | Location |
o | Organization |
ou | Organization Unit |
st | State |
c | Country |
dc | Domain Component |
---|
The attrib string limit is 255 bytes, and case does not matter (all characters are sent in uppercase as is the usual Model 204 default, which is adjustable using *LOWER). A dotted-number string, which some servers support as a substitute ID for certain standard attribute names, is a perfectly valid attrib argument. |
searchString |
A string, which must be 255 bytes or less, used to locate values in the directory for which attrib=searchString. The searchString is sent as specified, and Model 204 uppercases the characters by default. For LDAP attribute types and servers employing mixed-case searching, you can use the Model 204 *LOWER command to turn off the default uppercasing.
For comments about special character and wildcard handling, see "Using the Find methods". |
%doc |
A Janus XmlDoc object to contain the found directory entries returned from the LDAP server. It must not be Null, but it must be empty, and its Namespace property must be On (the default); otherwise, for any of these, the request is canceled.
The contents of a returned XmlDoc are described in "Working with returned values". |
AttributesOnly |
This Boolean enumeration is an optional but name required parameter. If set to True , FindEQ still retrieves the entries that satisfy the search condition,
but it returns only the names (also called “types”) of the available entry attributes, not their associated values.
If you omit this parameter, its default setting is False . If you specify a value, you must include the parameter name. |
ReturnAttributes |
This optional, name required, Stringlist object contains a list of the LDAP attributes for which information is displayed in each entry that FindEQ returns.
If you omit this parameter or provide a null object, information for all attributes is returned. If you specify a value, you must include the parameter name. Each Stringlist item is limited to 255 characters; null string items are ignored.
|
BaseObject |
This optional, name required, string contains one or more comma-separated attribute=value pairs that direct this search to a particular domain in the target LDAP directory tree. For example:
BaseObject='dc=hawaii,dc=edu'
Such a string may be required by your target LDAP server to provide an LDAP base “distinguished name,” which ensures that the entries your search string locates are unique.
BaseObject is available as of Sirius Mods version 6.8. |
Usage notes
In addition to the following notes, see "Using the Find methods".
Example
Against a test LDAP server,
the following FindEQ statement does a search of cn attribute values
for entries that match the search string sildar john .
The statement asks for a return of only the attribute names in each matching entry,
and all available attributes are returned.
%st = %ld:FindEQ('cn', 'sildar john', %doc, -
AttributesOnly=TRUE)
The %doc:Print result follows:
<result>
<entry objectName="cn: Sildar, John R, id=X479, o=Boston University, c=US">
<cn/>
<sn/>
<givenname/>
<postaladdress/>
<title/>
<o/>
<telephonenumber/>
<objectclass/>
<l/>
<st/>
<c/>
</entry>
</result>
See also
|
---|