Skip to content

Request support for LDAP #307

Closed
Closed

Description

@isaksamsten

Hi!

I still connect to LDAP for contacts, and would very much like the project to support it.

I've implemented support using the ldap3 crate, but I'm not a Rust developer and don't want to submit it when I don't fully understand the code nor if the code follow the conventions of the project.

Anyway, here's a branch with ldap support implemented: https://github.com/isaksamsten/hylki/tree/dev

Great project!

Activity

  1. hyprlab commented on Sep 28, 2026

    @hyprlab
    Owner

    Agentic reply:

    Added in the 1.42.0-beta.4 release (x86_64 only): Settings > LDAP Directories adds a directory (server, encryption, search base and an optional sign-in), and the composer suggests the people in it once three characters are typed. Rather than bringing in the ldap3 crate, the directories are Evolution Data Server address books, so Hylki adds no LDAP client of its own and a directory set up in Evolution is searched too. The composer's debounced lookup follows your branch, and you are credited for it in the changelog and the About window. Please test it there and report anything that does not look right. It reaches the stable channel with the next stable release.

    The beta build is in the repo now: flatpak update picks it up.

  2. added a commit that references this issue on Oct 1, 2026
  3. hyprlab commented on Oct 1, 2026

    @hyprlab
    Owner

    Agentic reply:

    Added in the 1.42.0 stable release.

    The build is in the repo now: flatpak update picks it up.

  4. 3v1n0 commented on Oct 9, 2026

    @3v1n0

    I've tried this but it fails here at multiple things:

    • Adding a server (LDAPS), does not show up until hylki is restarted
    • Contacts do not show up
    • Server did not answer: org.gtk.GDBus.UnmappedGError.Quark._e_2dclient_2derror_2dquark.Code19: Cannot get contact list: Not connected

    Same server works fine when using: curl -u "$DN:$LDAPPWD" "ldaps://HOST/ou=$OU,dc=$DC,dc=com

  5. 3v1n0 commented on Oct 11, 2026

    @3v1n0

    @hyprlab need a new bug for this? I was trying to debug it but setting RUST_DEBUG did not provide any useful information

  6. hyprlab commented on Oct 11, 2026

    @hyprlab
    Owner

    Ill take a look at it

  7. hyprlab commented on Oct 11, 2026

    @hyprlab
    Owner

    Agentic reply:

    The beta build is in the repo now: flatpak update picks it up.

  8. 3v1n0 commented on Oct 12, 2026

    @3v1n0

    Nice, now it seems to configure it properly.

    However I can now search the contacts in the account from evolution, but hylki does not seem to trigger a search when in the contacts page or when typing an email address in one of the composer fields

  9. 11 remaining items

  10. hyprlab commented on Oct 22, 2026

    @hyprlab
    Owner

    @3v1n0 I've made some pretty significant upgrades to the contacts section as well as performance improvements/caching. It's in the current beta build now but will ship to stable tomorrow.

  11. 3v1n0 commented on Oct 22, 2026

    @3v1n0

    Yeah, I saw... I personally liked it better before 😄, especially when using a collapsed sidebar the current design isn't great, but i can see the consistency.

    I've troubles with my server now though. Not sure what it is TBH, since both evolution and hylki fail using it while curl still is able to get users out of it, so I'm unsure what's going on.

  12. hyprlab commented on Oct 22, 2026

    @hyprlab
    Owner

    Ha! Is the placement of the Contacts item in the unified section a regression for you? I can add it back as an option to the footer of the sidebar. I moved it to the main section for the ability to display a tree of mutilple address books along with their nested groups and support dragging/dropping contacts between them. I honestly liked it in the footer but I didn't see a clean way of showing the book tree that way. I might play around with it more.

    As for EDS issues, I haven't experienced anything on my machines.

  13. 3v1n0 commented on Oct 22, 2026

    @3v1n0

    Ha! Is the placement of the Contacts item in the unified section a regression for you? I can add it back as an option to the footer of the sidebar.

    Well I liked it better to be separated from the email sections, as de facto it's another thing, and I personally preferred the combo-box rather than multiple views for each book, but it's probably a personal preference?

  14. hyprlab commented on Oct 22, 2026

    @hyprlab
    Owner

    When you say combo box do you mean all contacts in one list? If so that is still supported (and I personally use it that way) by clicking on the Contacts unified box instead of one of the expanded books under it. However I really did like it better in the footer, I might hold on on making the UI change until I've ironed it out more. The performance changes will definitely persist regardless.

  15. 3v1n0 commented on Oct 22, 2026

    @3v1n0

    I meant

    Image
  16. hyprlab commented on Oct 22, 2026

    @hyprlab
    Owner

    lol oh jeeze my brain is not working this late at night 😵‍💫 Yes, I can bring that back as an option. What about the search bar, should it stay visible or hide?

  17. 3v1n0 commented on Oct 22, 2026

    @3v1n0

    Mhmh, so... Don't know...

    2026-10-22T18:09:47.860178Z DEBUG LDAP directory answered directory=MyLDAP typed="jon" entries=
    9 with_address=9 ms=227
    2026-10-22T18:09:47.882753Z DEBUG contacts: listed 1 in 3.199671ms
    

    Apparently it finds something, but nothing shows up.

    When re-setting it up I also got

    2026-10-22T18:02:29.094531Z DEBUG LDAP directory not answering: org.gtk.GDBus.UnmappedGError.Quark._e_2dclient_2derror_2dquark.Code19: Cannot get contact list: Not connected directory=MyLDAP reason=required
    2026-10-22T18:02:29.524154Z  INFO LDAP directory connected directory=Canonical host=ldap.myldap.com port=636 security=Ldaps
    

    But not sure if it was only a pre-setup.

  18. hyprlab commented on Oct 23, 2026

    @hyprlab
    Owner

    Got a potential fix for this coming in the next beta

  19. added a commit that references this issue on Oct 23, 2026
  20. hyprlab commented on Oct 23, 2026

    @hyprlab
    Owner

    Agentic reply:

    The beta build is in the repo now: flatpak update picks it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions