#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    1
    Rep Power
    0

    Net::LDAPS cant find entry in ldap server


    Hello everybody, i have an ldap server and i want to use Net::LDAPS with it. Here are the settings of my ldap server.

    h**p://s12.postimg.org/jt4n7uo59/ldap.png

    Now the perl :

    im trying this code

    $ldap = Net::LDAPS->new( '192.168.1.22','636',verify => 'none' );
    $mesg = $ldap->search(filter=>'uid=inv',base=>'ou=people,dc=maxcrc,dc=com',scope=>"one");

    but $mesg->count returns 0 entries

    i tried with

    base=>'dc=maxcrc,dc=com' and scope subtree but nothing happened !

    Any opinions ? thanks !



    SOLVED
    Last edited by invader7; June 10th, 2013 at 02:54 AM. Reason: SOLVED
  2. #2
  3. 'fie' on me, allege-dly
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2003
    Location
    in da kitchen ...
    Posts
    12,889
    Rep Power
    6444
    Care to mention how you fixed it, might help someone out further down the road ...
    --Ax
    without exception, there is no rule ...
    Handmade Irish Jewellery
    Targeted Advertising Cookie Optout (TACO) extension for Firefox
    The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones


    09 F9 11 02
    9D 74 E3 5B
    D8 41 56 C5
    63 56 88 C0
    Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
    -- Jamie Zawinski
    Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ...
    BIT COINS ANYONE

IMN logo majestic logo threadwatch logo seochat tools logo