Discreet Entity has asked for the wisdom of the Perl Monks concerning the following question:
I have used the Net::LDAP module lots of timees to do searches. However, I cannot seem to figure out how to get the attributes for a specific user when I already have the distinguished name.
For instance, I have a string like so:
"CN=JUSER,OU=ACCT,OU=USERS,DC=MYCOMPANY,DC=COM"
I just need to connect to that specific user object and get the properties. I have read all the help on Net::LDAP and searched but every example seems to be about doing a search and I don't need to search since I already have the dn.
I can do this easily in vbscript by just setting the object to the dn. Surely I can do something similar in perl.
Please help explain what I'm missing.
Thanks,
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::LDAP help with distinguished name
by NetWallah (Canon) on Feb 03, 2012 at 22:13 UTC | |
by Discreet Entity (Initiate) on Feb 03, 2012 at 22:19 UTC | |
by Anonymous Monk on Feb 04, 2012 at 00:22 UTC | |
by Discreet Entity (Initiate) on Feb 04, 2012 at 03:03 UTC | |
by Sinistral (Monsignor) on Feb 04, 2012 at 13:35 UTC | |
| |
by Anonymous Monk on Feb 04, 2012 at 15:16 UTC |