ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / LDAP functions
  • Rename
  • Modifying an existing object on an LDAP server
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
LDAPRenameAttribute (Function)
In french: LDAPRenommeAttribut
Renames an attribute. The value of attributes is stored during this operation.
Example
// "AttributeName" is renamed to "Name2"
LDAPStartModify("SessionName")
LDAPRenameAttribute("SessionName", "AttributeName", "Name2")
LDAPValidateModify("SessionName", "DN")
Syntax
<Result> = LDAPRenameAttribute(<LDAP session> , <Former attribute name> , <New attribute name>)
<Result>: Boolean
  • True if the modification was performed,
  • False otherwise. ErrorInfo returns more details about the error.
The modification will be performed during the call to LDAPValidateModify.
<LDAP session>: Character string
Name of LDAP session used.
<Former attribute name>: Character string
Current name of attribute to use.
<New attribute name>: Character string
New name of attribute to use.
Remarks

Rename

The new name of the attribute must be a valid attribute for the modified object.
If the rename operation concerns a multi-valued attribute, the new name must correspond to a valid and multi-valued attribute. Otherwise, an error will occur when using LDAPValidateModify.

Modifying an existing object on an LDAP server

To modify an existing object in an LDAP server, you must define the different modifications to perform.
To optimize the modification speed of objects, the modifications are defined locally: a single communication is established with the server when validating the modification. The steps are:
  1. Start modification (LDAPStartModify).
  2. Modification operations:
  3. Validate the modifications on the server (LDAPValidateModify). The modifications are performed on the server according to the order used in the WLanguage code.
Component: wd290com.dll
See also
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help