Perl NET::LDAP Help
Hey All,
I am working on a perl script to do some LDAP stuff and am running into an issue with my attrs LDAP value. Here is my current subroutine that is giving me issues: Code:
sub get_name_by_uid { The error that I am getting is related to barewords in my attrs line on the get_name_by_uid subroutine: Bareword "givenName" not allowed while "strict subs" in use at ./test.pl line 60, <DATA> line 522. Bareword "sn" not allowed while "strict subs" in use at ./test.pl line 60, <DATA> line 522. I can't seem to find a solution to this and am not a perl expert by any means. I am trying to setup my subroutine to do an LDAP search with the $userid which is provided as an option to the script and return the givenName and sn LDAP attributes. Thanks for any help you can provide! |
Also, I know I can get around this by not using:
Code:
use strict; |
I cordially suggest that you take this question to http://www.perlmonks.org, a venerable specialty-site for Perl programming where you will get your required answers in minutes.
|
All times are GMT -5. The time now is 08:46 PM. |