summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2002-11-20 09:10:08 +0000
committerivan <ivan>2002-11-20 09:10:08 +0000
commit6a3f590ec18e99086c19fbd9c958a278323df72c (patch)
treebb23ef1494e3570e6a6e8b0d98a1c8f32bc1beed /FS
parent57e6dca948e9d9afffb584645503d6bd2602139c (diff)
fix silly bug in ldap export
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_export/ldap.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/part_export/ldap.pm b/FS/FS/part_export/ldap.pm
index 776814c59..57d213af0 100644
--- a/FS/FS/part_export/ldap.pm
+++ b/FS/FS/part_export/ldap.pm
@@ -202,7 +202,7 @@ sub ldap_queue {
}
sub ldap_insert { #subroutine, not method
- my $dn = ldap_connect(shift, shift, shift);
+ my $ldap = ldap_connect(shift, (my $dn = shift), shift);
my %attrib = @_;
my $status = $ldap->add( $dn, attrs => [ %attrib ] );
@@ -235,6 +235,6 @@ sub ldap_connect {
my $status = $ldap->bind( $dn, %bind_options );
die $status->error if $status->is_error;
- $dn;
+ $ldap;
}