ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / LDAP functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
LDAPStartAdd (Function)
In french: LDAPDébutAjout
Initializes the addition of a new object into an LDAP server.
Reminder To add a new object to an LDAP server, you need to define the various attributes and their values.
To optimize object creation speed, attributes and their values are defined locally: a single communication with the server is established during validation of the addition. The steps are:
  1. Initialize the addition (LDAPStartAdd).
  2. Add attributes and their values LDAPAddAttribute). This operation can be performed as many times as necessary.
  3. Associate the attributes and their values with an object (LDAPValidateAdd).
Please note As modification operations are performed locally before being transferred to the server, it is essential to respect the logical order of modifications (for example, it will not be possible to modify an attribute deleted by the previous line of code).
Example
// Ajout d'un utilisateur Test dans un "Active Directory"
LDAPStartAdd("MaSessionLDAP")
LDAPAddAttribute("MaSessionLDAP", "objectClass", "top")
LDAPAddAttribute("MaSessionLDAP", "objectClass", "person")
LDAPAddAttribute("MaSessionLDAP", "objectClass", "organizationalPerson")
LDAPAddAttribute("MaSessionLDAP", "objectClass", "user")
LDAPAddAttribute("MaSessionLDAP", "objectCategory", ...
	"CN=Person, CN=Schema, CN=Configuration, DC=societe, DC=fr")
LDAPAddAttribute("MaSessionLDAP", "instanceType", "4")
LDAPAddAttribute("MaSessionLDAP", "cn", "Test")
LDAPAddAttribute("MaSessionLDAP", "sAMAccountName", "Test")
LDAPValidateAdd("MaSessionLDAP", "cn=Test,cn=Users,dc=societe,dc=fr")
Syntax
LDAPStartAdd(<LDAP session>)
<LDAP session>: Character string
Name of LDAP session used.
Component: wd300com.dll
See also
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help