/[virtual-ldap]/lib/LDAP/Virtual.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/LDAP/Virtual.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 58 by dpavlin, Mon Mar 23 20:24:46 2009 UTC revision 59 by dpavlin, Wed Oct 21 18:17:38 2009 UTC
# Line 156  sub bind { Line 156  sub bind {
156    
157          my $bind;          my $bind;
158          $bind->{dn} = $req->{name} if $req->{name};          $bind->{dn} = $req->{name} if $req->{name};
159    
160            if ( $bind->{dn} =~ m{@} ) {
161    
162                            $bind->{dn} =~ s/[@\.]/,dc=/g;
163                            $bind->{dn} =~ s/^/uid=/;
164    
165            }
166    
167          $bind->{password} = $req->{authentication}->{simple} if $req->{authentication}->{simple};          $bind->{password} = $req->{authentication}->{simple} if $req->{authentication}->{simple};
168          warn "# bind ",dump( $bind );          warn "# bind ",dump( $bind );
169          $msg = $self->{upstream}->bind( %$bind );          $msg = $self->{upstream}->bind( %$bind );

Legend:
Removed from v.58  
changed lines
  Added in v.59

  ViewVC Help
Powered by ViewVC 1.1.26