Help with $Self->{CustomerUser}

What do the following lines do in $Self->{CustomerUser} (abbreviated for ease of reading). $Self->{CustomerUser} = { Name => 'Database Source', Module => 'Kernel::System::CustomerUser::DB', CustomerID => 'customer_id', # This line! CustomerValid => 'valid_id', Map => [ [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ], # This line! ], }; What is the difference between CustomerID and UserCustomerID? I find that I can change the value of one and it will not affect the other. Also, I thought that a user's ID was drawn from CustomerID (when the program looks at LDAP to find out what the CustomerID is) but have found that it is drawn from UserCustomerID. Can anyone help me clarify what the role of these two entries are? Thanks, Tyler Hepworth

On Thursday, June 10, 2004 11:57 PM
Tyler Hepworth
What do the following lines do in $Self->{CustomerUser} (abbreviated for ease of reading).
$Self->{CustomerUser} = { Name => 'Database Source', Module => 'Kernel::System::CustomerUser::DB', CustomerID => 'customer_id', # This line! CustomerValid => 'valid_id', Map => [ [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ], # This line! ], };
What is the difference between CustomerID and UserCustomerID?
There shouldn't be any. The User... data is an almost free mapping of attributes from the data source to customer user information. CustomerID is the relevant one to determine which tickets a customer can see (those with the same CustomerID). Imagine mapping 'o' to the CustomerID, or any 'ou' attribute. Yes, you may map 'description' or 'telephoneNumber', too. Play with it.
I find that I can change the value of one and it will not affect the other.
Right.
Also, I thought that a user's ID was drawn from CustomerID (when the program looks at LDAP to find out what the CustomerID is) but have found that it is drawn from UserCustomerID.
Indeed it is drawn from UserCustomerID, but read from CustomerID. To be safe from confusion, set both fields to the same value. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
participants (2)
-
Robert Kehl
-
Tyler Hepworth