From: <rlr...@dc...> - 2004-03-01 23:41:33
|
Hello, I have an SPOPS::LDAP subclass called DCA::User for which the automatically generated $FIELD_clear() methods do not seem to work. Here is an example (I have overridden as_string from SPOPS to produce LDIF output): perl -MDCA::Users -e 'my $user = DCA::User->fetch("rlrevell"); $user->_o_clear; print $user->as_string' uid: rlrevell userpassword: {crypt}********** dcanetuserclass: dcanet dcanetaccounttype: pppsh dcanethours: 0 cn: R. Lee Revell sn: Revell givenname: R. Lee mail: rlr...@dc... dcanetpasid: dcanetbillingid: DCAN001 o: DCANet seealso: objectclass: posixAccount objectclass: top objectclass: shadowAccount objectclass: dcanetShellAccount objectclass: person objectclass: organizationalPerson objectclass: radiusProfile objectclass: dcanetDialupAccount objectclass: dcanetAccount objectclass: dcanetPostofficeAccount objectclass: inetOrgPerson uidnumber: 11337 gidnumber: 5000 gecos: R. Lee Revell,DCANet,, homedirectory: /home/rlrevell loginshell: /local/bin/bash shadowlastchange: 11548 shadowmin: 0 shadowmax: 99999 shadowwarning: 7 shadowinactive: shadowexpire: shadowflag: The o: line should be blank, correct? I have also tried this with an SPOPS::DBI subclass; I am also unable to delete an attribute from an object once I have set it. Lee Revell DCANet |