Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
user: handle LDAP auto-bind for whoami case
In LDAP auto-bind situation we will not have a Kerberos principal available, so we should be using a different mechanism to find the object. Since we already have a valid bound LDAP DN, use it as a base DN here and simply require presence of the POSIX account. This will not match 'cn=Directory Manager' but none of the code we have uses LDAP auto-bind as root when calling 'ipa user-find --whoami'. Fixes: https://pagure.io/freeipa/issue/9583 Signed-off-by: Alexander Bokovoy <[email protected]> Reviewed-By: Thomas Woerner <[email protected]> Reviewed-By: Rob Crittenden <[email protected]> Reviewed-By: Rafael Guterres Jeffman <[email protected]>
- Loading branch information