Re: What's wrong with this code?

Dieter Kluenter <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Organization AVCI
Message-ID <[email protected]>
Am Thu, 17 Feb 2011 16:04:20 -0500
schrieb Prentice Bisbal <[email protected]>:

> Okay guys, I need another pair of eyes to try find an error in my
> code. Can any of you see anything wrong with this bit of code?
> 
> $mesg = $entry->add('objectClass' => 'ntUser',
> 		'ntUserDomainId' => $ntUserDomainId,
> 		'ntUserHomeDir' =>
> "\\\\host.tld\\home\\$ntUserDomainId" );
> 
> .
> 
> When I run my program, I get this error:
> 
> Use of uninitialized value in concatenation (.) or string at
> ./add_nt_attribs.pl line 120, <STDIN> line 1.
> Use of uninitialized value in length at
> /usr/local/perl-5.8/lib/site_perl/5.8.8/Convert/ASN1/_encode.pm line
> 143, <STDIN> line 1.
> Use of uninitialized value in concatenation (.) or string at
> /usr/local/perl-5.8/lib/site_perl/5.8.8/Convert/ASN1/_encode.pm line
> 144, <STDIN> line 1.
> ntUserDomainId: value #0 invalid per syntax at
> /usr/local/perl-5.8/lib/site_perl/5.8.8/Net/LDAP/Entry.pm line 268

value #0 is referring to the entry's first attribute type value, please
check this value.

-Dieter

-- 
Dieter Klünter | Systemberatung
http://dkluenter.de
GPG Key ID:DA147B05
53°37'09,95"N
10°08'02,42"E
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.