Hi all,
Sometimes, when an agent was fired and then hired again, he would be valid in
the LDAP but invalid in OTRS, so I did some scripting (in OTRS 3.1) to
auto-enable in OTRS if LDAP bind was succesful. Something like:
1
2 my %UserData = $UserObject->GetUserData(
3 User => $User,
4 );
5
6 $UserData{UserID} = 1; # valid
7
8 $UserObject->UserUpdate(
9 %UserData,
10 ChangeUserID => 1,
11 );
Now we want to move to OTRS 5 and I'm migrating our custom code and UserUpdate
gives an error because the UserLogin already exists (of course, I want to
update its info!). If I remove UserID or UserLogin, UserUpdate misses these
parameters.
I've seen the code in User.t and the test for UserUpdate changes the UserLogin.
All my agents are in LDAP and UserData is updated on every login with
System::Auth::Sync::LDAP, but I don't get how this one works and mine doesn't
Can anybody explain me how this works now?
Kind regards,
Juan Clavero
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev