On 24/11/15 07:51, abdulaziz.abajobir at ju.edu.et
wrote:> Dear all,
>
> I have been working on samba 3.6 fileserver with LDAP backend. when i
> add user from ldap, user will be added to samba server but i could not
> enable users sambaAcctFlags from [NU ] to [U ], with "smbpasswd -en
> user" command.
>
> root at samba:~# smbpasswd -en aabajobir
> Enabled user aabajobir.
>
> root at samba:~# pdbedit -Lw |grep aabajobir
> aabajobir:10010340:NO
> PASSWORDXXXXXXXXXXXXXXXXXXXXX:F24DFF88A1F411AB7BFF155E759ADF1D:[NU
> ]:LCT-00000000:
>
> Is there any other way to change This Flag??
>
> Regards,
> Abdulaziz
>
Well, you could try running 'pdbedit --help'
Where you will find that you can modify a user with the '-r' flag, so to
reset the user you would use 'pdbedit -r -c "[]" username'
I would also suggest that you upgrade Samba if possible, Samba version
3.6.x is no longer maintained.
Rowland