Samba4 Patch: newuseradv and newgroupadv scripts for net cmd utlity

Matthias Dieter Wallnöfer mdw at
Tue Jun 8 01:11:32 MDT 2010

Hi Lukasz,

until now the policy was that "net group *"/"net user *" commands work 
over s4's "libnet". This doesn't seem to be the case here. Isn't this 
possible to fix - or is the binding missing?


Lukasz Zalewski wrote:
> Hi Jelmer, all
> Attached is a new patch which is an extension to the previous newuser 
> functionality. It also adds the set of group commands (operating on 
> the ldb)
> Now, new user is created with CN='Firstname Initials. Lastname',<> if 
> any of them exists and --use-username-as-cn is not set (this is the AD 
> way) otherwise CN=username,<> is used
> If --use-username-as-cn is defined then the user is created with 
> CN=username,<> even if any of (Firstname, Initials,Lastname) exist
> I also took liberty to add group set of subcommands, i.e.
> /usr/local/samba/bin/net group
> Available subcommands:
>     addmembers
>     add
>     removemembers
>     delete
> These only operate on ldb at the moment.
> Regards
> Luk

More information about the samba-technical mailing list