Changeset 301


Ignore:
Timestamp:
07/31/09 08:43:36 (15 years ago)
Author:
nanardon
Message:
  • under AD, the attribute homeDirectory is a windows setting, unixHomeDirectory must be used instead
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Ad/User.pm

    r292 r301  
    145145        return $self->base->_get_object_from_dn($dn)->get_value('cn'); 
    146146    }; 
     147    $field eq 'homeDirectory' and do { 
     148        $field = 'unixHomeDirectory'; 
     149    }; 
    147150    $self->SUPER::get_field($field); 
     151} 
     152 
     153sub _populate_entry { 
     154    my ($self, $entry, $field, $value) = @_; 
     155    # MS Ad sucks, does not respect RFC 
     156    # homeDirectory => unixHomeDirectory 
     157    # Win home => homeDirectory... 
     158    # The question is now: do we have to manage Ad homeDirectory field ? 
     159    if ($field eq 'homeDirectory') { $field = 'unixHomeDirectory' } 
     160    $self->SUPER::_populate_entry($entry, $field, $value); 
    148161} 
    149162 
Note: See TracChangeset for help on using the changeset viewer.