Skip Navigation Links
Home
+
About
+
Products
+
Support
+
Purchase
+
Search
+
Move (Method of LDAPEntry)
Change the Entry's parent dn, thereby moving it to another directory container.
Syntax
Move(NewParentDn As String)
Remarks
The dn (distinguished name) of an entry is its unique identifier. A dn might be "uid=michalp,ou=Development,o=polonia-online.com". The relative dn is the base portion of this dn, namely "uid=michalp". The rest of the dn is called the parent dn, and it identifies the container in which this entry is stored. By changing the parent dn of an entry, that entry is moved to the container idendified by the parent dn. The new parent must be different from the existing one.
Example
Set pLDAP = CreateObject("LDAPClient.3")
Call pLDAP.Connect("ldapserver")

' Brad gets a promotion
Set pEntries = pLDAP.Search("o=airius.com", "(&(givenName=Brad)(sn=Walker))")
Call pEntries(0).Move("ou=Executive, o=polonia-online.com")