Changeset 32 for LATMOS-Accounts/lib/LATMOS
- Timestamp:
- 04/23/09 03:09:45 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Unix.pm
r18 r32 142 142 # using shadow ? then reading shadow file 143 143 if ($self->{use_shadow}) { 144 144 145 $self->_load_unix_file( 145 146 $self->{shadow}, … … 170 171 171 172 } # use shadow ? 173 174 1; 172 175 } 173 176 … … 241 244 } 242 245 243 sub create_object{244 my ($self, $otype , $id, %data) = @_;246 sub list_objects { 247 my ($self, $otype) = @_; 245 248 246 249 # objects are store into sub ref: … … 249 252 group => 'groups', 250 253 }->{$otype}; 254 return sort keys %{$self->{$internal_obj} || {} } 255 } 256 257 sub create_object { 258 my ($self, $otype, $id, %data) = @_; 259 260 # objects are store into sub ref: 261 my $internal_obj = { 262 user => 'users', 263 group => 'groups', 264 }->{$otype}; 251 265 252 266 if ($self->{$internal_obj}{$id}) { return };
Note: See TracChangeset
for help on using the changeset viewer.