--- lib/A3C/Model/User.pm 2008/03/13 19:51:45 21 +++ lib/A3C/Model/User.pm 2008/03/18 19:22:30 33 @@ -22,15 +22,13 @@ column cn => label is _('Ime i prezime'), - type is 'virtual'; + is mandatory; column sn => - type is 'virtual', label is _('Prezime'), is mandatory; column givenName => - type is 'virtual', label is _('Ime'), is mandatory; @@ -150,6 +148,10 @@ ], default is ''; + column organization => + refers_to A3C::Model::Organization by 'id', + is mandatory; + column hrEduPersonAffiliation => label is _('Povezanost s ustanovom'), is mandatory, @@ -253,38 +255,12 @@ label is 'Pripadnost grupi', hint is 'skolskagodina::razred'; - column o => - label is _('Naziv matične ustanove'), - is mandatory; - - column hrEduPersonHomeOrg => - label is _('Oznaka matične ustanove'), - hint is 'CARNet', - is mandatory; - column ou => label is _('Organizacijska jedinica'); column roomNumber => label is _('Broj sobe'); - column postalAddress => - label is _('Poštanska adresa'), - render as 'textarea', - is mandatory; - - column l => - label is _('Mjesto'), - hist is 'Zagreb', - is mandatory; - - column postalCode => - label is _('Poštanski broj'), - hint is 'HR-10000'; - - column street => - label is _('Ulica i kućni broj'); - column homePostalAddress => label is _('Kućna poštanska adresa'), render as 'textarea'; @@ -298,6 +274,20 @@ column hrEduPersonPrivacy => label is _('Oznaka privatnosti'); + column loginShell => + label is _('shell'); + + column uidNumber => + label is _('uid'), + type is 'int'; + + column gidNumber => + label is _('gid'); + type is 'int'; + + column homeDirectory => + label is _('home'); + }; # we don't use following mixing because it wants to send notificaitons on e-mail address change @@ -360,7 +350,7 @@ sub canonicalize_hrEduPersonExpireDate { my ( $self, $value ) = @_; - if ( $value eq 'NONE' ) { + if ( lc($value) eq 'none' ) { $self->log->warn("fixed hrEduPersonExpireDate"); $value = '2042-12-30'; }