» »

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
111044 (918) darkolord
»

ASP.NET pisanje datoteke

Oddelek: Programiranje
91058 (936) King80
»

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

Oddelek: Programiranje
212598 (2208) David1994
»

[VB 2005] branje teksta

Oddelek: Programiranje
241584 (1252) mNeRo
»

API+VB

Oddelek: Programiranje
261987 (1691) webblod

Več podobnih tem