in reply to Perl Builds an LDIF
ldap probably cannot find the person, and returns an empty $dn.
Fix by:
Your query would look much prettier, and be easier to answer if you followed Writeup Formatting Tips, and used code tags.while (<PERSON>) { chomp; # Strip trailing line-ending #.. process ldap stuff
Update: Fixed typo, and adding this recommendation:
Use the 3-parameter doem of OPEN:
open PERSON, "<", "ou3" or die "Cannot open 'ou3': $!";
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Builds an LDIF
by Anonymous Monk on Jun 15, 2010 at 14:53 UTC | |
|
Re^2: Perl Builds an LDIF
by Anonymous Monk on Jun 15, 2010 at 15:05 UTC | |
by rfransix (Novice) on Jun 15, 2010 at 18:03 UTC | |
by rfransix (Novice) on Jun 15, 2010 at 19:34 UTC | |
by NetWallah (Canon) on Jun 16, 2010 at 03:37 UTC | |
by rfransix (Novice) on Jun 16, 2010 at 20:22 UTC | |
| |
by rfransix (Novice) on Jun 16, 2010 at 14:33 UTC | |
by rfransix (Novice) on Jun 22, 2010 at 18:47 UTC |