Ok well I would suggest you take a look a CPAN and search for LDAP, specficlly Net::LDAP. Then I think we need to address your needs quote "I need to verify that these are same as that of ldap credentials", this should be simple to do with the use of the LDAP PM just take the values that are given from the auth prompt and pass those to the module and attempt to bind as that user if your return a true then you are golden else we know the user doesn't exsist. This is very simple to do and there are plenty of examples on this site just SuperSearch it.
SUNADMN
USE PERL

In reply to Re: verifification of LDAP credentials by sunadmn
in thread verifification of LDAP credentials by kamesh3183

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.