Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6129425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:44:28+00:00 2026-05-23T16:44:28+00:00

Couple of the Perl applications at my workplace require LDAP authentication. When those applications

  • 0

Couple of the Perl applications at my workplace require LDAP authentication. When those applications required the user to login, the application would anonymously connect to the LDAP server then searched for the user in the LDAP database. But now, we are no longer allowed to connect to the LDAP server anonymously, we are given a username and password to connect to it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:44:29+00:00Added an answer on May 23, 2026 at 4:44 pm

    Some code would be helpful, but, basically, if you have a username and password, you just need to bind to the LDAP directory.

    The Net::LDAP documentation has the following example:

    $ldap = Net::LDAP->new( 'ldap.umich.edu' );
    $mesg = $ldap->bind( 'cn=root,o=University of Michigan,c=us', password => 'secret' );
    # your normal code goes here
    

    Alternatively, of course, you could by-pass the username and password you were provided with and simply bind to the directory using the username and password supplied by the user.

    Note that if you’re binding against Active Directory, it’s possible to bind using either 1) the user principal name of the account (e.g., user@umich.edu) or 2) the Kerberos ID (something like UMICH\user) in addition to using the DN of the provided user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Perl script that requires a couple of plugins, for istance nmap.
I had 1 perl script in which we write couple of subroutines. Example: #
I would like to look at a couple of implementations of IPMs. The languages
I'm parsing an HTML document with a couple Perl modules: HTML::TreeBuilder and HTML::Element .
After going through couple of linksI came to know that Perl does the compilation
I've been offloaded some maintenance tasks on a couple of Perl scripts. One of
Couple of questions on git. Currently, I'm the only user and am successfully running
I've been writing perl code full-time for a couple months now(bioinformatics), and am always
I'm working on a pretty big enterprise application using Perl, has tens of modules,
I'm chasing a couple of potential memory leaks in a Perl code base and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.