Beispiel:
web.config in der root
----------------------
<configuration>
<system.web>

<authentication mode="Forms">
<forms name="KundenAnmeldung" path="/" loginUrl="Management/Login.aspx"
protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="Kunde" password="Test" />
</credentials>
</forms>
</authentication>

<authorization>
<allow users="*" />
</authorization>

</system.web>
</configuration>

web.config im Verzeichnis, das gesch�tzt werden soll
----------------------------------------------------
<configuration>
<system.web>

<configuration>
<system.web>
<authorization>
<allow users="Kunde" />
<deny users="?" />
</authorization>
</system.web>
</configuration>

</system.web>
</configuration>

Au�erdem ist die Verwendung von
forms name=".ASPXAUTH" 
 loginUrl="login.aspx" path="/admin" />
glaube ich, noch nicht richtig.
forms name="" legt den Namen des cookies fest
path="" den Pfad des cookies und der sollte
"/" sein

Gru�, Matthias

> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> Auftrag von Hoffmann Thorsten
> Gesendet: Mittwoch, 2. April 2003 12:31
> An: [EMAIL PROTECTED]
> Betreff: [Asp.net] Forms-Authentification auf 
> bestimmtes Verzeichnis
> beschr�nken
> 
> 
> Hallo Liste,
> 
> was stell ich in der web.config ein, um meine 
> Forms-Authentication auf ein
> Unterverzeichnis 'admin' zu beschr�nken ?
> 
> Bisher siehst so aus:
> --------------------------------------------------
> ------------------------
> <?xml version="1.0" encoding="UTF-8" ?>
> 
> <configuration>
> 
>   <system.web>
> 
>     <authentication mode="Forms">
>       <forms name=".ASPXAUTH" 
> loginUrl="login.aspx" path="/admin" />
> 
>     </authentication>
> 
>     <authorization>
>       <deny users="?" />
>     </authorization>
> 
>   </system.web>
> 
> </configuration>
> --------------------------------------------------
> ------------------------
> 
> Dennoch wird auch bei allen Seiten, die nicht im 
> admin-Verzeichnis liegen,
> die Authentification verlangt.
> 
> 
> Gruss,
> 
> Thorsten
> 
> _______________________________________________
> Asp.net mailing list
> [EMAIL PROTECTED]
> http://www.glengamoi.com/mailman/listinfo/asp.net
> 



_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an