LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-11-2006, 08:36 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
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 ...
 
Old 02-12-2006, 11:47 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
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;
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a Windows Perl script to a Linux Perl script. rubbercash Programming 2 07-19-2004 11:22 AM
What are the names of the variables passed to konqueror's email client? BluePyre Linux - Software 0 07-04-2004 12:33 PM
bash script ? -- spaces in passed parameters azwr Linux - Newbie 3 06-18-2004 07:57 PM
Need Help With My Perl/cgi Authentication Script dutch357 Programming 0 04-11-2003 10:54 AM
Including methods from a perl script into another perl script gene_gEnie Programming 3 01-31-2002 06:03 AM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration