If you feel some confusion about any thing or if you do not find what you are looking for, please inform us so that we can improve our documentation accordingly. docs@aspfusion.net |
![]() |
The component allows you to perform all basic LDAP operations on LDAP (Lightweight Directory Access Protocol) directory servers like the Netscape Directory Server. Access to the component can also be turned on at web basis like all other ASPFusion components. It provides the following operations.
Complete basic LDAP server operations, such as Add, Modify, ModifyDN and Delete.
Along with these operations it provides Query the LDAP entries giving the search criteria and can sort the list in ascending, descending and case sensitive, case insensitive order given sorting criteria.
<%set
Obj = Server.CreateObject("AdvLDAP.LDAP")%>
Property |
Description |
Attributes |
It
is a semicolon ‘;’ separated list
of attributes against which the values should be retrieved from the LDAP
server Example: <%Obj.Attributes = “cn;sn;mail;telephonenumber;l”%> |
ErrorReason |
Reports
any errors that occur during the request |
Filter |
It
is a filter that defines the conditions that must be fulfilled in order
for the search to match a given entry. Attributes are referenced in the
form: “Attribute operator value”. Its default value is
“objectclass = *” |
FilterFile |
Specifies
the name of the file that contains the filter string specification. If
filter string is specified in the filter file then the ‘Filter’
parameter will be ignored |
IsError |
Returns
1 if any error occur during the request otherwise 0 |
MaxRows |
It
is the maximum number of entries to be returned as a result of a search.
If not specified then all entries are returned as default |
Password |
Password
corresponds to the user name |
Port |
Optional.
If not specified then default port 389
is used |
Scope |
Specifies
the scope of the search from the entry specified in the DN property. Valid
values are |
ServerName |
Required.
Host name or IP address of the LDAP server |
Sort |
Indicate
the attribute to sort query result by |
SortAscending |
Specify
sorting order of the Query results. Valid values are |
SortCasesensitive |
Specify
sorting mechanism of the Query results. Valid values are |
Timeout |
It
is the maximum time (in seconds) allowed for a search. If not specified
then default value is 60 |
UserName |
User
name required for accessing the server. If no specified then LDAP connection will
be anonymous |
Method
|
Parameter |
Return Value |
Description |
Add |
None |
None |
Add
entries to the LDAP Server |
AttributeAdd
|
AttributeName |
None |
The
method is used to set the value of attributes of the entry, which is to be
added in the LDAP Server. To set more than one attributes call the method
multiple times. AttributeName should contain the name of the attribute.
AttributeValue should contain the value of the attribute.
If the attribute value is not binary then the
ValueSize should be –1 else it will be the size of value in bytes |
AttributeModify
|
AttributeName |
None |
The
method is used to set the value of attributes of the entry, which is to be
modified in the LDAP Server. To set more than one attributes call the
method multiple times. AttributeName
should contain the name of the attribute. AttributeValue should contain
the value of the attribute. If the attribute value is not binary then the
ValueSize should be –1 else it will be the size of value in bytes. If new value is to be replaced by the previous
values then AddFlg must be FALSE else it must be TRUE |
Delete
|
None |
None |
Deletes
entries from LDAP server |
DN |
Attribute |
None |
Specifies
the distinguished name of the entry on LDAP server. For going in depth in
the directory tree call the method multiple time with specifying the
Attribute from top to the bottom |
Modify |
None |
None |
Modifies
entries on LDAP Server with the exception of the distinguished name (DN)
attribute |
ModifyDN |
None |
None |
Modifies
the distinguished name attribute for LDAP entries on LDAP server |
NewRDN |
Attribute |
None |
Specifies
the relative distinguished name of the entry on LDAP server. It must be
the leaf in the directory tree |
Query | None | Array of objects |
Returns
entries information on the basis of some search criteria. |
Copyright © 2000, Advanced Communications |