[PATCH] samba-tool: Easily edit a users object in AD

Douglas Bagnall douglas.bagnall at catalyst.net.nz
Tue Jun 27 10:31:31 UTC 2017


hi Rowland,

> Hi Douglas, thanks for looking at my patch and I take on board most of
> your comments and will work on the patch. The only comment I have a
> problem with is this one:
> 
> It would be easier to read with
> 
>     "sAMAccountType=%d"... % (dsdb.UF_NORMAL_ACCOUNT,...
> 
> 'pydoc samba.dsdb' shows this:
> 
>     UF_NORMAL_ACCOUNT = 512

Right. Sorry. I should have said dsdb.ATYPE_NORMAL_ACCOUNT.

It is the same number you had (0x30000000) but documents itself better
for people like me who don't know the numbers. 

Douglas

> 
> This means that the filter will become:
> 
> sAMAccountType=512
> 
> Don't think that is a valid number for sAMAccountType, it is for
> userAccountControl though.
> 
> My way seems to be the accepted filter to just get a user.
> 
> Rowland
> 




More information about the samba-technical mailing list