You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lécharny (Jira)" <ji...@apache.org> on 2022/08/21 05:19:00 UTC

[jira] [Resolved] (DIRSERVER-2069) Failed to change password if realm is not EXAMPLE.COM

     [ https://issues.apache.org/jira/browse/DIRSERVER-2069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lécharny resolved DIRSERVER-2069.
------------------------------------------
    Resolution: Won't Fix

The kerberos server is not anymore supported in M27. Switch to Kerby

> Failed to change password if realm is not EXAMPLE.COM
> -----------------------------------------------------
>
>                 Key: DIRSERVER-2069
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2069
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: kerberos
>            Reporter: Alexander Bersenev
>            Priority: Major
>         Attachments: realm.patch
>
>
> From verifyServiceTicket(protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/changepwd/service/ChangePasswordService.java):
> ChangePasswordConfig config = changepwContext.getConfig();
> ...
> String primaryRealm = config.getPrimaryRealm();
> ...
>         if ( !ticket.getRealm().equals( primaryRealm ) || !serverPrincipal.getName().equals( changepwPrincipal.getName() ) )
>         {
>             throw new KerberosException( org.apache.directory.shared.kerberos.exceptions.ErrorType.KRB_AP_ERR_NOT_US );
>         }
> The primary realm is always EXAMPLE.COM because an initialization of primaryRealm in ChangePasswordConfig was forgot.
> Attached one-string patch fixes it.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org