Skip to content

ldap_use_exop_passwd causes an empty mod after the extop #1070

@mistotebe

Description

@mistotebe

Hi,
configuring self-service-password against OpenLDAP with constraint overlay enabled, I get this error:

PHP Warning:  ldap_mod_replace(): Modify: Invalid syntax in /usr/share/self-service-password/vendor/ltb-project/ltb-common/src/Ltb/PhpLDAP.php on line 101
LDAP - Modify password error 21 (Invalid syntax)

SSP is set up with ldap_use_exop_passwd = true so the ldap_mod_replace is suspect, looking into this further, it seems that SSP sends the passmod extop first (as expected), then it sends a modify with no mods, but if the admin has configured the constraint overlay, this is not allowed and gets an LDAP_INVALID_SYNTAX.

I don't see why the empty modify is necessary for SSP's function, so while constraint's behaviour might not be great, it should probably be avoided on the client side - i.e. here?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions