[Samba] Patch to Set RFC2307 attributes in samba-tool create user <username> --uid-number=501

steve steve at steve-ss.com
Tue Nov 12 15:24:08 MST 2013

On Tue, 2013-11-12 at 21:32 +0000, Werthmuller, Derek wrote:
> I'm using sernet samba 4.0.11 on Centos 6 and don't see the capabilities to add some of the RFC2307 attributes that make Linux UID/GID mapping easier in the sernet version of the samba-tool.
> The patch is mentioned on this list last year under:  https://lists.samba.org/archive/samba/2012-September/169300.html
> Some threads on the net refer to this capability found in newer versions of samba 4.0.9.  I'm interested in creating accounts like:
> -bash-4.1$ sudo /usr/bin/samba-tool  user add <usersname> --uid-number=5000 gid-number=5000 home-directory=/exports/users/<usersname> login-shell=/bin/bash
> Are different versions of the samba-tool back word compatible?  I wondering if I can download the latest samba sources and just use the samba-tool components against my samba4 ADC.
> Installed version of the Samba-tool reports;
> -bash-4.1$ /usr/bin/samba-tool --version
> 4.0.11-SerNet-RedHat-7.el6
> Thanks
>                 Derek
Just upgrade to 4.1. That has the syntax you want.

More information about the samba mailing list