logo       

Re: Net::LDAP::Entry update() should pass extra args: msg#00030

Subject: Re: Net::LDAP::Entry update() should pass extra args
Hi,

On Thursday 10 June 2004 17:14, Graham Barr wrote:
> You cannot. If the $ldap object happens to be in async mode, the $mesg
> object does not have the response code in it. trying to call
> $mesg->code will for the operation to be sync'd
>
> > I may be mistaken, but I think with the actual code a user giving a
> > callback
> > option will prevent the entry's changetype from being set.
>
> Yes. We probably need something like
>
>    my %opt = @_;
>    my $user_cb = delete $opt{callback};
>    my $cb = sub { ...; $user_cb->(@_) if $user_cb };
>
> Then add %opt instead of @_ to the method calls

Shall I give it a try ?

> > Only the one above and maybe the two for which I wanted your approval
> > this week:
> > - $ldif->code()
> >   i.e. code() method for Net::LDAP::LDIF
> > - $entry->update($ldif)
> >   i.e. Net::LDAP::Entry->update can take either a
> >   NET::LDAP or a Net::LDAP::LDIF object as it's CLIENT argument
> >
> > The latter one might be more complicated sicne it needs changes even in
> > Net::LDAP::Message. So maybe that one can wait until after the release.
>
> I still do not understand what it is you are trying todo with this
> second one, so I would like to see some sample code before it is
> applied.
>
> To me it does not make any sense to update an ldif object, there is
> nothing to update. It is a stream of entries, so the file would be
> modified by calling $ldif->write

I will wait with it until after the release.

Peter


-- 
Peter Marschall
eMail: peter@xxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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