[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba
Subject:    Re: [Samba] samba-password Flag issue
From:       Rowland Penny <rowlandpenny241155 () gmail ! com>
Date:       2015-11-24 9:55:04
Message-ID: 565433F8.1050605 () gmail ! com
[Download RAW message or body]

On 24/11/15 07:51, abdulaziz.abajobir@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@samba:~# smbpasswd -en aabajobir
> Enabled user aabajobir.
>
> root@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

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic