Hi,

We use LDAP backend for agents, and we would like to extend it to
customer users.

I know thats agents that are not in OTRS DB are created at their first login.
But how can that be achieved for customers?
I am able to authentificated customers against LDAP but only if
customer is already created.

Part that I added to my Config.pm:


  $Self->{CustomerUser} = {
        Name => \'LDAP Backend\',
        Module => \'Kernel::System::CustomerUser::LDAP\',
        Params => {
            # ldap host
            Host => \'ldap.example.fr\',
                SSCOPE => \'one\',
            # ldap base dn
            BaseDN => \'ou=user,dc=ldap,dc=example,dc=fr\',
                Params => {
                port    => 1389,
            },

        },
        CustomerKey => \'uid\',
        CustomerID => \'mail\',
        CustomerUserListFields => [\'cn\', \'mail\'],
        CustomerUserSearchFields => [\'uid\', \'cn\', \'mail\'],

        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\',  \'cn\',       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 ],
        ],
        };



Thanks for your answer,

Bastien.
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to