Re: Jetspeed 2.3.0 - Enabling password validation - Request for support

David S Taylor <[email protected]> Mon, 17 Jul 2017 15:38:49 -0700
Newsgroups gmane.comp.jakarta.jetspeed.user
Message-ID <[email protected]>
--Apple-Mail=_2DB48096-06DE-4028-AA92-2A95F0416109
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

> Is the file you provided working file with you?

Well, yes, sort of. The Spring configuration override works fine for me =
out of the override directory. However, it seems we=E2=80=99ve uncovered =
several bugs=E2=80=A6.

I tested this from 4 different features:

1. The Change (Your own) Password portlet - There is a bug here, and it =
fails to validate, and allows the user to set an invalid password
2. The Old User Manager - it correctly flags the password was bad, but =
fails to display an error message
3. The New User Manager - There is a bug here, and it fails to validate, =
and allows the user to set an invalid password
4. User Registration - this works, and displays a message

So #1, #2, #3 are broken
#2 the password is correctly NOT updated. But the UI doesn=E2=80=99t =
display an error message. You can validate this by trying to login with =
new password.

#4 works for me

Could you please verify my findings with all 4 cases above for the =
version you are using. I  tested against 2.3.2 trunk

And, please create a JIRA issue here:

https://issues.apache.org/jira/secure/Dashboard.jspa =
<https://issues.apache.org/jira/secure/Dashboard.jspa>

IF you do don=E2=80=99t have an Apache JIRA account, please create one.

Create a new issue, and please assign it to me: (username=3Dtaylor)

Once the issue is created, I can start working on bug fixes.=20


Thanks


