Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    41
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Perl to implement an LDAP Authentication

    Hello,

    I am trying to write a simple PERL script that captures a username and password from text boxes on a website and authenticates them against an LDAP Active Directory, over SSL.

    So, someone will go to a website, enter their username and password in the appropriate text box, click "Login," and if they enter it correctly, they can proceed.

    This doesn't seem like it should be too difficult, but I have not had much luck in Googling it.

    Thanks for the help.

    -W

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by pppebble88 View Post
    Hello,

    I am trying to write a simple PERL script that captures a username and password from text boxes on a website and authenticates them against an LDAP Active Directory, over SSL.

    So, someone will go to a website, enter their username and password in the appropriate text box, click "Login," and if they enter it correctly, they can proceed.

    This doesn't seem like it should be too difficult, but I have not had much luck in Googling it.

    Thanks for the help.

    -W
    did you try this?

    http://search.cpan.org/search?query=ldap&mode=all

    best regards

  • #3
    New Coder
    Join Date
    Oct 2009
    Posts
    41
    Thanks
    4
    Thanked 0 Times in 0 Posts
    No I did not...I went there just now and unfortunately, being new to Perl and LDAP, I am not too sure what I am looking at. Is there an example PERL script that implements what I am talking about? Thanks.

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by pppebble88 View Post
    No I did not...I went there just now and unfortunately, being new to Perl and LDAP, I am not too sure what I am looking at. Is there an example PERL script that implements what I am talking about? Thanks.
    must be somewhere but the main idea is that you have a form and a something what will process the submited data. Once you know how to do each part you know all,
    one of the links on cpan point to some examples:

    http://search.cpan.org/~gbarr/perl-l...P/Examples.pod

    so if you know how to make a form, the rest is simple. That in case that this is what you want.

    Edit: I guess I'm wrong with the link I posted. Search for auth+ldap on cpan

    best regards
    Last edited by oesxyl; 10-28-2009 at 08:17 PM.

  • #5
    New Coder
    Join Date
    Oct 2009
    Posts
    41
    Thanks
    4
    Thanked 0 Times in 0 Posts
    I am still not having much with this documentation...I understand I need to bind to the LDAP server, but I will not be able to connect with the admin username and password. All I want to do is VERIFY the login information being entered...Is it necessary to connect with the admin info in order to do this or does the LDAP server have the ability to call a validation function from the outside? Thanks.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •