ZhangHuangbin wrote:Lex wrote:Mar 17 07:16:40 server dovecot: auth: Warning: ldap(S.N@domain.com,127.0.0.1,<123456/NN/AAAB>): Multiple values found for 'user', using value S.N@domain.com'
Try to query the LDAP with this username manually (with tool like "ldapsearch"), according to this log message, it will return multiple values, but it should return only ONE.
Hello,
thanks for your reply, You'll find the command sent and results below:
Everything is OK.
According my first issue how can I give you log or command to close my issue? (sending mail to group)
ldapsearch -x -D 'cn=Manager,dc=XXX,dc=YYY' -W -b "ou=Groups,domainName=XXX.YYY,o=domains,dc=XXX,dc=YYY"
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <ou=Groups,domainName=YYY.XXX,o=domains,dc=YYY,dc=XXX> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# Groups, YYY.XXX, domains, YYY.XXX
dn: ou=Groups,domainName=YYY.XXX,o=domains,dc=YYY,dc=XXX
objectClass: organizationalUnit
objectClass: top
ou: Groups
# casa@YYY.XXX, Groups, YYY.XXX, domains, YYY.XXX
dn: mail=casa@YYY.XXX,ou=Groups,domainName=YYY.XXX,o=domains,dc=
YYY,dc=XXX
accountStatus: active
enabledService: mail
enabledService: deliver
enabledService: displayedInGlobalAddressBook
objectClass: mailList
objectClass: top
mail: casa@YYY.XXX
cn: G1
# tous@YYY.XXX, Groups, YYY.XXX, domains, YYY.XXX
dn: mail=tous@YYY.XXX,ou=Groups,domainName=YYY.XXX,o=domains,dc=
YYY,dc=XXX
accountStatus: active
objectClass: mailList
objectClass: top
cn: G2
mail: tous@YYY.XXX
enabledService: mail
enabledService: deliver
enabledService: displayedInGlobalAddressBook
enabledService: shadowaddress
root@mail0:~# ldapsearch -x -D 'cn=Manager,dc=XXX,dc=YYY' -W -b "mail=SN.N @XXX.YYY,ou=Users,domainName=XXX.YYY,o=domains,dc=XXX ,dc=YYY"
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <mail=SN.N@XXX.YYY,ou=Users,domainName=XXX.YYY,o= domains,dc=XXX,dc=YYY> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# SN.N@XXX.YYY, Users, XXX.YYY, domains, XXX.YYY
dn: mail=SN.N@XXX.YYY,ou=Users,domainName=XXX.YYY,o=do
mains,dc=XXX,dc=YYY
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
userPassword:: 123456
123456
uid: SN.N
storageBaseDirectory: /var/vmail
mailMessageStore: vmail1/XXX.YYY/x/x/x/SN.N-1.2.3.4.5.6.
53/
homeDirectory: /var/vmail/vmail1/XXX.YYY/x/x/x/SN.N-1.2.3.4.5.6
123456/
enabledService: mail
enabledService: deliver
enabledService: lda
enabledService: lmtp
enabledService: smtp
enabledService: smtpsecured
enabledService: pop3
enabledService: pop3secured
enabledService: pop3tls
enabledService: imap
enabledService: imapsecured
enabledService: imaptls
enabledService: managesieve
enabledService: managesievesecured
enabledService: sogo
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: internal
enabledService: lib-storage
enabledService: indexer-worker
enabledService: doveadm
enabledService: dsync
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
shadowLastChange: 0
amavisLocal: TRUE
mailboxFormat: maildir
cn: SN N
givenName: SN.N
sn: SN.N
preferredLanguage: fr_FR
mailQuota: 123456
accountStatus: active
memberOfGroup: tous@XXX.YYY
memberOfGroup: g2e@XXX.YYY
mail: SN.N@XXX.YYY
mail: 1234@XXX.YYY
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Thanks.
Regards