On Wed, Mar 25, 2009 at 04:20:24PM -0300, M. Rodrigo Monteiro wrote: > Hi! > > I'm reading the "Postfix: The Definitive Guide". Great book, BTW. > In the LDAP configuration, I realise that the filter for the active > users is "(&(mail=%s)(accountStatus=active))".
There is no default LDAP schema in Postfix, this is just an example. You can put anything you want in your LDAP queries. > In my LDAP schema (from Ubuntu slapd - core.schema, cosine.schema, > nis.schema, misc.schema - and from Ubuntu Samba samba.schema) don't > have the accountStatus attribute. > When the user become disabled, what I saw in his attribute is the > sambaAcctFlags changing from [U] to [UD]. I guess the D is for > disabled. > My question is: how can Postfix verify if the user is disabled in this > configuration? Or should I change someting? You choose which LDAP queries to use and in what context. In fact you should first test without LDAP at all, with indexed tables, and then create LDAP tables that mimic the indexed files. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.