
On Tue, 12 Oct 2004 23:47:17 -0400, Robert Kaplow
Hey OTRS guys, First, I want to thank you for this piece of software, I think the backend is very nice but the frontend could use a little work, usability-wise.
My question: I have otrs tied into a LDAP for the agent accounts. So the accounts get properly created when they try to login. But when they login for the first time, they have no access to the queues, since they have no permissions in the users group. Obviously I (or someone) could go through the created accounts and add users permissions, but this is a hassle for everyone.
Is it possible that for all created users accounts, the get full permissions on the users group upon creation? Thanks
No. Not unless you do some hacking on Kernel/System/User.pm. Do the following: Open User.pm Go to line 174 (approx). You will be inside of the UserAdd subroutine and should see something like the following: # log notice $Self->{LogObject}->Log( Priority => 'notice', Message => "User: '$Param{Login}' ID: '$UserID' created successfully ($Param{UserID})!", ); # set password $Self->SetPassword(UserLogin => $Param{Login}, PW => $Param{Pw}); # set email address $Self->SetPreferences(UserID => $UserID, Key => 'UserEmail', Value => $Param{Email}); return $UserID; Right before "# set password", put in the following: $Self->custom_sub_to_modify_users_group($UserID); Then, somewhere else in User.pm (doesn't matter where), create the following subroutine: sub custom_sub_to_modify_users_group { my $Self = shift; my ($UserID) = @_; $Self->{GroupObject}->GroupMemberAdd( UID => $UserID, GID => 1, UserID => 2, Permission => { ro => 0, move_into => 0, create => 0, owner => 0, priority => 0, rw => 1, } ); }
Also, we were using local account before switching to using LDAP. How could I delete the old accounts?
Don't have the answer for that one. Sorry. Regards, Tyler Hepworth