Ich schaffs einfach nicht

Hilfe zu Znuny Problemen aller Art
Locked
seppi123
Znuny newbie
Posts: 1
Joined: 18 Mar 2007, 14:45

Ich schaffs einfach nicht

Post by seppi123 »

Hi zusammen!

Kann mir bitte jemand helfen wie ich LDAP Anbindung zu meiner 2003er Domäne bekomme.

Ich hab das neueste OTRS und die LDAP Daten wären:
BaseDN=DC=MsGroup,DC=net
Meine Benutzer sind hier=OU=Benutzer,OU=Memmingen,OU=Verwaltungsstruktur MSM-SMR,DC=MsGroup,DC=net
Der Domänencontroller nennt sich=server1

Wie gehe ich GENAU und IN EINFACHEN SCHRITTEN vor um mit den Infos eine Verbindung herzustellen.

Mein Ziel ist es beim öffnen eines Tickets die Benutzer raussuchen zu können. Die Benutzer selbst müssen vorläufig gar nichts von dem System wissen/sich anmelden.



Vielen Dank!
andrejv
Znuny newbie
Posts: 8
Joined: 23 May 2007, 17:50

Re: Ich schaffs einfach nicht

Post by andrejv »

Hallo seppi,

nachfolgend ein kleiner Ausschnitt aus der OTRS-Doku:

"Configuring a LDAP customer backend
This is a example for a customer backend that has stored all customer information in a LDAP directory."

Code: Select all

    # CustomerUser
    # (customer user ldap backend and settings)
    $Self->{CustomerUser} = {
        Name => 'LDAP Datenquelle',
        Module => 'Kernel::System::CustomerUser::LDAP',
        Params => {
            # ldap host
            Host => 'bay.csuhayward.edu',
            # ldap base dn
            BaseDN => 'ou=seas,o=csuh',
            # search scope (one|sub)
            SSCOPE => 'sub',
#            # The following is valid but would only be necessary if the
#            # anonymous user does NOT have permission to read from the LDAP tree
            UserDN => '',
            UserPw => '',
            # in case you want to add always one filter to each ldap query, use
            # this option. e. g. AlwaysFilter => '(mail=*)' or AlwaysFilter => '(objectclass=user)'
            AlwaysFilter => '',
            # if your frontend is e. g. iso-8859-1 and the charset of your
            # ldap server is utf-8, use this options (if not, ignore it)
#            SourceCharset => 'utf-8',
#            DestCharset => 'iso-8859-1',
            # Net::LDAP new params (if needed - for more info see perldoc Net::LDAP)
            Params => {
                port => 389,
                timeout => 120,
                async => 0,
                version => 3,
            },
        },
        # customer uniq id
        CustomerKey => 'uid',
        # customer #
        CustomerID => 'mail',
        CustomerUserListFields => ['cn', 'mail'],
        CustomerUserSearchFields => ['uid', 'cn', 'mail'],
        CustomerUserSearchPrefix => '',
        CustomerUserSearchSuffix => '*',
        CustomerUserSearchListLimit => 250,
        CustomerUserPostMasterSearchFields => ['mail'],
        CustomerUserNameFields => ['givenname', 'sn'],
        # show now own tickets in customer panel, CompanyTickets
        CustomerUserExcludePrimaryCustomerID => 0,
        # add a ldap filter for valid users (expert setting)
#       CustomerUserValidFilter => '(!(description=gesperrt))',
        # admin can't change customer preferences
        AdminSetPreferences => 0,
        Map => [
            # note: Login, Email and CustomerID needed!
            # var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly
            [ 'UserSalutation', 'Title',      'title',           1, 0, 'var', '', 0 ],
            [ 'UserFirstname',  'Firstname',  'givenname',       1, 1, 'var', '', 0 ],
            [ 'UserLastname',   'Lastname',   'sn',              1, 1, 'var', '', 0 ],
            [ 'UserLogin',      'Username',   'uid',             1, 1, 'var', '', 0 ],
            [ 'UserEmail',      'Email',      'mail',            1, 1, 'var', '', 0 ],
            [ 'UserCustomerID', 'CustomerID', 'mail',            0, 1, 'var', '', 0 ],
#            [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, 'var', '', 0 ],
            [ 'UserPhone',      'Phone',      'telephonenumber', 1, 0, 'var', '', 0 ],
            [ 'UserAddress',    'Address',    'postaladdress',   1, 0, 'var', '', 0 ],
            [ 'UserComment',    'Comment',    'description',     1, 0, 'var', '', 0 ],
        ],
    };
Hoffe es bringt dich weiter.
Falls du noch Fragen haben solltest, dann behalte diese bitte nicht für dich.

Gruß Andrej
Locked