|
|
Choosing A Webhost: |
Re: LDAP.pm: msg#00013lang.perl.modules.ldap
On 8/9/04 2:06 am, Eddie C. Pagaduan Jr. <eddie@xxxxxxxxxx> wrote: > Hi Mr. Graham Barr, > > I am currently using your LDAP.pm perl module. > I would like to perform LDAP searches on scope='sub' and > deref=>'always'. > But it looks like these cannot be modified. > > I ran an Ethereal trace and noticed that the scope is always set to > 'base' and deref is always set to 'find'. > I looked in LDAP.pm and noticed that these paramaters are hard-coded. Default values are hardcoded, which are then overridden from parameters passed to the search method. --- LDAP.pm 0.32 --- my %stash = ( baseObject => ref($base) ? $base->dn : $base, scope => 2, derefAliases => 2, sizeLimit => $arg->{sizelimit} || 0, timeLimit => $arg->{timelimit} || 0, typesOnly => $arg->{typesonly} || $arg->{attrsonly} || 0, filter => $filter, attributes => $arg->{attrs} || [] ); if (exists $arg->{scope}) { my $sc = lc $arg->{scope}; $stash{scope} = 0 + (exists $scope{$sc} ? $scope{$sc} : $sc); } if (exists $arg->{deref}) { my $dr = lc $arg->{deref}; $stash{derefAliases} = 0 + (exists $deref{$dr} ? $deref{$dr} : $dr); } --- > Is there a reason why it was coded so that these parameters cannot be > modified? > For Example, will it break if I changed LDAP.pm to allow LDAP searches > with: > scope=>'sub' > deref=>'always' I think you'd be changing something that isn't a bug :-) > > Thanks, > Eddie Pagaduan > > Cheers, Chris
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | LDAP.pm, Eddie C. Pagaduan Jr. |
|---|---|
| Next by Date: | From clear to crypted passwords, Hutchins, Mike |
| Previous by Thread: | LDAP.pm, Eddie C. Pagaduan Jr. |
| Next by Thread: | From clear to crypted passwords, Hutchins, Mike |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |