» »

asp.net in AD

asp.net in AD

strel ::

kako naj se iz asp.net aplikacije dokopljem do Active directorija.
Zanima ma predvsem Ime in Priimek userja in member of.

Zaenkrat dobim podatke z NT prijavo

Dim MyIdentity As WindowsIdentity = WindowsIdentity.GetCurrent()
Dim MyPrincipal As New WindowsPrincipal(MyIdentity)

'Principal values.
Dim PrincipalName As String = MyPrincipal.Identity.Name
Dim PrincipalType As String = MyPrincipal.Identity.AuthenticationType
Dim PrincipalAuth As String = MyPrincipal.Identity.IsAuthenticated.ToString()

'Identity values.
Dim IdentName As String = MyIdentity.Name
Dim IdentType As String = MyIdentity.AuthenticationType
Dim IdentIsAuth As String = MyIdentity.IsAuthenticated.ToString()
Dim ISAnon As String = MyIdentity.IsAnonymous.ToString()
Dim IsG As String = MyIdentity.IsGuest.ToString()
Dim IsSys As String = MyIdentity.IsSystem.ToString()
Dim Token As String = MyIdentity.Token.ToString()

Tole zaenkrat dela npr : MyIdentity.Name vrne : Domena\username


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

C# INSERT statment ne vpise podatkov

Oddelek: Programiranje
111209 (1083) darkolord
»

ASP.NET pisanje datoteke

Oddelek: Programiranje
91117 (995) King80
»

[C#] Prosim pomagajte! Potrebujem program, ki bi pobiral podatke iz ene strani

Oddelek: Programiranje
212747 (2357) David1994
»

[VB 2005] branje teksta

Oddelek: Programiranje
241647 (1315) mNeRo
»

API+VB

Oddelek: Programiranje
262095 (1799) webblod

Več podobnih tem