Werthmuller, Derek
2013-Nov-12 21:32 UTC
[Samba] Patch to Set RFC2307 attributes in samba-tool create user <username> --uid-number=501
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
steve
2013-Nov-12 22:24 UTC
[Samba] Patch to Set RFC2307 attributes in samba-tool create user <username> --uid-number=501
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 > > >Hi Just upgrade to 4.1. That has the syntax you want. HTH Steve
Rowland Penny
2013-Nov-13 09:26 UTC
[Samba] Patch to Set RFC2307 attributes in samba-tool create user <username> --uid-number=501
On 12/11/13 21:32, 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 > > >Yes, if you do not want to upgrade, you can do what you suggest, you need: samba-4.1.0/python/samba/samdb.py samba-4.1.0/python/samba/netcmd/user.py as a minimum. Rowland
Possibly Parallel Threads
- getent passwd & getent group returning UID and GID using Winbind 4.1.x series samba
- NT4 SP3 PDC with MS Exchange 5.5 to Samba 3.x ldapbac ked PDC and MS Exchange 5.5 still
- gidNumber's and ldap backed samba PDC
- NT4 SP3 PDC with MS Exchange 5.5 to Samba 3.x ldapbacked PDC and MS Exchange 5.5 still
- Winbind backend = ldap pull uid-number and gid-number ldap values ?