projects
/
licom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
328bdcb
)
Fixed major bug..
author
octo
<octo>
Fri, 6 May 2005 16:05:10 +0000
(16:05 +0000)
committer
octo
<octo>
Fri, 6 May 2005 16:05:10 +0000
(16:05 +0000)
lib/LiCoM/Person.pm
patch
|
blob
|
history
diff --git
a/lib/LiCoM/Person.pm
b/lib/LiCoM/Person.pm
index
a5bf4e2
..
6ba43a9
100644
(file)
--- a/
lib/LiCoM/Person.pm
+++ b/
lib/LiCoM/Person.pm
@@
-47,6
+47,24
@@
our %ExternalNames =
return (1);
+sub new
+{
+ my $pkg = shift;
+ my $entry = shift;
+ my $obj = {};
+
+ $obj->{'dn'} = $entry->dn ();
+ $obj->{'ldap'} = $entry;
+
+ for (keys %ValidFields)
+ {
+ my $key = $_;
+ $obj->{$key} = $entry->get_value ($key, asref => $ValidFields{$key});
+ }
+
+ return (bless ($obj, $pkg));
+}
+
=head1 STATIC FUNCTIONS
=over 4