For Programmers: Free Programming Magazines  


Home > Archive > LDAP > November 2005 > Re: Can't call method "modify" on an undefined value at /usr/lib/perl5/site









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Can't call method "modify" on an undefined value at /usr/lib/perl5/site
Graham Barr

2005-11-24, 8:00 am

On Nov 22, 2005, at 3:56 PM, Sean Hussey wrote:
> Hi everyone,
>
> I'm trying to do a simple modify on a bunch of records. I search for
> the record, find it, and at this point, I've got it down to adding
> just one attribute. The error I get (on every record I try this on)
> is:
>
> Can't call method "modify" on an undefined value at
> /usr/lib/perl5/site_perl/5.8.5/Net/LDAP/Entry.pm line 252


> $entry->update;


You need to pass a Net::LDAP object to perform the update on.

$entry->update($ldap);

Graham.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com