- Timestamp:
- 10/17/08 15:59:44 (3 months ago)
- Location:
- trunk/client/mail
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
src/EBox/MailUserLdap.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/mail/ChangeLog
r11490 r11513 1 0.12.100 2 + EBox::MailUserLdap::userAccount does not longer assumme that the user exists 1 3 0.12.99 2 4 + Add support for reporting -
trunk/client/mail/src/EBox/MailUserLdap.pm
r11094 r11513 176 176 # 177 177 # return the user mail account or undef if it doesn't exists 178 # In case the user does not exist undef is also returned 178 179 # 179 180 sub userAccount … … 194 195 my $result = $self->{ldap}->search(\%args); 195 196 my $entry = $result->entry(0); 197 if (not defined $entry) { 198 EBox::warn("Asked for user account or inexistent user $username"); 199 return undef; 200 } 196 201 197 202 my $usermail = $entry->get_value('mail');
