[Date Prev][Date Next] [Chronological] [Thread] [Top]

v2.0.7: cannot add



I create database and run some test scripts on this.
After some hours server  "froze"..
Next I run thes scrips again. And after start perl script
for add user it (script) froze. Atter ^C server print on
debug output (slapd -d 1):
====> cache_find_entry_id( 2 ): 2 (busy) 2
.
.
.

But server still answer for search request..

Mayby after fail first test database is bad ? Or
script is bad ? Before run this script ldapadd work,
after not.

This script:

#!/usr/bin/perl -w

use Net::LDAP;
$st = $ARGV[0];
print $st,"\n";

while(1)
{
for($i=$st;$i<$st+500;$i++)
{
        $l=Net::LDAP->new("10.0.0.2", port => "389") or die;
        $l->bind("cn=manager,o=cnt.pl", password => "secret1");
        $dn = "uid=tstad".$i.",ou=wp,o=cnt.pl";
        print "a: ",$dn,"\n";
        $uid = "tstad".$i;
        $l->add ( $dn,
                      attr => [ 'uid'   => $uid,
                                'mail' => 'b.jensen@umich.edu',
                                'objectclass' => ['top', 'qmailuser'],
                                'qmailgid' => '100'
                              ]
                    );
        $l->unbind;
}
}

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Sylwester Lunski                        Szanse jedna na milion spelniaja
 Email: dookie@mat.uni.torun.pl          sie w dziewieciu przypadkach na
                                         dziesiec    B.E.Weatherwax
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-