PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • LDAP server and local LDAP object
  • Updating the local LDAP object
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
LDAPNbValue (Function)
In French: LDAPNbValeur
Returns the number of values for an attribute.
// Number of values for the "UserPassword" attribute?
NbValue = LDAPNbValue("MySession", "CN=JP", "UserPassword")
Syntax
<Result> = LDAPNbValue(<Session Name> , <Object DN> , <Attribute Name>)
<Result>: Integer
Number of values for the specified attribute.
<Session Name>: Character string (with quotes)
Name of LDAP session used.
<Object DN>: Character string (with quotes)
Distinguished Name (DN) of object whose number of values for the specified attribute is requested.
<Attribute Name>: Character string (with quotes)
Name of attribute for which the number of values is requested. The object attributes are returned by LDAPListAttribute.
Remarks

LDAP server and local LDAP object

The LDAP server contains LDAP objects.
The local LDAP object is an LDAP object fetched from the server.

Updating the local LDAP object

When a read LDAP function is run (LDAPListAttribute, LDAPNbValue, LDAPValue), the server object is entirely fetched back in order to limit the communications with the server. Therefore, if these read functions are called several times with the same DN, the communication with the server is established by the first call. The other calls will read the local object.
LDAPNbValue does not update the local LDAP object if the DN passed in parameter is identical to the last DN passed in parameter to one of the following functions: LDAPListAttribute, LDAPNbValue, LDAPValue.
LDAPNbValue does not update the local LDAP object if the DN passed in parameter is identical to the last DN passed in parameter to one of the following functions: LDAPListAttribute, LDAPNbValue, LDAPValue. However, if LDAPValidateAdd and LDAPValidateModify have been used with this same DN, the local object is automatically updated.
Related Examples:
The LDAP functions Unit examples (WINDEV): The LDAP functions
[ + ] Using the WLanguage LDAP functions.
These functions are used to interact with the LDAP data, to view the content of any LDAP directory and to modify the LDAP data: LDAPConnect, LDAPListChildren, LDAPAdAttribute, LDAPDeleteAttributeValue, ...
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
See also
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment