LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   client authentication passed onto perl script (https://www.linuxquestions.org/questions/programming-9/client-authentication-passed-onto-perl-script-414346/)

paul_mat 02-11-2006 07:36 PM

client authentication passed onto perl script
 
hi there,

this is my situation, I have a folder shared on my server called 'students' and then under that folder I have all my student home directories. like so ...

http://www.my-domain.com/students/matthewsp
http://www.my-domain.com/students/smithj
http://www.my-domain.com/students/lawsj

etc,etc,etc

What I want to do, is go to the URL

http://www.my-domain.com/homedirectories/

and get an authentication prompt then when I enter in my username/password it interrogates Active directory to get my security group and the username and then places it in the above URL.

Now I already have a script that will interrogate Active directory and return with any information I need, it’s written in perl, but I need to know how to pass on information from my authentication box in the web browser to my perl script.

http://www.geocities.com/evilperson8...adalias_pl.txt

if you look in my perl script I think what I need to change is

$hqbase="cn=Users,dc=windows,dc=server,dc=int";

to

$hqbase="cn=*whatever-username-was-entered*,cn=Users,dc=windows,dc=server,dc=int";

Other than that I can make everything else work I think ...

chrism01 02-12-2006 10:47 PM

If you are sure that's what you need, use a temp string eg
$const = "cn=Users,dc=windows,dc=server,dc=int";
$hqbase = 'cn=*whatever-username-was-entered*,'.$const;


All times are GMT -5. The time now is 10:45 PM.