From: Chris R. <chr...@me...> - 2002-03-06 16:00:00
|
Graham Barr <gb...@po...> wrote: > > The error: failed to add entry: Type or value exists at b.pl line 27 > > I checked my directory server and there is no such value. The code is > attached. <<b.pl>> [...] > my $result = $ldap->add ( > dn => 'cn=mark Jensens,o=infores.com', > attr => [ 'cn' => ['mark Jensens', 'mark Jensens'], You're trying to add the same value twice to one attribute, which is illegal. The information model that LDAP directories use require that all values of a given attribute are different (*), and your server is spotting that 'mark Jensens' is the same as 'mark Jensens'. (* where "different" is roughly defined as "do not compare equal using the equality matching rule defined in the schema") Remove one of the 'mark Jensens' values. Cheers, Chris |