Re: Problem with big entries

2007-12-21 Thread Peter Marschall
Hi, On Monday, 17. December 2007, Didi wrote: > I am trying to generate my /etc/passwd from my ldap as a backup > solution. For this I wrote a little script. Unfortunately with having > 20530 users in my LDAP (expected to increase) the script takes > real0m21.471s > to execute and uses up to 3

Re: Problem with big entries

2007-12-18 Thread Brandon Hume
On Mon, 2007-12-17 at 15:11 +0100, Didi wrote: > I am trying to generate my /etc/passwd from my ldap as a backup > solution. For this I wrote a little script. Unfortunately with having > 20530 users in my LDAP (expected to increase) the script takes 20k? Tiny! If you're using Net::LDAP, then inv

Re: Problem with big entries

2007-12-17 Thread Quanah Gibson-Mount
You may wish to try the Net::LDAPapi module. It uses the OpenLDAP C api to do the processing, rather than perl, which can make it more efficient for some types of processing. --Quanah --On December 17, 2007 3:11:57 PM +0100 Didi <[EMAIL PROTECTED]> wrote: Hi I am trying to generate my /etc

RE: Problem with big entries

2007-12-17 Thread Don C. Miller
le,dc=edu", attrs => [ 'userPassword', 'uidNumber', 'gidNumber', 'gecos', 'homeDirectory', 'loginShell'] ); Don -Original Message- From: Didi [mailto:[EMAIL PROTECTED] Sent: Monday, December 17, 2007 6:12 AM To: perl-

Re: Problem with big entries

2007-12-17 Thread Todd Piket
Didi, I've had to do something similar at Michigan Tech, but I found that reading the LDIF is much faster. Perhaps this program will be of some help in that regard. It is based on the ldif2pw program which, I believe, comes with the Net::LDAP bundle. Regards, Todd Piket Sr. Programmer/An

Problem with big entries

2007-12-17 Thread Didi
Hi I am trying to generate my /etc/passwd from my ldap as a backup solution. For this I wrote a little script. Unfortunately with having 20530 users in my LDAP (expected to increase) the script takes real0m21.471s to execute and uses up to 370 MB of Memory. (While using 100 % Percent of one Co