#!/devtool/local/bin/perl
#
# @(#)DUser		1997-11-18
#
# G. Großmann, SAP AG
#
#
#    ========== licence begin  GPL
#    Copyright (C) 2001 SAP AG
#
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of the GNU General Public License
#    as published by the Free Software Foundation; either version 2
#    of the License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#    ========== licence end
#

package DUser;
use Exporter;

@ISA = ('Exporter');
@EXPORT = ('userlookup');

sub userlookup {
	my $name = shift;
    my (@duser, $key, @userkeys);
    @userkeys = grep /$name/i, keys %UserHash;
    foreach $Key (@userkeys) {
        push @duser, $UserHash{$Key};
    }
	return @duser;
}

sub Trim {
    my @out = @_;
    for (@out) {
        s/^\s+//;
        s/\s+$//;
    }
    return wantarry ? @out : $out[0];
}

my ($name, $duser);
while (<DATA>) {
    ($name, $duser) = Trim(split ',' , $_);
    $UserHash{$name}   = $duser;
    $UserHash{$duser}  = $name;
}

1;

# ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG
# ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG
#
# Daten nicht per Hand in dieses File einfügen!!!!!
# Duser.pm.tt wird aus \\pwww\InetPub\scripts\Python\people.conf
# mit $TOOL\adminbinbin\updatetel.pl generiert.
#
# ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG
# ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG ACHTUNG


__DATA__
Rudolf Munz,  D024711
Kathleen Köppen,  D025318
Jürgen Primsch,  D024846
Torsten Strahl,  D025087
Henrik Hempelmann,  D038008
Uwe Hahn,  D025084
Martin Brunzema,  D035952
Daniel Dittmar,  D024856
Martin Kittel,  D039137
Elke Zabach,  D024855
Ulrich Jansen,  D040173
Thomas Anhaus,  D024850
Ferdi Flohe,  D024849
Gert Grossmann,  D024852
Holger Becker,  D025082
Stefan Baier,  D026415
Jörg Mensing,  D027923
Raymond Rödling,  D024857
Stefan Paeck,  D032964
Robin Wissbrock,  D038805
Burkhard Diesing,  D025086
Thomas Simenec,  D030044
Marco Paskamp,  D031096
Alexander Schröder,  D039759
Markus Özgen,  D025085
Daniel Kirmse,  D027470
Thomas Kötter,  D024584
Jürgen Aurisch,  D024851
Barbara Jakubowski,  D024844
Martin Reinecke,  D024853
Bernd Vorsprach,  D025588
Tilo Heinrich,  D025561
Steffen Schildberg,  D019882
Hans-Georg Bumes,  D033893
Wolfgang Auer,  D025911
Markus Stausberg,  D036768
Christian Hartz,  D036768
Mechthild Boré,  D021991
Dennis Adler,  D035667
Robert Völkel,  D022860
Paul von Bünau,  D037430
Jörg Hoffmeister,  D024845
Rocco Himmer,  D024847
Ute Fuchs,  D025249
Uta Völkel,  D026940
Christiane Hienger,  D024848
Martin Körner,  D026206
Frank Hoffmann,  D024858
Thorsten Zielke,  D038010
Mathieu Baudier,  D039404
Bettina Laidler,  D028136
Heike Gursch,  D024843
Melanie Handreck,  D038098
Roland Mallmann,  D028036
Oksana Alekseious,  D037028
Axel Mosle,  D024980
Christoph Bautz,  D025253
Frank Straßenburg,  D026026
Gerald Arnold,  D025276
Daniel Schmoger,  D034092
Falko Flessner,  D038447
Birgit Malik,  D019124
Marina Montag,  D001938
Silja Binner,  D040010
Knut Hansen,  D022879
Martin Härtig,  D021956
Dirk Hofer,  D024975
Alexander Ringhof,  D038248
Alexander Kaiser,  D036661
Thomas Elvers,  D024907
Torsten Pfeiffer,  D020263
Iliyana Bozhikova,  D037364
Klaus Kuehnle,  D027368
Ivan Schreter,  D039184
Peter Goertz,  D022826
Markus Sinnwell,  D026762
Christian Thoma,  D032637
Werner Thesing,  D025448
Stefan Seemann,  D028265
Olaf Alder,  D038760
Sinisa Loinjak,  D026305
Wolfgan Wolesak,  D038311
Erika Wolff,  D038766
Sonja Zscherpel,  D035224
Volkmar Soehner,  D022094
Daniel Booss,  D035299
Jochen Bergmann,  D020876
Thorsten Duda,  D038702
Christian Embacher,  D026174
Thorsten Glebe,  D038759
Steffen Hoffmann,  D028926
Holm Kirstein,  D038149
Hendrik Lock,  D025375
Olaf Mueller,  D037670
Hans-Georg Reusch,  D024668
Tobias Scheuer,  D024910
Michael Seel,  D038758
Carl Seghers,  I006081
Andrei Suvernev,  I804580
Harry Tijsmans,  I804580
El Houssine Touh,  D038734
Stephan Weber,  D025876
Jan Wedel,  D032450
Stefan Wedner,  D035854
Andreas Wiethoff,  D026804
