projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cfd4d4d
)
fix silly bug in ldap export
author
ivan
<ivan>
Wed, 20 Nov 2002 09:10:02 +0000
(09:10 +0000)
committer
ivan
<ivan>
Wed, 20 Nov 2002 09:10:02 +0000
(09:10 +0000)
FS/FS/part_export/ldap.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/ldap.pm
b/FS/FS/part_export/ldap.pm
index
776814c
..
57d213a
100644
(file)
--- 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
}
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 ] );
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;
my $status = $ldap->bind( $dn, %bind_options );
die $status->error if $status->is_error;
- $
dn
;
+ $
ldap
;
}
}