samba-tool user setexpiry with filter

Andrew Bartlett abartlet at samba.org
Fri Oct 28 14:56:55 MDT 2011


On Fri, 2011-10-28 at 14:08 -0400, Sean Dague wrote:
> Through expanding the unit tests I've found that setexpiry with a filter 
> fails if the filter matches more than one user, which seems odd to me. I 
> would have expected that the use of a filter here was to expire all the 
> accounts at a branch office, or similar.
> 
> Question: is it expected behavior? should this only work with filters 
> that return a singleton?

It should just match one, but we should just remove the filter code - it
was for a special use case that would now be solved by writing a full
python script, rather than going via a command line tool.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org



More information about the samba-technical mailing list