Project

General

Profile

Patch #5200 ยป ldap_hostname.patch

Amir Hadi, 2010-03-28 22:14

View differences:

Redmine.pm 2010-03-28 15:08:11.000000000 +0000
302 302
          $sthldap->execute($auth_source_id);
303 303
          while (my @rowldap = $sthldap->fetchrow_array) {
304 304
            my $ldap = Authen::Simple::LDAP->new(
305
                host    =>      ($rowldap[2] eq "1" || $rowldap[2] eq "t") ? "ldaps://$rowldap[0]" : $rowldap[0],
305
                host    =>      ($rowldap[2] eq "1" || $rowldap[2] eq "t") ? "ldaps://$rowldap[0]" : "ldap://".$rowldap[0].":".$rowldap[1],
306 306
                port    =>      $rowldap[1],
307 307
                basedn  =>      $rowldap[5],
308 308
                binddn  =>      $rowldap[3] ? $rowldap[3] : "",
    (1-1/1)