in reply to Re: Using Perl LDAP
in thread Using Perl LDAP
#! /usr/bin/perl sub DN () { 'cn=admin,dc=foo,dc=com' } sub PASSWORD () { 'mypass' } sub SERVER () { 'localhost' } use Carp; use Net::LDAP; # Create connection to the LDAP server and bind authoratively using # administrator credentials my $ldap = Net::LDAP->new( SERVER ); unless ( defined $ldap ) { croak( 'Cannot create connection to LDAP server -- ', $! ); } $ldap->bind ( 'dn' => DN, 'password' => PASSWORD ); my $result = $ldap->add ( 'cn=foo,ou=v_domains,ou=postfix,ou=system_services,dc=foo,dc=com', 'attr' => [ 'cn' => 'foo', 'objectClass' => 'inetLocalMailRecipient', 'mailLocalAddress' => 'test001@foo.com, xmbox.com', 'mailRoutingAddress' => 'foo' ] ); $ldap->unbind;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Using Perl LDAP
by Cmdr_Tofu (Scribe) on Jul 18, 2003 at 10:10 UTC | |
|
Re: Re: Re: Using Perl LDAP
by Excalibor (Pilgrim) on Jul 18, 2003 at 09:46 UTC | |
|
Re: Re: Re: Using Perl LDAP
by blue_cowdawg (Monsignor) on Jul 18, 2003 at 10:11 UTC | |
by Anonymous Monk on Jul 18, 2003 at 11:16 UTC | |
by blue_cowdawg (Monsignor) on Jul 18, 2003 at 13:46 UTC | |
|
Re: Re: Re: Using Perl LDAP
by hiddenlinux (Acolyte) on Jul 18, 2003 at 12:04 UTC | |
by hiddenlinux (Acolyte) on Jul 18, 2003 at 12:23 UTC |