From: Graham B. <gb...@po...> - 2000-09-27 09:14:53
|
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 |