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

To verify, I do a $entry->dump before and after the $entry->add, and
only the added atribute is changed.

I thought this might have had something to do with the ctCalUser
schema, which I've had trouble with, but once I removed it from this
account, the error stayed.

The code is basically this (include dumps, pasted below):

my $entry = $searchResults->entry ( 0 );
$entry->dump;
$entry->add ( eduPersonAffiliation => $eduPersonAffiliation );
$entry->dump;
$entry->update;

Below I've pasted 3 entries--the dump from before the add, after the
add, and the ldif from ldapsearch.  To protect the innocent, I've
XXX'ed out a bunch of info.  Any thoughts on why this is happening?

Thanks!

Sean

------------------------------------------------------------------------
dn:uid=XXXX,ou=people,dc=berklee,dc=edu

                        uid: XXXX
             employeeNumber: XXXX
       eduPersonEntitlement: wireless
                             bmail
                             directory
                         st: MA
                 postalCode: 02215
                     street: 1140 Boylston Street
                          l: Boston
                      title: Associate Professor
              postOfficeBox: FB-121-PIANO
           departmentNumber: PN
       eduPersonAffiliation: ACP
               userPassword: XXXX
                         sn: XXXX
                         cn: XXXX
                  givenName: XXXX
            telephoneNumber: XXX
eduPersonPrimaryAffiliation: FAC
                       mail: XXXX
                objectClass: top
                             person
                             organizationalPerson
                             inetOrgPerson
                             eduPerson
                             qmailUser
------------------------------------------------------------------------
dn:uid=XXXX,ou=people,dc=berklee,dc=edu

                        uid: XXXX
             employeeNumber: XXXX
       eduPersonEntitlement: wireless
                             bmail
                             directory
                         st: MA
                 postalCode: 02215
                     street: 1140 Boylston Street
                          l: Boston
                      title: Associate Professor
              postOfficeBox: FB-121-PIANO
           departmentNumber: PN
       eduPersonAffiliation: ACP
                             ASO
               userPassword: XXXX
                         sn: XXXX
                         cn: XXXX
                  givenName: XXXX
            telephoneNumber: XXXX
eduPersonPrimaryAffiliation: FAC
                       mail: XXXX
                objectClass: top
                             person
                             organizationalPerson
                             inetOrgPerson
                             eduPerson
                             qmailUser

# XXXX, people, berklee.edu
dn: uid=XXXX,ou=people,dc=berklee,dc=edu
uid: XXXX
employeeNumber: XXXX
eduPersonEntitlement: wireless
eduPersonEntitlement: bmail
eduPersonEntitlement: directory
st: MA
postalCode: 02215
street: 1140 Boylston Street
l: Boston
title: Associate Professor
postOfficeBox: FB-121-PIANO
departmentNumber: PN
eduPersonAffiliation: ACP
userPassword:: XXXX
sn: XXXX
cn: XXXX
givenName: XXXX
telephoneNumber: XXXX
eduPersonPrimaryAffiliation: FAC
mail: XXXX
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: eduPerson
objectClass: qmailUser

Reply via email to