ZhangHuangbin wrote:Show us how you configure OpenLDAP ppolicy overlay, and show us related log in both /var/log/sogo/sogo.log and /var/log/openldap.log.
BTW, each time you report an issue, please show us what you did/modified/changed, and attach related log.
Hi!
1) I'm modified /etc/ldap/slapd.conf:
.....
[b] include /etc/ldap/schema/ppolicy.schema [/b]
# Amavisd-new schema.
......
[b] moduleload ppolicy.la [/b]
.......
# Database used to store mail accounts
database hdb
....
# Load overlay
overlay ppolicy
ppolicy_default "cn=passwordPolicy,dc=mydomain,dc=ru"
....
2) Then stop sldapd
3) and add to ldap base:
dn: cn=passwordPolicy,dc=mydomain,dc=ru
cn: passwordPolicy
sn: passwordPolicy
pwdMinLength: 8
objectClass: inetOrgPerson
objectClass: pwdPolicy
objectClass: pwdPolicyChecker
pwdAttribute: userPassword
structuralObjectClass: inetOrgPerson
entryUUID: 7c07332e-1819-1035-9be5-e37077db3529
creatorsName: cn=Manager,dc=mydomain,dc=ru
createTimestamp: 20151105145857Z
entryCSN: 20151105145857.476024Z#000000#000#000000
modifiersName: cn=Manager,dc=mydomain,dc=ru
modifyTimestamp: 20151105145857Z
4) Started slapd
5) and restart sogo
My LOGS:
openldap.log.1 & openldap.log
Nov 3 20:35:12 mail slapd[25234]: slapd stopped.
Nov 3 20:35:12 mail slapd[25234]: connections_destroy: nothing to destroy.
Nov 3 20:36:04 mail slapd[25286]: @(#) $OpenLDAP: slapd (Sep 11 2015 15:18:47) $#012#011buildd@x86-csail-01:/build/openldap-e51fz0/openldap-2.4.31/debian/build/servers/slapd
Nov 5 11:37:04 mail slapd[13593]: @(#) $OpenLDAP: slapd (Sep 11 2015 15:18:47) $#012#011buildd@x86-csail-01:/build/openldap-e51fz0/openldap-2.4.31/debian/build/servers/slapd
Nov 5 16:41:33 mail slapd[32144]: @(#) $OpenLDAP: slapd (Sep 11 2015 15:18:47) $#012#011buildd@x86-csail-01:/build/openldap-e51fz0/openldap-2.4.31/debian/build/servers/slapd
Nov 7 16:56:15 mail slapd[3420]: @(#) $OpenLDAP: slapd (Sep 11 2015 15:18:47) $#012#011buildd@x86-csail-01:/build/openldap-e51fz0/openldap-2.4.31/debian/build/servers/slapd
Nov 11 00:10:47 mail slapd[7767]: @(#) $OpenLDAP: slapd (Sep 11 2015 15:18:47) $#012#011buildd@x86-csail-01:/build/openldap-e51fz0/openldap-2.4.31/debian/build/servers/slapd
sogo.log more than 3MB each day. Can I choose something?