How do I create an Alias object, using...
Articles and Tips: qna
01 Feb 2003
Q.
How do I create an Alias object, using the Novell ActiveX controls for Visual Basic?
A.
Here's an example:
Dim done As Boolean Dim entry As NWDirLib.NWEntry NWDir1.FullName = "NDS:\\W2KTree\o=novell" Set entry = NWDir1.Entries.Add("User", "myUser") Call entry.SetFieldValue("Surname", "myUser") done = entry.Update Debug.Print ("Updated User " & done)
Set entry = NWDir1.Entries.Add("Alias", "myUserAlias") Call entry.SetFieldValue("Aliased Object Name", "NDS:\\w2ktree\o=novell\myUser") done = entry.Update Debug.Print ("Updated Alias " & done)
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.