View Single Post
  #9   (View Single Post)  
Old 18th November 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

Quote:
Originally Posted by stukov View Post
Code:
$result = $ldap->add("uid=john,ou=People,dc=leapster,dc=org", 
                attr => [ 'cn' => 'John Smith',
                          'sn' => 'Smith',
                          'uid' => 'john',
                          'givenName' => 'John',
                          'homePhone' => '555-2020',
                          'mail' => 'john@domain.name',
                          'objectclass' => [ 'person', 'inetOrgPerson']
                        ]
           );
Am I expected to work with an array or an hash?
Use just the way it is in your example.

The format is given in the POD: http://search.cpan.org/~gbarr/perl-l...b/Net/LDAP.pod

Last edited by ephemera; 18th November 2008 at 07:40 PM.
Reply With Quote