[Dovecot] Dovecot 1.2.12+Postfix+Active Directory: virtual domain name dropped.

Timo Sirainen tss at iki.fi
Thu Dec 30 13:16:08 EET 2010


On Thu, 2010-12-23 at 16:53 -0700, Ran Talbott wrote:

> I have the active directory query set as:
>   user_filter = (&(objectClass=user)(samaccountname=%n))
>   user_attrs = =home=/var/mailstore/%d/%n. =uid=501, =gid=501, \
>              =mail=maildir:/var/mailstore/%d/%n/Maildir/

Would be nicer to use global mail_location=maildir:~/Maildir rather than
setting it here.

> Dec 23 10:49:24 IBMUBUNTU1 dovecot: auth(default): master in: 
> USER#0111#011testing.testing at xxxx.xxx#011service=deliver
> 
> Dec 23 10:49:24 IBMUBUNTU1 dovecot: auth(default): ldap(testing.testing): user 
> search: base=dc=lawley, dc=local scope=subtree filter=(&(objectClass=user)
> (samaccountname=testing.testing)) fields=

Because you're not actually requesting any fields, "fields=" means
you're getting all the fields..

> Dec 23 10:49:24 IBMUBUNTU1 dovecot: auth(default): ldap(testing.testing): 
> result: objectClass(?unknown?)= cn(?unknown?)= sn(?unknown?)= 
> givenName(?unknown?)= distinguishedName(?unknown?)= instanceType(?unknown?)= 
> whenCreated(?unknown?)= whenChanged(?unknown?)= displayName(?unknown?)= 
> uSNCreated(?unknown?)= uSNChanged(?unknown?)= name(?unknown?)= 
> objectGUID(?unknown?)= userAccountControl(?unknown?)= 
> primaryGroupID(?unknown?)= objectSid(?unknown?)= sAMAccountName(?unknown?)= 
> sAMAccountType(?unknown?)= userPrincipalName(?unknown?)= 
> objectCategory(?unknown?)=

You could add one of these fields to user_attrs to avoid it returning
everything.

> Dec 23 10:49:24 IBMUBUNTU1 dovecot: auth(default): master out: 
> USER#0111#011testing.testing#011home=/var/mailstore//testing.testing. 
> =uid=501#011gid=501#011mail=maildir:/var/mailstore//testing.testing/Maildir/

Still, none of this explains why the domain gets dropped. Maybe it's due
to some other setting, but you didn't give dovecot -n output so I can
only guess. See auth_username_format setting for example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20101230/20021fe4/attachment-0001.bin 


More information about the dovecot mailing list