browser authentication passed onto perl script

hi there,

i've got a file on my webserver that is protected and needs a username/password to gain access to it. It is a perl script, what i want this perl script to do is to bind to my ldap server with the username/password that was entered when trying to access this file.

so i'm looking for a perl script that using the client authentication and pipes it into a variable

can anyone help me out?
[434 byte] By [paul_mat] at [2007-11-19 18:30:01]