> On Jul 17, 2017, at 12:47 AM, Elyse Badr <[email protected]> =
wrote:
>=20
> Thank you for your reply.
> I tried to put the file you attached in the override folder with no =
luck to enable the password validation.
> I tried on the following screens and I am still able to use any =
password:
> =20
> <image001.png>
> =20
> <image002.png>
> =20
> I also tried to paste the same files that are in the alternate folder, =
at first I was not able to even login with the current password, so I =
commented a part that encodes the password and retried, I was able to =
login but the password validation was not enabled.
> I then tried to put in the override folder only my file which is  =
security-spi-atn.xml with no luck.
> =20
> Is the file you provided working file with you?=20
> =20
> Thanks,
> =20
> Elyse BADR
> Software Engineer, CME
> (O)+961-01-389-392, (M) +961-03-533-179
> [email protected] <mailto:[email protected]>
> =20
> =20
> From: David Sean Taylor [mailto:[email protected]]=20
> Sent: Monday, July 17, 2017 8:36 AM
> To: Elyse Badr <[email protected]>
> Subject: Re: Jetspeed 2.3.0 - Enabling password validation - Request =
for support
> =20
> I sent a reply to the Jetspeed User list
> =20
> =
https://mail-archives.apache.org/mod_mbox/portals-jetspeed-user/201707.mbo=
x/%[email protected]%3E =
<https://mail-archives.apache.org/mod_mbox/portals-jetspeed-user/201707.mb=
ox/%[email protected]%3E>
>=20
> On Jul 16, 2017, at 10:10 PM, Elyse Badr <[email protected] =
<mailto:[email protected]>> wrote:
>=20
>> Hi again,
>> =20
>> I sent an email to the following emails: =
'[email protected] =
<mailto:[email protected]>'; =
'[email protected] =
<mailto:[email protected]>'
>> And I still didn=E2=80=99t get any reply since last Thursday=E2=80=A6 =
Am I using the wrong list again?
>> Can you please advise?=20
>> =20
>> Many thanks in advance..
>> =20
>> Thanks,
>> =20
>> Elyse BADR
>> Software Engineer, CME
>> (O)+961-01-389-392, (M) +961-03-533-179
>> [email protected] <mailto:[email protected]>
>> =20
>> =20
>> From: DavidSeanTaylor [mailto:[email protected] =
<mailto:[email protected]>]=20
>> Sent: Wednesday, July 12, 2017 10:30 PM
>> To: Elyse Badr <[email protected] =
<mailto:[email protected]>>
>> Cc: [email protected] <mailto:[email protected]>; [email protected] =
<mailto:[email protected]>; Ate Douma <[email protected] =
<mailto:[email protected]>>
>> Subject: Re: Jetspeed 2.3.0 - Enabling password validation - Request =
for support
>> =20
>> Hi Elyse,
>> =20
>> Please send questions to the jetspeed-user list and please do not =
contact people directly. When using the mailing list, not only is it the =
correct way to submit a support question, but you will also get the =
added benefit of having everyone available capable of answering the =
question. And, others can learn from your documented case so they =
don=E2=80=99t have to ask the question again. Finally, I am on vacation, =
and others on this list may be no longer active in the project, so you =
may not get much help here today :-)
>> =20
>> You can sign up for the jetspeed-user list here:
>> =20
>> http://portals.apache.org/jetspeed-2/mail-lists.html =
<http://portals.apache.org/jetspeed-2/mail-lists.html>
>> =20
>> Thanks,
>> =20
>> =E2=80=94
>> David
>> =20
>>> On Jul 12, 2017, at 6:00 AM, Elyse Badr <[email protected] =
<mailto:[email protected]>> wrote:
>>> =20
>>> Hi again,
>>> =20
>>> I had to decompile the jetspeed-security-2.3.0 jar to get some =
equivalent names of some implementations=E2=80=A6 I created my own =
security-spi-atn.xml, Jetspeed did start successfully, however the =
validation rules are not applied, and I can try incorrect login password =
for several times.
>>> Please find attached my new configuration file and advice.
>>> =20
>>> Awaiting your reply.
>>> =20
>>> Thanks,
>>> =20
>>> Elyse BADR
>>> Software Engineer, CME
>>> (O)+961-01-389-392, (M) +961-03-533-179
>>> [email protected] <mailto:[email protected]>
>>> =20
>>> =20
>>> From: Elyse Badr [mailto:[email protected] =
<mailto:[email protected]>]=20
>>> Sent: Wednesday, July 12, 2017 2:59 PM
>>> To: '[email protected] <mailto:[email protected]>' =
<[email protected] <mailto:[email protected]>>; '[email protected] =
<mailto:[email protected]>' <[email protected] =
<mailto:[email protected]>>; '[email protected] <mailto:[email protected]>' =
<[email protected] <mailto:[email protected]>>
>>> Subject: RE: Jetspeed 2.3.0 - Enabling password validation - Request =
for support
>>> =20
>>> Hi support team,
>>> =20
>>> <<Note: please feel free to forward my email to any person who can =
help>>
>>> =20
>>> Following up on this, it turned out that the sample configuration =
defined in Jetspeed 2 documentation link =
<https://portals.apache.org/jetspeed-2/deployguide/security-config.html#se=
curity-spi-atn_xml> for security-spi-atn.xml, is referencing classes not =
present in  Jetspeed jars probably belonging to older versions of =
Jetspeed (1):
>>> =20
>>> <image001.jpg>
>>> =20
>>> =20
>>> <image002.jpg>
>>> =20
>>> =20
>>> I am using 2.3.0 and I even downloaded 2.3.1 and found out it has =
the same problem.=20
>>> Can you please provide an updated sample configuration?=20
>>> Awaiting your reply.
>>> =20
>>> Thanks,
>>> =20
>>> Elyse BADR
>>> Software Engineer, CME
>>> (O)+961-01-389-392, (M) +961-03-533-179
>>> [email protected] <mailto:[email protected]>
>>> =20
>>> =20
>>> From: Elyse Badr [mailto:[email protected] =
<mailto:[email protected]>]=20
>>> Sent: Wednesday, July 12, 2017 12:03 PM
>>> To: '[email protected] <mailto:[email protected]>' =
<[email protected] <mailto:[email protected]>>; '[email protected] =
<mailto:[email protected]>' <[email protected] =
<mailto:[email protected]>>; '[email protected] <mailto:[email protected]>' =
<[email protected] <mailto:[email protected]>>
>>> Subject: Jetspeed 2.3.0 - Enabling password validation - Request for =
support
>>> =20
>>> Hi Support team,
>>> =20
>>> We are using Jetspeed 2.3.0 to deploy our set of portlets =
applications. I am sharing a problem I am facing in order to provide me =
with help or hints.
>>> We would like to enable password validation rules that are already =
supported by Jetspeed security.
>>> =20
>>> I uncommented some sections in =
Jetspeed-2.3.0\webapps\jetspeed\WEB-INF\assembly\security-spi-atn.xml =
and =
Jetspeed-2.3.0\webapps\jetspeed\WEB-INF\assembly\alternate\credentials\max=
-password-auth.xml but nothing was happening.
>>> I did the same and nothing happened too.=20
>>> =20
>>> I made some research with no luck as no documentation or question =
related to this topic. In Jetspeed documentation link =
<https://portals.apache.org/jetspeed-2/deployguide/security-config.html#se=
curity-spi-atn_xml> they provide a sample config which is not working =
too. I am getting=20
>>> java.lang.ClassNotFoundException: =
org.apache.jetspeed.security.spi.impl.InternalPasswordCredentialIntercepto=
rsProxy
>>> Although the jar jetspeed-security is present in the lib folder of =
the same location: Jetspeed-2.3.0\webapps\jetspeed\WEB-INF\lib
>>> =20
>>> Any suggestion from you is welcomed too.
>>> We would like to enable the following rules:
>>> =20
>>> Set min & max character, alphanumeric count for passwords
>>> Set password age [90 days]
>>> Set count of password history [last 5 passwords]
>>> Set notification period for password change reminder
>>> =20
>>> I attached the files I am currently using. Please help.
>>> =20
>>> Thanks in advance.
>>> =20
>>> Thanks,
>>> =20
>>> Elyse BADR
>>> Software Engineer, CME
>>> (O)+961-01-389-392, (M) +961-03-533-179
>>> [email protected] <mailto:[email protected]>
>>> =20
>>> =20
>>> <security-spi-atn.xml>


--Apple-Mail=_2DB48096-06DE-4028-AA92-2A95F0416109--