Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailcow Syncer.py issues #30

Closed
Brevoort29 opened this issue Mar 24, 2023 · 0 comments
Closed

Mailcow Syncer.py issues #30

Brevoort29 opened this issue Mar 24, 2023 · 0 comments

Comments

@Brevoort29
Copy link

Brevoort29 commented Mar 24, 2023

Been trying to sync mailcow ldap, for the most part its able to reach the ldap server but syncer.py runs into a type error. does look like it finishes logging either. Any ideas?

mailcowcustomized_ldap-mailcow | 24.03.23 01:51:08 Config file conf/dovecot/ldap/passdb.conf unchanged
mailcowcustomized_ldap-mailcow | 24.03.23 01:51:08 Config file conf/dovecot/extra.conf unchanged
mailcowcustomized_ldap-mailcow | 24.03.23 01:51:08 Backed up conf/sogo/plist_ldap to conf/sogo/plist_ldap.ldap_mailcow_bak.6
mailcowcustomized_ldap-mailcow | 24.03.23 01:51:08 Saved generated config file to conf/sogo/plist_ldap
mailcowcustomized_ldap-mailcow | 24.03.23 01:51:08 One or more config files have been changed, please make sure to restart dovecot-mailcow and sogo-mailcow!
mailcowcustomized_ldap-mailcow | Traceback (most recent call last):
mailcowcustomized_ldap-mailcow | File "syncer.py", line 181, in
mailcowcustomized_ldap-mailcow | main()
mailcowcustomized_ldap-mailcow | File "syncer.py", line 31, in main
mailcowcustomized_ldap-mailcow | sync()
mailcowcustomized_ldap-mailcow | File "syncer.py", line 52, in sync
mailcowcustomized_ldap-mailcow | for (email, ldap_name, ldap_active) in ldap_results:
mailcowcustomized_ldap-mailcow | File "syncer.py", line 46, in
mailcowcustomized_ldap-mailcow | x[1]['userPrincipalName'][0].decode(),
mailcowcustomized_ldap-mailcow | TypeError: list indices must be integers or slices, not str

Here is my ldap config

ldap-mailcow:
  image: programmierus/ldap-mailcow
  network_mode: host
  container_name: mailcowcustomized_ldap-mailcow
  depends_on:
    - nginx-mailcow
  volumes:
    - ./data/ldap:/db:rw
    - ./data/conf/dovecot:/conf/dovecot:rw
    - ./data/conf/sogo:/conf/sogo:rw
  environment:
    - LDAP_DEBUG_LEVEL=1
    - TZ=${TZ}
    - LDAP-MAILCOW_LDAP_URI=ldap://domain.controller.local
    - LDAP-MAILCOW_LDAP_BASE_DN=DC=domain,DC=local
    - LDAP-MAILCOW_LDAP_BIND_DN=CN=user,CN=Users,DC=domain,DC=local
    - LDAP-MAILCOW_LDAP_BIND_DN_PASSWORD=password
    - LDAP-MAILCOW_API_HOST=http://mail.domain.local
    - LDAP-MAILCOW_API_KEY=api key
    - LDAP-MAILCOW_SYNC_INTERVAL=300
    - LDAP-MAILCOW_LDAP_FILTER=(&(objectClass=user)(objectCategory=person)(memberOf:1.2.840.113556.1.4.1941:=CN=Mail Users,CN=Users,DC=domain DC=local))
    - LDAP-MAILCOW_SOGO_LDAP_FILTER=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant