Anonymous_User Absent Member.
Absent Member.
371 views

How to get Current User from edir C#


Hi

1) Using C# Ldap Library, How can I get the current logged in User name
?

2) If I have a user name in the following format : User.Ou.Ou.O
How can I convert that format into a DN and then find the user in
the tree ?

Thanks


--
KaranMahant
------------------------------------------------------------------------
KaranMahant's Profile: http://forums.novell.com/member.php?userid=64239
View this thread: http://forums.novell.com/showthread.php?t=386653

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

Re: How to get Current User from edir C#


KaranMahant;1857953 Wrote:
> Hi
>
> 1) Using C# Ldap Library, How can I get the current logged in User name
> ?
>
> You can use the 'getbinddn' extension facility to do this (in case you
> use eDirectory as the server). Check the following sample:
> http://forgeftp.novell.com/ldapcsharp/Samples/Samples.Extensions/GetBindDN.cs
>
> 2) If I have a user name in the following format : User.Ou.Ou.O
> How can I convert that format into a DN and then find the user in
> the tree ?
>
> There is no helper APIs available in the C# LDAP SDK to convert the
> dotted format to ',' separated ones. If you are astarter, LDAP expects
> the data to be in ',' separated format as:
>
> cn=user,ou=test,o=org.
>
> Thanks



--
-WITH REGARDS,-
*-Palaniappan N-* 🙂
------------------------------------------------------------------------
palaniappan1's Profile: http://forums.novell.com/member.php?userid=12325
View this thread: http://forums.novell.com/showthread.php?t=386653

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to get Current User from edir C#


palaniappan1;1858021 Wrote:
>


Thanks mate.


--
KaranMahant
------------------------------------------------------------------------
KaranMahant's Profile: http://forums.novell.com/member.php?userid=64239
View this thread: http://forums.novell.com/showthread.php?t=386653

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.