Current time: 02-17-2025, 08:03 PM Hello There, Guest! (LoginRegister)


Post Reply 
mod_auth_mysql und ISP+Etch
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: mod_auth_mysql und ISP+Etch
die Variable $_SERVER["Authorization"]) enthält sowas wie

string(18) "Basic Zm9vOmJhcg=="

das muss dann den String 'Zm9vOmJhcg==' mit base64 decodieren und erhälst 'foo:bar' als Antwort - und da ist foo der User und bar das Kennwort...

Das ganze klappt zumindest, wenn der Basic Algorithmus in der HTTP-Auth methode gesetzt ist zB: header('WWW-Authenticate: Basic realm="...."');

/J
04-06-2008 10:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
mod_auth_mysql und ISP+Etch - winex - 04-06-2008, 07:34 PM
RE: mod_auth_mysql und ISP+Etch - joximu - 04-06-2008, 08:12 PM
RE: mod_auth_mysql und ISP+Etch - winex - 04-06-2008, 08:25 PM
RE: mod_auth_mysql und ISP+Etch - Cube - 04-06-2008, 08:31 PM
RE: mod_auth_mysql und ISP+Etch - joximu - 04-06-2008 10:40 PM
RE: mod_auth_mysql und ISP+Etch - winex - 04-06-2008, 10:48 PM
RE: mod_auth_mysql und ISP+Etch - joximu - 04-06-2008, 11:17 PM
RE: mod_auth_mysql und ISP+Etch - winex - 04-06-2008, 11:32 PM
RE: mod_auth_mysql und ISP+Etch - Zothos - 04-07-2008, 07:55 PM
RE: mod_auth_mysql und ISP+Etch - joximu - 04-07-2008, 09:18 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)