Re:[cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2014-01-13 Thread Andres
That's great, your project and explanations are very welcome. I'm already using Apache Directory Studio, it's the best free tool I've seen so far. Thank you so much! -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or acces

Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2014-01-13 Thread Trenton D. Adams
On 14-01-10 12:29 AM, Andres wrote: Well, I've finally managed to go one step ahead with ldaptive. First of all, a spacial way of binding to LDAP is needed for the server to reply with certain codes related to locked accounts and expired passwords. Ldaptive implements it attaching a "authenticat

Re:[cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2014-01-09 Thread Andres
Well, I've finally managed to go one step ahead with ldaptive. First of all, a spacial way of binding to LDAP is needed for the server to reply with certain codes related to locked accounts and expired passwords. Ldaptive implements it attaching a "authentication control". This is how I invoke

Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2014-01-09 Thread Trenton D. Adams
On 14-01-09 01:00 PM, Marvin Addison wrote: On the other hand, Ldaptive provides some support for this: http://www.ldaptive.org/docs/guide/authentication/accountstate I've found most LDAP libraries to be ridiculously overly complex. Ldap is very simple, and shouldn't be made so complex. Th

Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2014-01-09 Thread Marvin Addison
>> On the other hand, Ldaptive provides some support for this: >> >> http://www.ldaptive.org/docs/guide/authentication/accountstate > > > I've found most LDAP libraries to be ridiculously overly complex. Ldap is > very simple, and shouldn't be made so complex. There's hardly anything simple about

Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2014-01-09 Thread Trenton D. Adams
On 14-01-08 05:08 AM, Andres wrote: Ok, I'm really stuck actually in getting Password Policy to work with OpenLDAP. I think I'll need Trenton's approach: write my own implementation in some way. Maybe in PasswordPolicyConfiguration and PasswordPolicyResult. Can you provide further information ab

Re:[cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2014-01-08 Thread Andres
Thank you Marvin. I'd like to contribute, but I lack experience, so I really appreciate your help. -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev

Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2014-01-08 Thread Marvin Addison
> On the other hand, Ldaptive provides some support for this: > > http://www.ldaptive.org/docs/guide/authentication/accountstate > > But I don't know if I can use it on CAS. We certainly intended that you could do ppolicy with CAS, though I haven't tried. We have ppolicy support on one of our test

Re:[cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2014-01-08 Thread Andres
Ok, I'm really stuck actually in getting Password Policy to work with OpenLDAP. I think I'll need Trenton's approach: write my own implementation in some way. Maybe in PasswordPolicyConfiguration and PasswordPolicyResult. Can you provide further information about what you did? Source files would

Re:[cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2013-12-17 Thread Andres
Thank you both, I think I'm close to a solution, but still I'm having trouble. Please let me show you my progress... First thing I needed is to add this bean so that the @PostConstruct is processed and the attributes populated: Next issue I think is a bug: When this is invoked: https://gith

Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2013-12-16 Thread Trenton D. Adams
On 13-12-13 09:20 AM, Andres wrote: Ok, I've finally managed. The problem were my build paths, I had to reconstruct the project. Next thing I'm facing... It looks like CAS LPPE is not ready to deal with OpenLDAP. For instance, it looks for a password expiration date attribute, but such thing do

Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2013-12-13 Thread Misagh Moayyed
/Jasig/cas/blob/master/cas-server-support-ldap/src/main/java/org/jasig/cas/adaptors/ldap/lppe/LPPEAuthenticationHandler.java#L198 Misagh - Original Message - From: "Andres" To: cas-dev@lists.jasig.org Sent: Friday, December 13, 2013 9:20:37 AM Subject: Re:[cas-dev] L

Re:[cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2013-12-13 Thread Andres
Ok, I've finally managed. The problem were my build paths, I had to reconstruct the project. Next thing I'm facing... It looks like CAS LPPE is not ready to deal with OpenLDAP. For instance, it looks for a password expiration date attribute, but such thing doesn't exist in OpenLDAP. In OpenLD

Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2013-12-13 Thread Misagh Moayyed
" To: cas-dev@lists.jasig.org Sent: Friday, December 13, 2013 3:50:55 AM Subject: Re:[cas-dev] LPPE in CAS 4-RC2 with OpenLDAP Thank you for your answers and for submitting the bug, and sorry for my inexperience in maven projects. I've copied the .java file in these two paths: sr

Re:[cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2013-12-13 Thread Andres
Thank you for your answers and for submitting the bug, and sorry for my inexperience in maven projects. I've copied the .java file in these two paths: src/main/java/org/jasig/cas/adaptors/ldap/lppe src/org/jasig/cas/adaptors/ldap/lppe The first one triggers lots of errors in the Eclipse IDE bec

Re:[cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2013-12-13 Thread Andres
Changing the bean ID doesn't seem to fix anything... -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev

Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2013-12-13 Thread Misagh Moayyed
bject: Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP That's a bug that should be fixed, but in the meantime what would happen if you tried "dateConverter" instead for the id? Misagh - Original Message - From: "Andres" To: cas-dev@lists.jasig.org Se

Re: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP

2013-12-13 Thread Misagh Moayyed
That's a bug that should be fixed, but in the meantime what would happen if you tried "dateConverter" instead for the id? Misagh - Original Message - From: "Andres" To: cas-dev@lists.jasig.org Sent: Friday, December 13, 2013 2:13:49 AM Subject: [cas-dev] LPPE in CAS 4-RC2 wit