AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones LDAP
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
LDAPStartAdd (Function)
In french: LDAPDébutAjout
Initializes the addition of a new object into an LDAP server.
Reminder: To add a new object into an LDAP server, you must define the different attributes of this object as well as their values.
To optimize the creation speed of the objects, the attributes and their values are defined locally: a single communication is established with the server when validating 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).
Caution: These operations being performed locally then on the server, the logical order of the modifications must be respected (you cannot for example modify an attribute that was already deleted by the previous line of code).
Example
// Add a Test user into an "Active Directory"
LDAPStartAdd("MyLDAPSession")
LDAPAddAttribute("MyLDAPSession", "objectClass", "top")
LDAPAddAttribute("MyLDAPSession", "objectClass", "person")
LDAPAddAttribute("MyLDAPSession", "objectClass", "organizationalPerson")
LDAPAddAttribute("MyLDAPSession", "objectClass", "user")
LDAPAddAttribute("MyLDAPSession", "objectCategory", ...
"CN=Person, CN=Schema, CN=Configuration, DC=company, DC=us")
LDAPAddAttribute("MyLDAPSession", "instanceType", "4")
LDAPAddAttribute("MyLDAPSession", "cn", "Test")
LDAPAddAttribute("MyLDAPSession", "sAMAccountName", "Test")
LDAPValidateAdd("MyLDAPSession", "cn=Test,cn=Users,dc=company,dc=us")
Syntax
LDAPStartAdd(<LDAP session>)
<LDAP session>: Character string
Name of LDAP session used.
Component: wd290com.dll
See also
Versión mínima requerida
  • Versión 10
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local