eod has asked for the wisdom of the Perl Monks concerning the following question:
I can create the entry with the same objectclasses, attributes and DN, by the same user using a graphical tool.use Net::LDAP; #conection to the LDAP my $server = 'ldaps://mterra1'; my $ldap = Net::LDAP->new( $server ) or die "$@"; $ldap->bind('cn=admin,o=telefonica', password => 'password'); my $contacto ="alias1"; my $usuario = 'prueba15@prueba.com'; my $entry_dn = "Alias=$contacto,ou=$usuario,o=agenda"; my $entry = [ 'objectClass' => [ 'top', 'contacto', ], 'Alias' => $contacto, ]; $result = $ldap->add ( $entry_dn, atrr => $entry, ); warn "error?: ", $result->error ; #error?: Success at ./create.pl line 48, <DATA> line 225. $ldap->unbind;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::LDAP add success but entry doesn't exist
by john_oshea (Priest) on Dec 29, 2005 at 11:10 UTC | |
by eod (Acolyte) on Dec 29, 2005 at 11:46 UTC | |
|
Re: Net::LDAP add success but entry doesn't exist
by Anonymous Monk on Dec 29, 2005 at 11:24 UTC |