On Thu, 2011-06-16 at 12:30 -0400, Stephen Gallagher wrote:
On Thu, 2011-06-16 at 12:55 +0200, Sumit Bose wrote:
> Hi,
>
> this patch should fix
https://fedorahosted.org/sssd/ticket/896 .
>
> Currently we expect that server side password policies are available if
> the user object has a pwdAttribute set. But recently we introduced a
> patch which let sssd only use LDAP controls which are listed in the
> supportedControl attribute of the rootDSE and OpenLDAP does not list the
> password policy control here. Since sssd does not check carefully if the
> server really returns the policy data a segfault might happen in this
> scenario.
>
> With this patch we only assume that there are server side password
> policies if servers returns a LDAP_CONTROL_PASSWORDPOLICYRESPONSE.
Ack.
Pushed to master and sssd-1-5.