From: Mike M. <mmm...@ne...> - 2000-09-27 13:52:27
|
Boy, it's amazing how well everything works when you include all of the symbols! Thanks a bunch Graham! I think I'll get back to banging my head on my desk now so I can get the old brain cells going again. Mike Graham Barr <gb...@po...> wrote: > perl -MNet::LDAP::Constant=LDAP_REFERRAL -e 'print LDAP_REFERRAL' > > works fine for me. Did you import the symbol ? > > Graham. > > On Tue, Sep 26, 2000 at 03:31:55PM -0500, Mike Morris wrote: > > I am unable to use the LDAP_REFERRAL constant inside my application. I am > > able to refer to the numeric value successfully and my use of LDAP_SUCCESS > > appears to work fine. > > > > For example, this works: > > if ($mesg->code != LDAP_SUCCESS){ > > $mesg->code == 10 ? &do_referral : print "Unable to modify > > $dn\n".$mesg->error." Error Code(".$mesg->code.")\n"; > > } > > > > But this doesn't: > > if ($mesg->code != LDAP_SUCCESS){ > > $mesg->code == LDAP_REFERRAL ? &do_referral : print "Unable to modify > > $dn\n".$mesg->error." Error Code(".$mesg->code.")\n"; > > } > > > > > > Am I just an idiot, or is this a real problem? BTW, I'm using v 0.20, so if > > it's fixed in a later release, please let me know. > > > > Thanks, > > > > Mike > > > > ____________________________________________________________________ > > Get your own FREE, personal Netscape WebMail account today at http://home.netscape.com/webmail ____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://home.netscape.com/webmail |