/[virtual-ldap]/lib/VLDAP/Server.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/VLDAP/Server.pm

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

revision 2 by dpavlin, Sat Mar 14 13:45:20 2009 UTC revision 3 by dpavlin, Sat Mar 14 14:44:45 2009 UTC
# Line 158  sub bind { Line 158  sub bind {
158          #$msg = $self->{upstream}->unbind;          #$msg = $self->{upstream}->unbind;
159          #warn "# unbind msg = ",dump( $msg );          #warn "# unbind msg = ",dump( $msg );
160    
161          $msg = $self->{upstream}->bind(          my $bind;
162                  dn => $req->{name},          $bind->{dn} = $req->{name} if $req->{name};
163                  password => $req->{authentication}->{simple}          $bind->{password} = $req->{authentication}->{simple} if $req->{authentication}->{simple};
164          );          warn "# bind ",dump( $bind );
165            $msg = $self->{upstream}->bind( %$bind );
166    
167          #warn "# bind msg = ",dump( $msg );          #warn "# bind msg = ",dump( $msg );
168          if ( $msg->code != LDAP_SUCCESS ) {          if ( $msg->code != LDAP_SUCCESS ) {

Legend:
Removed from v.2  
changed lines
  Added in v.3

  ViewVC Help
Powered by ViewVC 1.1.26