Avatar of fireblood
firebloodFlag for United States of America

asked on 

Perl Net::LDAP doesn't provide uidnumber under Sun Solaris

Dear experts,

I am using the Net::LDAP module on a Sun Solaris 64-bit Sparc machiune under perl version 5.13 to try to look up a numeric user ID and obtain the corresponding character login ID.  Everything works fine if I do the search based on the character login ID, but not if I do it based on the numeric UID.  I'm able to bind successfully, then use the instruction
$msg = $ldap -> search
    (
        base => "ou=People, dc=Enterprise, dc=mycompany, dc=com",
        filter => "uid=$parm_login_ID"
    );

But the attribute uidnumber does not appear in the list of values returned for a matching character login ID value.  I get no hits when I change the above instruction to "uidnumber=$parm_numeric_UID".  According to on-line reference materials, the attribute uidnumber is supposed to be part of the same database as is uid, viz. People, but it doesn't show up anywhere.  Is there anything wrong with my program, or did my company configure its local ldap database such that uidnumber is simply not an available attribute?

Thank you!
Unix OSDatabasesPerl

Avatar of undefined
Last Comment
parparov
ASKER CERTIFIED SOLUTION
Avatar of parparov
parparov
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of fireblood
fireblood
Flag of United States of America image

ASKER

Thank you very much!  I was able to run your code on my system and it worked in showing me aspects of the LDAP configuration in my particular installation that I needed to pursue.  Once I drilled down through all the levels I was able to find the information I needed.  The key was the all_objectclasses method, which I didn't know about before.  Thanks again for a good solution.
Avatar of parparov
parparov
Flag of United States of America image

You're welcome
Databases
Databases

Databases are organized collections of data, most commonly accessed through management systems including schemas, tables, queries and processes that allow users to enter and manipulate the information or utilize it in other fashions, such as with web applications or for reporting purposes.

62K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo