[LDAP] Change password Customer

Moderator: crythias

Post Reply
miguelmz
Znuny wizard
Posts: 370
Joined: 17 Nov 2011, 17:46
Znuny Version: 6.0.10
Real Name: Miguel
Company: SIA
Location: Madrid, Spain.

[LDAP] Change password Customer

Post by miguelmz »

Hi

I am installing an OTRS for a client and want to link to an existing internal ldap. The authentication and synchronization work perfectly but the problems come with the password change.... the password change function in ldap is not programmed!! :cry:

Code: Select all

Module:  /opt/otrs/Kernel/System/CustomerUser/LDAP.pm

sub SetPassword {
    my ( $Self, %Param ) = @_;

    my $Pw = $Param{PW} || '';

    # check ro/rw
    if ( $Self->{ReadOnly} ) {
        $Self->{LogObject}->Log( Priority => 'error', Message => 'Customer backend is ro!' );
        return;
    }
    $Self->{LogObject}->Log( Priority => 'error', Message => 'Not supported for this module!' );
    return;
}
I've looked at the latest version of OTRS and see which is the same function. So I began to look if Net::LDAP allows password changes and I have found that if you can

http://search.cpan.org/~marschap/perl-l ... ng_entries

I'm trying to build the function for the OTRS but without success so far and I was wondering if anyone else has this problem and developed something for it.

a note, there is another possibility to change password client outside the front. Is customer requirement.

I appreciate any help or recommendation.

Regards,
Miguel.
We want OTRS certifications in Spain!!

Check out my free addons! :mrgreen:
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: [LDAP] Change password Customer

Post by crythias »

ldap is specifically set as read-only. In general, external authentication is intended to be handled through the external authentication method.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
miguelmz
Znuny wizard
Posts: 370
Joined: 17 Nov 2011, 17:46
Znuny Version: 6.0.10
Real Name: Miguel
Company: SIA
Location: Madrid, Spain.

Re: [LDAP] Change password Customer

Post by miguelmz »

As I said is a customer requirement. I do not go to the debate of whether it is logical or not, by infrastructure and project organization only has that possibility.

The customer want users to have an option to change your password in the front client with ldap
We want OTRS certifications in Spain!!

Check out my free addons! :mrgreen:
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: [LDAP] Change password Customer

Post by jojo »

as crytias mentioned there are reasons why LDAP is read only.

If you wan't to change it, feel free to do so or to hire a developer for this
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply