[Samba] OpenSSH auth in SAMBA4 LDAP

steve steve at steve-ss.com
Mon Aug 26 16:46:46 MDT 2013


On Tue, 2013-08-27 at 00:28 +0200, Luca Olivetti wrote:
> Al 26/08/13 22:54, En/na steve ha escrit:
> > On Mon, 2013-08-26 at 20:12 +0200, Luca Olivetti wrote:
> >> Al 26/08/13 19:09, En/na Marc Muehlfeld ha escrit:
> >>
> >>> - Now you should be able to see all accounts (the local and domain
> >>> accounts), when you type
> >>>   # getent passwd
> >>
> >> I tried it on a test VM, but it only showed accounts migrated from samba
> >> 3+ldap (since they have the posix attributes), new users/groups added
> >> via samba-tool or windows didn't appear.
> >>
> > Hi
> > You add the attributes yourself when you create the user:
> > 
> > samba-tool user add luca --uid-number=1234567 --gid-number=45678
> > --home-directory=/some/place --login-shell=/bin/bash
> > 
> 
> "samba-tool user add: error: no such option --uid-number"
> (this is from samba 4.0.8)

It only works with 4.1 and newer. There is a script to do the same for
4.0.8 which also takes care of the uid increments when adding new users:
http://linuxcostablanca.blogspot.com.es/p/s4bind.html

HTH
Steve




More information about the samba mailing list