Stalwart LDAP Directory <-> Kanidm #3516
Replies: 5 comments 6 replies
-
|
I have similiar setup with small difference. LDAP FILTERS OBJECT ATTRIBUTES There is one problem. Users with multiple mail addresses cannt login to POP3 or IMAP with error "User already exist". |
Beta Was this translation helpful? Give feedback.
-
Don't do this, names can change. |
Beta Was this translation helpful? Give feedback.
-
There is a "mail" attribute that contains all of these values. |
Beta Was this translation helpful? Give feedback.
-
|
I'd just add that groups in stalwart are useful too. They show up as shared folders in group member's accounts. I currently have this: |
Beta Was this translation helpful? Give feedback.
-
|
is anyone able to update this guide to more in depth? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Accounts should show up in stalwart after logging in once
Sadly they cannot receive mails on their aliases without having their primary mail address been queried, either via logging in or via receiving mail on the primary address.
Under Authentication > Settings, Directory should be set to your kanidm-ldap directory. don't miss it like I did
Kanidm users must have posix set
kanidm person credential posix set personnameto get working ldap.Configuration
Directory Id:
kanidm-ldapType:
LDAP DirectoryURL:
ldaps://idm.domain.com:3636Base DN:
dc=idm,dc=domain,dc=tld# You can change this withkanidm system domain set-ldap-basednTimeout:
5Binding
Bind DN:
dn=token# Read https://kanidm.github.io/kanidm/stable/integrations/ldap.html#service-accounts for context on this section.Bind Secret:
use a serviceaccount tokenEnable Bind Auth:
TRUEBind Auth DN:
identifier=?Use Auth DN for search:
FALSETLS
Enable TLS:
TRUEAllow Invalid Certs:
FALSELDAP Filters
Name:
(&(|(objectClass=person))(|(uid=?)(spn=?)(name=?)))E-mail:
(&(objectClass=person)(|(mail=?)))Object Attributes
Name:
uidspnnameType:
objectClassDescription:
descriptionSecret:
entryuuid# This will be unused and mapped to a useless existing ldap field since it can't be left out in the current release of stalwart yet.Groups:
memberOfE-mail:
emailprimary# emailprimary is for old kanidm versions, new versions list mails under mail, with the first entry being the primary.mailE-mail Aliases:
emailalternative# you can add aliases withkanidm person update --mail primary@domain.tld --mail alias1@domain.tld personname, Or use the profile manager in the web-ui if you're in theidm_people_self_mail_writegroup.Debugging
You can sanity check the kanidm LDAP responses in case this guide wasn't updated for a while and things changed:
ldapsearch -H ldaps://idm.yourdomain.tld:3636 -b 'dc=idm,dc=yourdomain,dc=tld' -D "dn=token" -x '(name=yourpersonname)' -w "service_account_token"Stalwart needs to be set to
TRACElogging to see ldap queries, kanidm logs ldap by default.Comments with improvements or notes are very welcome !
Beta Was this translation helpful? Give feedback.
All reactions