From: Dobrica Pavlinusic Date: Mon, 22 Feb 2010 22:15:46 +0000 (+0000) Subject: remove last commit because it was bug in test data X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=commitdiff_plain;h=2b0deecf4e04a468229c83049ca0db5426a931fc;hp=45be35d4fde12df37bfbcb3816f7c0840b179d58 remove last commit because it was bug in test data --- diff --git a/bin/ldap-rewrite.pl b/bin/ldap-rewrite.pl index 5199c85..8c35ebb 100755 --- a/bin/ldap-rewrite.pl +++ b/bin/ldap-rewrite.pl @@ -103,7 +103,7 @@ sub log_request { if ( $request->{bindRequest}->{name} =~ m{@} ) { my $old = $request->{bindRequest}->{name}; $request->{bindRequest}->{name} =~ s/[@\.]/,dc=/g; - $request->{bindRequest}->{name} =~ s/^/uid=/ unless $request->{bindRequest}->{name} =~ m/^uid=/; + $request->{bindRequest}->{name} =~ s/^/uid=/; warn "rewrite bind cn $old -> ", $request->{bindRequest}->{name}; Convert::ASN1::asn_hexdump(\*STDOUT,$pdu) if $debug; $pdu = $LDAPRequest->encode($request);