Hallo,

I can create and delete an attibute  ... but i can't ask the
LDAP-Directory for a existing attribut and values

I taks some test with NET::LDAP::Entry ... attributes ... "exist"
but I can't  it. :-(

--- Example ---- for adding --- a attribut ----------
use Net::LDAP;

$ldap = Net::LDAP->new( 'localhost' );

$mesg = $ldap->bind( 'cn=Administrator,dc=HLSA',
                  password => '****'
                );

$result = $ldap->modify( 'cn=wurst, ou=group, dc=HLSA',
                  add =>['memberUid' => 'hugo']
                );

$result->code && warn "failed to add entry: ", $result->error ;
$mesg = $ldap->unbind;

---- Example ----- for deleting a attribut ---------

....... snap ...

$result = $ldap->modify( 'cn=test, ou=group, dc=HLSA',
         ges =>[
                delete =>[
                         'memberUid' => 'BloederHund'
                         ]
               ]
         );
....... snap ...
---------------------------------------------------


thanks 
SideKick

sorry my english is poor ... but in progress

Reply via email to