On Thu, Mar 29, 2012 at 5:07 AM, Mikel <mgilsanz@xxxxxxxxxxxxxx> wrote:
search_base = dc=Avalon,dc=com,dc=es
query_filter = (&(objectClass=organizationalPerson)(mail=%s))
result_attribute = mail
Tahnk Steve this is a single user ldif , dc=Avalon and dc=avalon works two I tried change it to probe only.
dn: CN=sogo,CN=Users,DC=avalon,DC=com,DC=es
changetype: add
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: sogo
givenName: sogo
distinguishedName: CN=sogo,CN=Users,DC=avalon,DC=com,DC=es
instanceType: 4
whenCreated: 20120306123804.0Z
whenChanged: 20120309005323.0Z
displayName: sogo
uSNCreated: 461468
uSNChanged: 491459
name: sogo
objectGUID:: iZBt9gPCnkycvvgHK0/xyA==
userAccountControl: 66048
codePage: 0
countryCode: 0
pwdLastSet: 129756792826281720
primaryGroupID: 513
objectSid:: AQUAAAAAAAUVAAAAlDfe6z2UYrezklsJdycAAA==
accountExpires: 9223372036854775807
sAMAccountName: sogo
sAMAccountType: 805306368
userPrincipalName: sogo@xxxxxxxxxxxxx
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=avalon,DC=com,DC=es
dSCorePropagationData: 20120308125326.0Z
dSCorePropagationData: 20120308125326.0Z
dSCorePropagationData: 20120308125326.0Z
dSCorePropagationData: 16010108151056.0Z
lastLogonTimestamp: 129757002741425590
Change your ldap-aliases.cf to:
server_host = 10.48.1.198
bind = yes
version = 3
bind_dn= cn=sogoprueba,cn=Users,dc=avalon,dc=com,dc=es
bind_pw= passwordbind = yes
version = 3
bind_dn= cn=sogoprueba,cn=Users,dc=avalon,dc=com,dc=es
search_base = dc=Avalon,dc=com,dc=es
query_filter = (&(objectClass=organizationalPerson)(mail=%s))
result_attribute = mail
Also, make sure the attribute mail is indexed in your directory (openldap) and try running postmap -q mgilsanz@xxxxxxxxxxxxxx ldap:/etc/postfix/ldap-aliases.cf again.
Steve