Anonymous_User Absent Member.
Absent Member.
332 views

Get DN from system

Hi,

I'm having the following issue. I need the full DN of the currently logged
on user using C#. Is there any way to extract this from the the novell
client?

We are using the novell client to logon to the workstations. At the moment
the user is logged on I need to have the full DN.

Thanks in advance,

Eric

Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Get DN from system

Getting the current userid is much easier than reliably getting the full
contexed user.
1) If you use zenworks, it may be stored in the registry. I'm not sure I'd
go this direction but it is simple. The user history is also under
hklm/software/novell/login/history
2) You might have some luck with the ndap activex controlls. Try the
session controll.
http://developer.novell.com/documentation/activex_ndap/ocx_ndap/ref/nwsess/o
verview.htm
Be advised, might not be vista friendly, but you can get there from here.

If anyone has better ideas, feel free to post them.


>>> On 11/6/2007 at 7:35 AM, in message

<e4_Xi.1664$7U6.472@kovat.provo.novell.com>, Eric
Pastor<eric.pastor@atradius.com> wrote:
> Hi,
>
> I'm having the following issue. I need the full DN of the currently
> logged
> on user using C#. Is there any way to extract this from the the novell
> client?
>
> We are using the novell client to logon to the workstations. At the
> moment
> the user is logged on I need to have the full DN.
>
> Thanks in advance,
>
> Eric

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Get DN from system

Hi Eric,
eric.pastor@atradius.com (Eric Pastor) wrote in news:e4_Xi.1664$7U6.472
@kovat.provo.novell.com:

> I'm having the following issue. I need the full DN of the currently logged
> on user using C#. Is there any way to extract this from the the novell
> client?
>
> We are using the novell client to logon to the workstations. At the moment
> the user is logged on I need to have the full DN.

I've no experience with C', but here's a sample which can retrieve the full
DN in C:
http://www.gknw.net/development/samples/mingw32/nwgetuser.zip
probably you can re-write it for C# usage, or write a wrapper:
http://lists.ximian.com/pipermail/mono-docs-list/2003-April/000473.html

HTH, Günter.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.