Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion LDIF file instead of updating directory
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Marschall  
View profile  
 More options Jan 9 2011, 2:27 pm
Newsgroups: perl.ldap
From: pe...@adpm.de (Peter Marschall)
Date: Sun, 9 Jan 2011 20:27:17 +0100
Local: Sun, Jan 9 2011 2:27 pm
Subject: Re: LDIF file instead of updating directory

Hi,

I always found it quite annoying that one needs two different
objects/methods when writing a Net:LLDAP:Entry to either a directory server
or an LDIF file.
With directory servers you can do
        $entry->update($ldap)
while with LDIF you need
        $ldif->write_entry($entry)

This always requires a distinction in the code path in the perl scripts
although LDIF makes a nice output when doing a "dry run", and Perl
should be able to do the RightThing(tm).

I have attached a patch that extends Net::LDAP::Entry->update
by accepting an Net::LDAP::LDIF object as a parameter too.

It would be great if this patch would make it into the next release
of perl-ldap.

Best regards
Peter

--
Peter Marschall
pe...@adpm.de

  0001-extend-Net-LDAP-Entry-update-to-take-LDIF-objects.patch
4K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.