also you have to add your site in the *local intranet* and modify the user
authentication from the custom level of the local intranet by
check the *automatic logon with  current user name and password* option.

regards,

On Sat, May 16, 2009 at 8:33 AM, Abdullah <[email protected]> wrote:

> kindly use this code , it works with me
>
> Session["user_name"] =
> System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
>
>
>
>
>
> On Wed, May 13, 2009 at 9:43 PM, Amar <[email protected]> wrote:
>
>>
>> My IIS is on domain. I try to use Windows authentication for ASP.net
>> web site. I try to get client name (DOMAIN/user). My IIS have
>> anonymous access  turned off and Integrated Windows authentication
>> turned on.
>>
>> In ASP.NET application in web config.
>>
>> <authentication mode="Windows"/>
>>    <identity impersonate="true" />
>>    <authorization>
>>      <deny users="?"/>
>>
>>  </authorization>
>>
>> and i have Dim name As String = Page.User.Identity.Name
>>
>> but every time when domain user go to this web page get message box
>> with authorization code.
>>
>
>
>
> --
>  Abdullah Almoghalis
>  MIS- Dept.
>
> Y - Telecom  s.a
> 50th Str. - Sanaa - Yemen
> P.O.Box: 16210
> Email: [email protected]
> Tel:       +967 1 429 333
> Fax:      +967 1 429 335
> Mobile: +967 700990810
>
>


-- 
 Abdullah Almoghalis
 MIS- Dept.

Y - Telecom  s.a
50th Str. - Sanaa - Yemen
P.O.Box: 16210
Email: [email protected]
Tel:       +967 1 429 333
Fax:      +967 1 429 335
Mobile: +967 700990810

Reply via email to