Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VB.Net, DirectoryServices, LDAP: Reading the GUID of the User.

70 views
Skip to first unread message

Barry den Hertog

unread,
Apr 1, 2003, 6:55:31 AM4/1/03
to
When I connect to a Novell LDAP server, and I'm trying to read the
userinformation, everything is going ok, except when I'm reading the GUID
property from the Novell user.

This is the code I'm using:

Dim objNDSEntries As New DirectoryEntry()
Dim objNDSEntry As DirectoryEntry

objNDSEntries.Path = "LDAP://" & txtServer.Text & "/" &
txtContext.Text

If txtUsername.Text <> "" Then
objNDSEntries.Username = txtUsername.Text
End If
If txtPassword.Text <> "" Then
objNDSEntries.Password = txtPassword.Text
End If

Try
For Each objNDSEntry In objNDSEntries.Children

Select Case objNDSEntry.SchemaClassName
Case "inetOrgPerson"
'..... doing something with the userinformation here

msgbox(objNDSEntry.NativeGUID.ToString)
End Select
Next
End Try

When executing the line:
msgbox(objNDSEntry.NativeGUID.ToString)

I'm receiving the following error message

System.Runtime.InteropServices.COMException (0x8000500D): Exception from
HRESULT: 0x8000500D.
at System.DirectoryServices.Interop.IAds.get_GUID()
at System.DirectoryServices.DirectoryEntry.get_NativeGuid()
at GetWindowsUsers.Form1.Button1_Click(Object sender, EventArgs e) in
....

Does anyone know how to get the unique GUID from a Novell User in VB.net??

Thanx


Dave Kearns-NSCV

unread,
Apr 1, 2003, 11:12:28 AM4/1/03
to
You'll get much better help if you post to the developer forums at
http://developer.novell.com/

--
Dave Kearns
Novell Support Connection Volunteer

"Barry den Hertog" <barry_t...@hotmail.com> wrote in message
news:T6fia.34483$j15....@prv-forum2.provo.novell.com...

0 new messages