Topic: SoGo + Active Directory Problems
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.1
- Deployed with iRedMail Easy or the downloadable installer? No
- Linux/BSD distribution name and version: Debian 12.7.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello!
Sorry for disturbing with stupid questions. Please help me with SoGo configuration. I installed iRedMail 1.7.1. on Debian 12. Successfully configured Postfix and Dovecot, including LDAP (Active directory) authentication. But I stucked with SoGo + Active Directory configuration.
Here is my configuration for LDAP
SOGoUserSources = (
{
// Used for user authentication
id = directory;
displayName = "Active Directory";
canAuthenticate = YES;
type = ldap;
CNFieldName = cn;
IDFieldName = uid;
UIDFieldName = sAMAccountName;
baseDN = " ou=Users, dc=test,dc=com";
bindDN = "cn=vmail,oou=Users, dc=test,dc=com";
bindFields = (sAMAccountName);
bindPassword = password;
hostname = "ldap://test.com:389";
isAddressBook = YES;
},
And logs:
Sep 04 11:10:24 sogod [155008]: |SOGo| starting method 'POST' on uri '/SOGo/so/passwordRecoveryEnabled'
Sep 04 11:10:24 sogod [155008]: <0x0x558409596160[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Sep 04 11:10:24 sogod [155008]: <0x0x558409596160[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Sep 04 11:10:24 sogod [155008]: [WARN] <0x0x7f57060d3b00[WOxElemBuilder]> could not locate builders: WOxExtElemBuilder,WOxExtElemBuilder
Sep 04 11:10:24 sogod [155008]: |SOGo| request took 0.046520 seconds to execute
Sep 04 11:10:24 sogod [155008]: 192.xxx.xxx.xxx "POST /SOGo/so/passwordRecoveryEnabled HTTP/1.0" 403 0/47 0.056 - - 3M - 10
Sep 04 11:10:25 sogod [155008]: |SOGo| starting method 'POST' on uri '/SOGo/so/passwordRecoveryEnabled'
Sep 04 11:10:25 sogod [155008]: |SOGo| request took 0.001057 seconds to execute
Sep 04 11:10:25 sogod [155008]: 192.xxx.xxx.xxx "POST /SOGo/so/passwordRecoveryEnabled HTTP/1.0" 403 0/47 0.004 - - 0 - 10
Sep 04 11:10:32 sogod [155008]: |SOGo| starting method 'POST' on uri '/SOGo/connect'
Sep 04 11:10:32 sogod [155008]: <0x0x558409a68610[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldap://test.com:389
Sep 04 11:10:32 sogod [155008]: <0x0x558409a65de0[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldap://test.com:389
2024-09-04 11:10:32.698 sogod[155008:155008] -[NGLdapConnection _searchAtBaseDN:qualifier:attributes:scope:]: search at base '' filter '(objectClass=*)' for attrs 'subschemaSubentry'
2024-09-04 11:10:32.698 sogod[155008:155008] -[NGLdapConnection _searchAtBaseDN:qualifier:attributes:scope:]: search at base 'CN=Aggregate,CN=Schema,CN=Configuration,DC=test,DC=com' filter '(objectClass=*)' for attrs 'objectclasses'
2024-09-04 11:10:32.839 sogod[155008:155008] -[NGLdapConnection _searchAtBaseDN:qualifier:attributes:scope:]: search at base 'ou=users,dc=test,dc=com' filter '(sAMAccountName=test@konstanta.pro)' for attrs 'dn'
Sep 04 11:10:32 sogod [155008]: SOGoRootPage Login from '192.xxx.xxx.xxx' for user 'test@test.com' might not have worked - password policy: 65535 grace: -1 expire: -1 bound: 0
Sep 04 11:10:32 sogod [155008]: |SOGo| request took 0.170584 seconds to execute
Sep 04 11:10:32 sogod [155008]: 192.xxx.xxx.xxx "POST /SOGo/connect HTTP/1.0" 403 33/87 0.173 - - 7M - 11
Sep 04 11:10:34 sogod [155008]: |SOGo| starting method 'GET' on uri '/SOGo/so/'
Sep 04 11:10:34 sogod [155008]: |SOGo| request took 0.084647 seconds to execute
Sep 04 11:10:34 sogod [155008]: 192.xxx.xxx.xxx "GET /SOGo/so/ HTTP/1.0" 200 13418/0 0.089 50514 73% 0 - 11
In the Windows server logs I can see that authentication was successful.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.